4 Commits
Author SHA1 Message Date
dualfroz 93dd2b2f06 fix: pluralize unit word using the maxDecimalPoints-truncated count
When maxDecimalPoints truncates a unit count to exactly 1, the rendered
number showed 1 while the word was pluralized from the raw count (for
example humanizeDuration(1500, { maxDecimalPoints: 0 }) returned
"1 seconds"). Pluralize from the normalized count that is actually
displayed so the number and word agree.
2026-09-04 09:04:26 +02:00
upstream 194562d9da Upstream EvanHahn/HumanizeDuration.js state of the touched files before 13ba5bab06 2026-09-04 09:04:26 +02:00
dualfroz 117fd38eeb fix: pluralize unit word using the maxDecimalPoints-truncated count
When maxDecimalPoints truncates a unit count to exactly 1, the rendered
number showed 1 while the word was pluralized from the raw count (for
example humanizeDuration(1500, { maxDecimalPoints: 0 }) returned
"1 seconds"). Pluralize from the normalized count that is actually
displayed so the number and word agree.
2026-09-06 01:13:13 +02:00
upstream ddd1c2df9e Upstream EvanHahn/HumanizeDuration.js state of the touched files before f21a996c26 2026-09-04 09:04:26 +02:00