Skip to content

feat(i18n): add Traditional Chinese (zh-TW) locale support - #2708

Open
leonoxo wants to merge 8 commits into
Tencent:mainfrom
leonoxo:feat/locale-zh-TW
Open

feat(i18n): add Traditional Chinese (zh-TW) locale support#2708
leonoxo wants to merge 8 commits into
Tencent:mainfrom
leonoxo:feat/locale-zh-TW

Conversation

@leonoxo

@leonoxo leonoxo commented Aug 14, 2026

Copy link
Copy Markdown

Summary

Add full Traditional Chinese (Taiwan / zh-TW) language support to WeKnora.

Changes

New Files

  • frontend/src/i18n/locales/zh-TW.ts — Complete zh-TW locale bundle (6,358 lines, ~5,700 keys) with Taiwan terminology

Modified Files (8)

File Change
frontend/src/i18n/index.ts Register zh-TW in i18n messages
frontend/src/i18n/resolveDefaultLocale.ts Add zh-TW to SUPPORTED_LOCALES
frontend/src/i18n/localeKeyAudit.ts Add zh-TW to LOCALE_BUNDLES and LOCALE_ORDER
frontend/src/i18n/embed.ts Add zh-TW / zh-Hant detection in embed locale normalizer
frontend/src/App.vue Map zh-TW to TDesign zh_TW component locale
frontend/src/views/auth/Login.vue Add "🇹🇼 繁體中文" in login language picker
frontend/src/views/settings/GeneralSettings.vue Add zh-TW option in settings language dropdown
frontend/src/components/AgentEmbedChannelPanel.vue Add zh-TW in embed default locale options

Taiwan Terminology Alignment

The translation uses Taiwan-standard terminology (not Simplified-Chinese-derived Traditional):

Mainland Taiwan
創建 建立
搜索 搜尋
數據 資料
密鑰 金鑰
變量 變數
平臺 平台
恢復 還原
賬戶/賬號 帳號
憑據 憑證
隊列 佇列
郵箱 信箱
網關 閘道器
回調 回呼
令牌 權杖
服務器 伺服器
粘貼 貼上
程序 程式
二維碼 QR 碼
羣/裏 群/裡

Maintenance

The project's built-in localeKeyAudit.ts script is already configured to manage zh-TW alongside existing locales. Future developers can run npm run regenerate-pruned-locales to automatically keep zh-TW keys aligned with new features.

- Add zh-TW.ts locale bundle with full Traditional Chinese (Taiwan) translations
- Register zh-TW in i18n index, locale audit, and default locale resolver
- Add zh-TW to TDesign component locale mapping in App.vue
- Add zh-TW language option in Login, General Settings, and Embed Channel panels
- Add zh-TW/zh-Hant detection in embed locale normalizer
- Align terminology with Taiwan usage (帳號, 伺服器, 佇列, 閘道器, 權杖, etc.)
@leonoxo
leonoxo force-pushed the feat/locale-zh-TW branch from 52d8c53 to fcb961c Compare August 14, 2026 12:32
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