Repository navigation
Add Hong Kong Traditional Chinese (zh-HK) - #1
Merged
idoubi merged 1 commit intoOct 9, 2026
Merged
Conversation
…nnector API Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
Add
zh-HK(Traditional Chinese, Hong Kong wording) to the three surfaces that already support i18n: the admin console, the public docs andGET /v1/connectors.zh-CN/zh-HK, laterzh-TW), because the copy carries regional wording, not only a different script.src/i18n.ts):Intl.Locale.maximize()picks the script.zh-HK,zh-MO,zh-TWandzh-Hantresolve tozh-HK.zh,zh-SGandzh-Hansresolve tozh-CN.Accept-Languageis ordered by q-value andq=0is skipped.public/admin-i18n.jsgets a static zh-HK dictionary and zh-HK templates for dynamic messages. A test requires every console string to equal the server conversion, so a missing translation fails CI.?lang=zh-HKlinks andhreflangalternates.lang=zh-HKaccepted; SDK type and docs updated.Notes
opencc-js(about 6 MB unpacked).src/pages.ts, Chinese only today) and README.Test plan
npm run typecheck,npm run buildnpm test(59 passed)npm run test:browser(needsTEST_DATABASE_URL, not run)🤖 Generated with Claude Code