Skip to content

Improve localized countdown timer display#110

Merged
marcprux merged 1 commit intokeepandroidopen:mainfrom
ray2c:i18n-countdown
Feb 21, 2026
Merged

Improve localized countdown timer display#110
marcprux merged 1 commit intokeepandroidopen:mainfrom
ray2c:i18n-countdown

Conversation

@ray2c
Copy link
Contributor

@ray2c ray2c commented Feb 21, 2026

It appears some languages — so far as Intl.RelativeTimeFormat is concerned — actually utilize a suffix (which probably transliterates into something like 2 days later) vis-à-vis English which utilizes a conjunction ie prefix (eg in 2 days). The proposed MR tries to take care of that by essentially, out of the four components (d:h:m:s) in the countdown banner, showing only the prefix for the first component and, where applicable, the suffix for the last component, so that it probably reads more natural to the reader.

@marcprux marcprux merged commit fdbc300 into keepandroidopen:main Feb 21, 2026
2 checks passed
@marcprux
Copy link
Collaborator

Great improvement, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants