Repository navigation
feat(i18n): add Traditional Chinese (zh-TW) translation - #824
Open
Dwkobistar wants to merge 1 commit into
Open
Dwkobistar wants to merge 1 commit into
Dwkobistar wants to merge 1 commit into
Conversation
This branch has not been deployed
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.
feat(i18n): add Traditional Chinese (zh-TW) translation
Summary
Adds Traditional Chinese (zh-TW) as a first-class language across MediaGo,
following
TRANSLATION.md. The locale isregistered end-to-end: main app, Electron main process, settings dropdown,
browser extension, embedded player and Go Core backend messages.
What's included
New translation resources
packages/common/src/i18n/resources/zh-TW.ts— 481 strings (full main-appcatalog), translated into idiomatic Taiwan Mandarin.
packages/mediago-extension/src/i18n/resources/zh-TW.ts— extension catalog.packages/mediago-extension/public/_locales/zh_TW/messages.json— Chrome /Edge extension name, description and tooltip.
apps/player-ui/src/i18n/index.ts—zh-TWcatalog for the embedded player.apps/core/internal/i18n/i18n.go—zh-TWcatalog for backend messages.Registration & resolution
resources/index.ts,config.ts,i18n/index.ts,types/index.ts— newlocale in
i18nResources,SUPPORTED_LANGUAGES,ResolvedAppLanguageandthe
AppLanguageenum.setting-sections.tsx— new "繁體中文" option in Settings → Language.app-language.ts/resolveAppLanguage—zh-TW,zh-Hant,zh-HKandzh-MOsystem locales now resolve tozh-TW;zh/zh-CNstill resolveto Simplified Chinese.
resources/index.ts,language.ts,shared/types.ts,bootstrap.ts,LanguageCard.tsx— same resolution logic and a new radiooption on the options page.
zh-TWto the language union / matcher.traditionalChinese(andoptions.language.zhTWfor the extension)to every existing catalog, as required by
TRANSLATION.md, so thelanguage picker renders correctly in all languages.
Translation notes
with OpenCC
s2twpand then hand-polished for Taiwan usage, e.g.影片 / 設定 / 預設 / 檔案 / 資料夾 / 伺服器 / 網路 / 偵測 / 匯入 /
批次 / 快取 / 解析度 / 重新整理 / 系統匣 / 分頁 / 用戶端.
{{...}}/{name}placeholders and%sformat tokens arepreserved verbatim (verified programmatically: 0 placeholder mismatches).
MediaGo,BBDown,yt-dlp,m3u8,Docker,Schema, MCP,health_check) are left untranslated.Verification
en= 481,zh= 481,zh-TW= 482 (the extra key is the newtraditionalChineselanguage name). No missing or extra keys.esbuild.messages.jsonis valid JSON.Notes for reviewers
task check/ the live-preview screenshots requested inTRANSLATION.mdwere not run because this contribution was prepared without a full local
toolchain (Node 24 + Go 1.27 + the pinned runtime binaries). Happy to run
one checkand attach Settings → Language and download-list screenshots ifa maintainer wants them before merging.
Thanks for maintaining MediaGo! 🌍