Files
cultivation-world-simulator/docs/glossary.csv
teps3105 f0b6b62de5 feat(i18n): add Traditional Chinese (zh-TW) locale support (#116)
* feat(i18n): add zh-TW locale support (backend infrastructure)

- 新增 LanguageType.ZH_TW 枚舉值
- 擴展 _lang_to_locale() 映射支援 zh-TW
- 創建 zh_TW 翻譯檔案結構 (messages.po + game_configs.po)
Closes #114

* feat(i18n): add zh-TW locale support (translation completion)

完成繁體中文語言的完整翻譯工作:

## 後端翻譯
- 將 messages.po 和 game_configs.po 轉換為繁體中文
- 編譯生成對應的 .mo 檔案
- 使用 OpenCC 's2t' 轉換器進行簡繁轉換

## 前端翻譯
- 新增 zh-TW.json 語言檔案
- 更新 index.ts 註冊 zh-TW 語言
- 修正 UI 語言標籤為「繁體中文」

## 翻譯統計
- messages.po: 701 個 msgid(動態字串、戰鬥、奇遇等)
- game_configs.po: 2972 個 msgid(遊戲配置)
- zh-TW.json: 347 行(前端 UI)

* feat(i18n): add zh-TW optimizations and tests

## 可選優化 1:用語本地化
- 修正前端 UI 詞彙為台灣繁體習慣
- 主要修正項目:
  - 菜單 -> 選單
  - 設置 -> 設定
  - 加載 -> 載入
  - 保存 -> 儲存
  - 程序 -> 程式
  - 其他 UI 用語調整

## 可選優化 2:測試覆蓋
- 新增 test_i18n_zh_tw.py 測試檔案
- 涵蓋 13 個測試用例:
  - 語言枚舉驗證
  - 語言切換測試
  - 日期格式驗證
  - 動態翻譯測試
  - 境界/動作/情緒翻譯測試
  - 檔案完整性檢查
  - 翻譯覆蓋率驗證
  - 回退機制測試

## 測試結果
- 所有 13 個測試用例通過
- 翻譯覆蓋率 > 95%

* fix(i18n): add polib skip check to translation coverage test

* feat(i18n): add zh-TW column to glossary with Taiwan localization
2026-02-01 13:28:18 +08:00

11 KiB

1chinesechinese_twenglishcategorysubcategorynotes
2练气練氣cultivationrealmFirst realm - refining qi
3筑基築基cultivationrealmBuilding the foundation
4金丹金丹cultivationrealmForming the golden core
5元婴元嬰cultivationrealmNascent soul emerges
6前期前期cultivationstage
7中期中期cultivationstage
8后期後期cultivationstage
9普通普通rarityCommon items/traits
10稀有稀有rarityUncommon items/traits
11超稀有超稀有rarityRare items/traits
12传说傳說rarityLegendary items/traits
13element
14element
15element
16element
17element
18elementExtended element
19elementExtended element
20elementExtended element
21elementAlso: Lightning
22elementDark arts attribute
23金灵根金靈根root
24木灵根木靈根root
25水灵根水靈根root
26火灵根火靈根root
27土灵根土靈根root
28天灵根天靈根rootRare - all-element affinity
29雷灵根雷靈根root
30冰灵根冰靈根root
31风灵根風靈根root
32暗灵根暗靈根root
33direction
34direction
35西西direction
36direction
37alignmentOrthodox sects
38中立中立alignment
39alignmentDemonic/Unorthodox
40掌门掌門sectrankAlso: Sect Leader
41长老長老sectrank
42内门弟子內門弟子sectrank
43外门弟子外門弟子sectrank
44弟子弟子sectrankGeneric
45生命恢复速率生命恢復速率effectextra_hp_recovery_rate
46最大生命值最大生命值effectextra_max_hp
47最大寿元最大壽元effectextra_max_lifespan
48兵器熟练度获取兵器熟練度獲取effectextra_weapon_proficiency_gain
49双修经验雙修經驗effectextra_dual_cultivation_exp
50突破成功率突破成功率effectextra_breakthrough_success_rate
51奇遇概率奇遇概率effectextra_fortune_probability
52霉运概率黴運概率effectextra_misfortune_probability
53采集获取材料採集獲取材料effectextra_harvest_materials
54狩猎获取材料狩獵獲取材料effectextra_hunt_materials
55挖矿获取材料挖礦獲取材料effectextra_mine_materials
56物品出售价格物品出售價格effectextra_item_sell_price_multiplier
57购买折扣購買折扣effectshop_buy_price_reduction
58兵器升级概率兵器升級概率effectextra_weapon_upgrade_chance
59搜刮收益搜刮收益effectextra_plunder_multiplier
60捕捉灵兽成功率捕捉靈獸成功率effectextra_catch_success_rate
61修炼经验修煉經驗effectextra_cultivate_exp
62战力点数戰力點數effectextra_battle_strength_points
63逃跑成功率逃跑成功率effectextra_escape_success_rate
64暗杀成功率暗殺成功率effectextra_assassinate_success_rate
65感知范围感知範圍effectextra_observation_radius
66移动步长移動步長effectextra_move_step
67特殊能力特殊能力effectlegal_actions
68伤害减免傷害減免effectdamage_reduction
69境界压制境界壓制effectrealm_suppression_bonus
70修炼时长缩减修煉時長縮減effectcultivate_duration_reduction
71铸造成功率鑄造成功率effectextra_cast_success_rate
72炼丹成功率煉丹成功率effectextra_refine_success_rate
73自愈效率自愈效率effectextra_self_heal_efficiency
74道侣道侶relationCultivation partner/spouse
75师傅師傅relationTeacher in cultivation
76徒弟徒弟relationStudent of a master
77父母父母relation
78子女子女relation
79父亲父親relation
80母亲母親relation
81儿子兒子relation
82女儿女兒relation
83兄弟姐妹兄弟姐妹relation
84哥哥哥哥relation
85弟弟弟弟relation
86姐姐姐姐relation
87妹妹妹妹relation
88朋友朋友relation
89仇人仇人relationAlso: Foe
90亲属親屬relationExtended family
91上品上品gradeAlso: High-grade
92中品中品gradeAlso: Mid-grade
93下品下品gradeAlso: Low-grade
94weapontype
95weapontypeAlso: Blade
96weapontype
97weapontype
98weapontype
99weapontype
100weapontypeMusical weapon
101weapontypeMusical weapon
102暗器暗器weapontype
103破境丹破境丹elixirtypeFor breaking through bottlenecks
104延寿丹延壽丹elixirtypeExtends lifespan
105长生丹長生丹elixirtypeExtends lifespan
106燃血丹燃血丹elixirtypeTemporary power boost
107疗伤丹療傷丹elixirtypeRestores HP
108回春丹回春丹elixirtypeHealing over time
109灵石靈石itemCurrency
110丹药丹藥itemAlso: Pill - Medicine
111法宝法寶itemMagical treasure
112兵器兵器item
113功法功法itemAlso: Art - Manual
114辅助装备輔助裝備itemAccessories
115修炼修煉actionsoloGain experience
116突破突破actionsoloAdvance realm
117疗伤療傷actionsoloRecover HP
118采集採集actionsoloGather plants
119狩猎狩獵actionsoloHunt animals
120挖矿挖礦actionsoloExtract ore
121炼丹煉丹actionsoloCraft pills
122铸造鑄造actionsoloCraft equipment
123温养兵器溫養兵器actionsoloIncrease proficiency
124购买購買actionsoloPurchase items
125出售出售actionsoloSell items
126消遣消遣actionsoloRelax
127御兽御獸actionsoloCapture spirit beast
128移动移動actionsoloTravel
129移动到区域移動到區域actionsoloTravel to location
130移动到角色移動到角色actionsoloTravel to person
131移动探索移動探索actionsoloExplore direction
132离开区域離開區域actionsoloDepart area
133远离角色遠離角色actionsoloDistance from person
134帮助凡人幫助凡人actionsoloRighteous action
135搜刮凡人搜刮凡人actionsoloEvil action
136吞噬凡人吞噬凡人actionsoloConsume souls
137攀谈攀談actionmutualChat
138交谈交談actionmutualDialogue
139切磋切磋actionmutualFriendly combat
140攻击攻擊actionmutualInitiate combat
141发起战斗發起戰鬥actionmutualStart fight
142暗杀暗殺actionmutualStealth kill
143逃离逃離actionmutualFlee combat
144双修雙修actionmutualPartner cultivation
145传道傳道actionmutualTeach disciple
146赠送贈送actionmutualGive items
147抢夺洞府搶奪洞府actionmutualContest dwelling
148驱赶驅趕actionmutualForce to leave
149接受接受actionfeedback
150拒绝拒絕actionfeedback
151让步讓步actionfeedback
152试图远离試圖遠離actionfeedback
153试图离开区域試圖離開區域actionfeedback
154逃离逃離actionfeedback
155战斗戰鬥actionfeedback
156误入洞府誤入洞府eventfortuneEquipment
157巧捡神兵巧撿神兵eventfortuneEquipment
158巧捡奇物巧撿奇物eventfortuneEquipment
159误入试炼誤入試煉eventfortuneEquipment
160异象出世異象出世eventfortuneEquipment
161高人赠予高人贈予eventfortuneEquipment
162高人指点高人指點eventfortuneTechnique
163玄妙感悟玄妙感悟eventfortuneTechnique
164危难相救危難相救eventfortuneFind Master
165品行打动品行打動eventfortuneFind Master
166展露天赋展露天賦eventfortuneFind Master
167机缘巧合機緣巧合eventfortuneFind Master
168通过考验通過考驗eventfortuneFind Master
169偶遇灵矿偶遇靈礦eventfortuneSpirit Stones
170洞府遗财洞府遺財eventfortuneSpirit Stones
171击杀妖兽擊殺妖獸eventfortuneSpirit Stones
172交易获利交易獲利eventfortuneSpirit Stones
173赌石得宝賭石得寶eventfortuneSpirit Stones
174拾遗藏宝拾遺藏寶eventfortuneSpirit Stones
175顿悟玄机頓悟玄機eventfortuneCultivation
176古碑感悟古碑感悟eventfortuneCultivation
177服食灵药服食靈藥eventfortuneCultivation
178秘境修炼祕境修煉eventfortuneCultivation
179前辈灌顶前輩灌頂eventfortuneCultivation
180灵泉淬体靈泉淬體eventfortuneCultivation
181传承记忆傳承記憶eventfortuneCultivation
182遭遇扒手遭遇扒手eventmisfortuneLoss - Spirit stones
183误买假货誤買假貨eventmisfortuneLoss - Spirit stones
184遭人勒索遭人勒索eventmisfortuneLoss - Spirit stones
185洞府失窃洞府失竊eventmisfortuneLoss - Spirit stones
186赌石惨败賭石慘敗eventmisfortuneLoss - Spirit stones
187投资失败投資失敗eventmisfortuneLoss - Spirit stones
188修炼岔气修煉岔氣eventmisfortuneInjury - Qi went astray
189出门摔伤出門摔傷eventmisfortuneInjury
190妖兽偷袭妖獸偷襲eventmisfortuneInjury
191仇家闷棍仇家悶棍eventmisfortuneInjury
192误触机关誤觸機關eventmisfortuneInjury
193天降横祸天降橫禍eventmisfortuneInjury
194心魔滋生心魔滋生eventmisfortuneBacklash
195灵气逆行靈氣逆行eventmisfortuneBacklash
196感悟错乱感悟錯亂eventmisfortuneBacklash
197急火攻心急火攻心eventmisfortuneBacklash
198心魔心魔eventtribulationInner demon - self-doubt
199雷劫雷劫eventtribulationHeavenly lightning
200肉身肉身eventtribulationPhysical transformation
201寻仇尋仇eventtribulationPast enemies return
202情劫情劫eventtribulationLove/attachment trial
203阳罡陽罡eventtribulationScorching yang energy
204雷火雷火eventtribulationCombined lightning and fire
205风灾風災eventtribulationViolent tempest
206阴狱陰獄eventtribulationNetherworld judgment
207魔劫魔劫eventtribulationInner demons manifest
208老死老死eventdeathLifespan exhausted
209战死戰死eventdeath
210重伤不治重傷不治eventdeath
211平静平靜emotion
212开心開心emotion
213愤怒憤怒emotion
214悲伤悲傷emotion
215恐惧恐懼emotion
216惊讶驚訝emotion
217期待期待emotion
218厌恶厭惡emotion
219疑惑疑惑emotion
220疲惫疲憊emotion
221系统菜单系統選單ui
222开始游戏開始遊戲ui
223加载游戏載入遊戲ui
224保存游戏儲存遊戲ui
225新建角色新建角色ui
226删除角色刪除角色ui
227设置設定ui
228其他其他ui
229境界境界ui
230年龄年齡ui
231性别性別ui
232ui
233ui
234宗门宗門ui
235散修散修uiIndependent - no sect
236灵根靈根ui
237灵石靈石ui
238颜值顏值ui
239基础战力基礎戰力ui
240情绪情緒ui
241当前思考當前思考ui
242特质特質uiAlso: Persona
243功法与装备功法與裝備ui
244长期目标長期目標ui
245短期目标短期目標ui
246设定目标設定目標ui
247清空目标清空目標ui
248语言語言ui
249中文中文ui
250英文英文ui