Skip to content

i18n(zh-TW): restore the {count} plural in statisticYesterday - #993

Open
owgreen-dev wants to merge 1 commit into
Anxcye:developfrom
owgreen-dev:i18n/zh-tw-restore-count
Open

owgreen-dev wants to merge 1 commit into
Anxcye:developfrom
owgreen-dev:i18n/zh-tw-restore-count

Conversation

@owgreen-dev

Copy link
Copy Markdown

statisticYesterday is an ICU plural in the source:

en     {count, plural, one{1 yesterday} other{{count} yesterday}}
zh     {count, plural, =1{昨天} other{{count}天前}}
zh-TW  昨天

Traditional Chinese collapsed it to the singular text, so the reading-statistics row reads 昨天 whatever count is — two days ago and ten days ago both render as "yesterday".

This restores the plural using the same form the simplified Chinese file already uses, so the two stay consistent:

zh-TW  {count, plural, =1{昨天} other{{count}天前}}

Nothing else in the file is touched. Caught with an open-source i18n checker; after the change npx @shipi18n/cli check lib/l10n -s en reports zh-TW clean.

Full scan for this repo: https://shipi18n.com/oss#anx-reader

zh-TW collapsed the ICU plural to the singular form, so the reading-statistics row showed 昨天 for every value of count. Mirrors the existing zh form.
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.

1 participant