Skip to content

Create Traditional Chinese dictionary - #106

Open
frankslin wants to merge 1 commit into
RussCoder:masterfrom
frankslin:i18n/traditional-chinese
Open

Create Traditional Chinese dictionary#106
frankslin wants to merge 1 commit into
RussCoder:masterfrom
frankslin:i18n/traditional-chinese

Conversation

@frankslin

Copy link
Copy Markdown

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:

English Simplified Traditional
file 文件 檔案
document 文档 文件

So a naive conversion would translate both of them wrongly. Other common
differences applied throughout: 打印 → 列印, 网络 → 網路, 链接 → 連結,
选项卡 → 分頁, 阅读器 → 檢視器, 扩展 → 擴充功能, 光标 → 游標, 热键 → 快速鍵,
服务器 → 伺服器.

All 104 keys match English.js exactly and in the same order, every #
placeholder is preserved, and there are no null values 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 keys
are 2-character ISO 639-1 codes, and zh is already taken by the Simplified
dictionary, so this one needs a longer key. Either zh-TW or zh-Hant works
fine from my side — whichever fits your plans better. navigator.languages
reports both forms in practice, so the choice is yours.

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").
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