Replace Humanizer with a small relative-time formatter - #163
Merged
danielchalmers merged 3 commits intoSep 21, 2026
Merged
Conversation
Humanizer was only used for the automatic countdown phrase and the countdown target preview, both English-only. RelativeTimeFormatter ports Humanizer 3.0.10's default DateTime algorithm and English strings exactly, verified against the library with a sweep of ~450k offsets across several anchor dates before removing it. Dropping the package removes a 713 KB embedded DLL and takes the Release exe from about 3.6 MB to 2.6 MB. It also removes the Unspecified-Kind workaround from #146 since the port compares ticks directly.
Future countdowns now read "in 3 days", "in an hour", "in a minute".
Past ones still read "3 days ago". Single units use the same article
throughout ("a second", "a month", "a year") instead of mixing
"one second" with "a minute".
"now", "tomorrow" and "yesterday" are unchanged.
Signed-off-by: Daniel Chalmers <daniel.chalmers@outlook.com>
danielchalmers
deleted the
claude/humanizer-replacement-feasibility-281906
branch
September 21, 2026 19:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Humanizer was only used for two things, both English-only: the automatic countdown phrase and the countdown target preview. This replaces it with
RelativeTimeFormatter, a ~70 line port of Humanizer 3.0.10's defaultDateTimealgorithm and English strings.Commit 1: exact port
Commit 2: wording