feat(i18n): add Traditional Chinese localization (#3093)

* Add Traditional Chinese localization

* fix: address zh-TW formatting and token units

- Format `zh-TW.json` with Prettier.
- Use Traditional Chinese `萬` and `億` units for zh-TW token summaries.
- Add usage formatting coverage for Traditional Chinese locale aliases.

---------

Co-authored-by: Jason <farion1231@gmail.com>
This commit is contained in:
滅ü
2026-05-27 00:05:03 +08:00
committed by GitHub
parent 8cdaf90d8d
commit 5fd3ec0d6a
16 changed files with 2795 additions and 21 deletions
+1 -1
View File
@@ -443,7 +443,7 @@ impl AppSettings {
.language
.as_ref()
.map(|s| s.trim())
.filter(|s| matches!(*s, "en" | "zh" | "ja"))
.filter(|s| matches!(*s, "en" | "zh" | "zh-TW" | "ja"))
.map(|s| s.to_string());
if let Some(sync) = &mut self.webdav_sync {
+8
View File
@@ -47,6 +47,14 @@ impl TrayTexts {
quit: "終了",
_auto_label: "自動 (フェイルオーバー)",
},
"zh-TW" => Self {
show_main: "開啟主介面",
open_website: "開啟官方網站",
no_providers_label: "(無供應商)",
lightweight_mode: "輕量模式",
quit: "退出",
_auto_label: "自動 (故障轉移)",
},
_ => Self {
show_main: "打开主界面",
open_website: "打开官方网站",