Repository navigation
Add a Traditional Chinese translation - #2014
Merged
Merged
Conversation
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.
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.
Adds Traditional Chinese (
zh-TW), translating all messages and attributes ini18n/en-US/komac.ftl.Translation
zh-CN: 提取要求 (pull request), 分叉 (fork), 上游 (upstream), 權杖 (token), 資訊清單 (manifest), 套件 (package), 存放庫 (repository), 檔案 (file) and 預設 (default).A review by a native speaker would be welcome.
Language selection
Without
unic-langid'slikelysubtagsfeature, Fluent couldn't tell which script a region uses, sozh-HK,zh-MOandzh-Hantgot whichever Chinese translation came first, which was Simplified Chinese.unic-langidis now a direct dependency with that feature enabled, andLanguageIdentifieris imported from it rather than throughi18n_embed.zh-TW,zh-Hant-TW,zh-Hant,zh-HK,zh-Hant-HK,zh-MOzh-TWzh-CN,zh-Hans-CN,zh-Hans,zh-SG,zhzh-CNen-GB,de-DEen-USTests
The language selection tests now cover each system language above. The existing tests check that the translation has only
en-USmessages and uses the same arguments.The README lists Traditional Chinese and no longer says Simplified Chinese is used in its place.