Files
Hermes-ui/packages
Weil Jimmer c6fb449a19 feat(client): add Traditional Chinese (zh-TW) language support (#612)
* feat(client): add Traditional Chinese (zh-TW) language support

Update language switcher and i18n configuration to include Traditional Chinese.
Modify locale resolution to prioritize exact matches (zh-TW) over base codes (zh),
ensuring accurate browser language detection. Add complete translation set.

Co-authored-by: Copilot <copilot@github.com>

* feat(i18n): improve BCP-47 locale resolution and browser languages

Refactor resolveLocale to use a normalize helper that correctly maps BCP-47 tags to supported locale keys, properly distinguishing Traditional vs Simplified Chinese variants. Additionally, iterate over navigator.languages instead of relying solely on navigator.language to respect the browser's full language preference list.

Co-authored-by: Copilot <copilot@github.com>

---------

Co-authored-by: Copilot <copilot@github.com>
2026-05-11 21:22:57 +08:00
..