Create Traditional Chinese dictionary - #106
Open
frankslin wants to merge 1 commit into
Open
Conversation
A Taiwan-oriented (正體中文) translation, not a character-level conversion of the Simplified one - the vocabulary differs, most notably "file" (檔案) and "document" (文件), which map the other way round in Simplified Chinese. As per TRANSLATION.md, only the dictionary file is added; it isn't wired into locales/index.js. Note that the index keys are 2-character ISO 639-1 codes, where "zh" is already taken by the Simplified dictionary, so connecting this one needs a decision on the key (e.g. "zh-TW" or "zh-Hant").
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 a Traditional Chinese (正體中文) dictionary, oriented towards Taiwanese usage.
It is not a character-level conversion of the Simplified Chinese file. The
vocabulary genuinely differs, and the most important pair maps the other way
round in the two variants:
So a naive conversion would translate both of them wrongly. Other common
differences applied throughout: 打印 → 列印, 网络 → 網路, 链接 → 連結,
选项卡 → 分頁, 阅读器 → 檢視器, 扩展 → 擴充功能, 光标 → 游標, 热键 → 快速鍵,
服务器 → 伺服器.
All 104 keys match
English.jsexactly and in the same order, every#placeholder is preserved, and there are no
nullvalues left.As TRANSLATION.md asks, I've only added the dictionary and haven't connected it
to
locales/index.js. One thing to note if you do connect it: the index keysare 2-character ISO 639-1 codes, and
zhis already taken by the Simplifieddictionary, so this one needs a longer key. Either
zh-TWorzh-Hantworksfine from my side — whichever fits your plans better.
navigator.languagesreports both forms in practice, so the choice is yours.