Skip to content

Add a Traditional Chinese translation - #2014

Merged
russellbanks merged 1 commit into
mainfrom
traditional-chinese
Nov 28, 2026
Merged

russellbanks merged 1 commit into
mainfrom
traditional-chinese

Conversation

@russellbanks

Copy link
Copy Markdown
Owner

Adds Traditional Chinese (zh-TW), translating all messages and attributes in i18n/en-US/komac.ftl.

Translation

  • Terms follow Taiwan usage and Microsoft's Traditional Chinese interface, as used by winget, rather than a character conversion of zh-CN: 提取要求 (pull request), 分叉 (fork), 上游 (upstream), 權杖 (token), 資訊清單 (manifest), 套件 (package), 存放庫 (repository), 檔案 (file) and 預設 (default).
  • Microsoft's terms don't settle on one word for fork, so 分叉 is a choice. 拉取請求 and 複刻 would match the Simplified Chinese translation more closely if they're preferred.
  • The sentence structure follows the Simplified Chinese translation, including the selectors for pull request states.

A review by a native speaker would be welcome.

Language selection

Without unic-langid's likelysubtags feature, Fluent couldn't tell which script a region uses, so zh-HK, zh-MO and zh-Hant got whichever Chinese translation came first, which was Simplified Chinese. unic-langid is now a direct dependency with that feature enabled, and LanguageIdentifier is imported from it rather than through i18n_embed.

System language Translation
zh-TW, zh-Hant-TW, zh-Hant, zh-HK, zh-Hant-HK, zh-MO zh-TW
zh-CN, zh-Hans-CN, zh-Hans, zh-SG, zh zh-CN
en-GB, de-DE en-US

Tests

The language selection tests now cover each system language above. The existing tests check that the translation has only en-US messages and uses the same arguments.

The README lists Traditional Chinese and no longer says Simplified Chinese is used in its place.

Translates every message into Traditional Chinese (zh-TW), using Taiwan
terms and those of Microsoft's Traditional Chinese interface, as winget
does, such as 提取要求 for pull request, 資訊清單 for manifest and 套件
for package.

Hong Kong and Macau systems also get it. Language negotiation couldn't
tell which script a region uses without unic-langid's likelysubtags
feature, so it chose whichever Chinese translation came first. With it
enabled, zh-HK and zh-MO get Traditional Chinese, while zh-SG and zh
still get Simplified Chinese.
@russellbanks
russellbanks merged commit 1227351 into main Nov 28, 2026
22 checks passed
@russellbanks
russellbanks deleted the traditional-chinese branch November 28, 2026 22:57
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