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

251 lines
11 KiB
CSV

chinese,chinese_tw,english,category,subcategory,notes
练气,練氣,cultivation,realm,First realm - refining qi,
筑基,築基,cultivation,realm,Building the foundation,
金丹,金丹,cultivation,realm,Forming the golden core,
元婴,元嬰,cultivation,realm,Nascent soul emerges,
前期,前期,cultivation,stage,,
中期,中期,cultivation,stage,,
后期,後期,cultivation,stage,,
普通,普通,rarity,,Common items/traits,
稀有,稀有,rarity,,Uncommon items/traits,
超稀有,超稀有,rarity,,Rare items/traits,
传说,傳說,rarity,,Legendary items/traits,
,,element,,,
,,element,,,
,,element,,,
,,element,,,
,,element,,,
,,element,,Extended element,
,,element,,Extended element,
,,element,,Extended element,
,,element,,Also: Lightning,
,,element,,Dark arts attribute,
金灵根,金靈根,root,,,
木灵根,木靈根,root,,,
水灵根,水靈根,root,,,
火灵根,火靈根,root,,,
土灵根,土靈根,root,,,
天灵根,天靈根,root,,Rare - all-element affinity,
雷灵根,雷靈根,root,,,
冰灵根,冰靈根,root,,,
风灵根,風靈根,root,,,
暗灵根,暗靈根,root,,,
,,direction,,,
,,direction,,,
西,西,direction,,,
,,direction,,,
,,alignment,,Orthodox sects,
中立,中立,alignment,,,
,,alignment,,Demonic/Unorthodox,
掌门,掌門,sect,rank,Also: Sect Leader,
长老,長老,sect,rank,,
内门弟子,內門弟子,sect,rank,,
外门弟子,外門弟子,sect,rank,,
弟子,弟子,sect,rank,Generic,
生命恢复速率,生命恢復速率,effect,,extra_hp_recovery_rate,
最大生命值,最大生命值,effect,,extra_max_hp,
最大寿元,最大壽元,effect,,extra_max_lifespan,
兵器熟练度获取,兵器熟練度獲取,effect,,extra_weapon_proficiency_gain,
双修经验,雙修經驗,effect,,extra_dual_cultivation_exp,
突破成功率,突破成功率,effect,,extra_breakthrough_success_rate,
奇遇概率,奇遇概率,effect,,extra_fortune_probability,
霉运概率,黴運概率,effect,,extra_misfortune_probability,
采集获取材料,採集獲取材料,effect,,extra_harvest_materials,
狩猎获取材料,狩獵獲取材料,effect,,extra_hunt_materials,
挖矿获取材料,挖礦獲取材料,effect,,extra_mine_materials,
物品出售价格,物品出售價格,effect,,extra_item_sell_price_multiplier,
购买折扣,購買折扣,effect,,shop_buy_price_reduction,
兵器升级概率,兵器升級概率,effect,,extra_weapon_upgrade_chance,
搜刮收益,搜刮收益,effect,,extra_plunder_multiplier,
捕捉灵兽成功率,捕捉靈獸成功率,effect,,extra_catch_success_rate,
修炼经验,修煉經驗,effect,,extra_cultivate_exp,
战力点数,戰力點數,effect,,extra_battle_strength_points,
逃跑成功率,逃跑成功率,effect,,extra_escape_success_rate,
暗杀成功率,暗殺成功率,effect,,extra_assassinate_success_rate,
感知范围,感知範圍,effect,,extra_observation_radius,
移动步长,移動步長,effect,,extra_move_step,
特殊能力,特殊能力,effect,,legal_actions,
伤害减免,傷害減免,effect,,damage_reduction,
境界压制,境界壓制,effect,,realm_suppression_bonus,
修炼时长缩减,修煉時長縮減,effect,,cultivate_duration_reduction,
铸造成功率,鑄造成功率,effect,,extra_cast_success_rate,
炼丹成功率,煉丹成功率,effect,,extra_refine_success_rate,
自愈效率,自愈效率,effect,,extra_self_heal_efficiency,
道侣,道侶,relation,,Cultivation partner/spouse,
师傅,師傅,relation,,Teacher in cultivation,
徒弟,徒弟,relation,,Student of a master,
父母,父母,relation,,,
子女,子女,relation,,,
父亲,父親,relation,,,
母亲,母親,relation,,,
儿子,兒子,relation,,,
女儿,女兒,relation,,,
兄弟姐妹,兄弟姐妹,relation,,,
哥哥,哥哥,relation,,,
弟弟,弟弟,relation,,,
姐姐,姐姐,relation,,,
妹妹,妹妹,relation,,,
朋友,朋友,relation,,,
仇人,仇人,relation,,Also: Foe,
亲属,親屬,relation,,Extended family,
上品,上品,grade,,Also: High-grade,
中品,中品,grade,,Also: Mid-grade,
下品,下品,grade,,Also: Low-grade,
,,weapon,type,,
,,weapon,type,Also: Blade,
,,weapon,type,,
,,weapon,type,,
,,weapon,type,,
,,weapon,type,,
,,weapon,type,Musical weapon,
,,weapon,type,Musical weapon,
暗器,暗器,weapon,type,,
破境丹,破境丹,elixir,type,For breaking through bottlenecks,
延寿丹,延壽丹,elixir,type,Extends lifespan,
长生丹,長生丹,elixir,type,Extends lifespan,
燃血丹,燃血丹,elixir,type,Temporary power boost,
疗伤丹,療傷丹,elixir,type,Restores HP,
回春丹,回春丹,elixir,type,Healing over time,
灵石,靈石,item,,Currency,
丹药,丹藥,item,,Also: Pill - Medicine,
法宝,法寶,item,,Magical treasure,
兵器,兵器,item,,,
功法,功法,item,,Also: Art - Manual,
辅助装备,輔助裝備,item,,Accessories,
修炼,修煉,action,solo,Gain experience,
突破,突破,action,solo,Advance realm,
疗伤,療傷,action,solo,Recover HP,
采集,採集,action,solo,Gather plants,
狩猎,狩獵,action,solo,Hunt animals,
挖矿,挖礦,action,solo,Extract ore,
炼丹,煉丹,action,solo,Craft pills,
铸造,鑄造,action,solo,Craft equipment,
温养兵器,溫養兵器,action,solo,Increase proficiency,
购买,購買,action,solo,Purchase items,
出售,出售,action,solo,Sell items,
消遣,消遣,action,solo,Relax,
御兽,御獸,action,solo,Capture spirit beast,
移动,移動,action,solo,Travel,
移动到区域,移動到區域,action,solo,Travel to location,
移动到角色,移動到角色,action,solo,Travel to person,
移动探索,移動探索,action,solo,Explore direction,
离开区域,離開區域,action,solo,Depart area,
远离角色,遠離角色,action,solo,Distance from person,
帮助凡人,幫助凡人,action,solo,Righteous action,
搜刮凡人,搜刮凡人,action,solo,Evil action,
吞噬凡人,吞噬凡人,action,solo,Consume souls,
攀谈,攀談,action,mutual,Chat,
交谈,交談,action,mutual,Dialogue,
切磋,切磋,action,mutual,Friendly combat,
攻击,攻擊,action,mutual,Initiate combat,
发起战斗,發起戰鬥,action,mutual,Start fight,
暗杀,暗殺,action,mutual,Stealth kill,
逃离,逃離,action,mutual,Flee combat,
双修,雙修,action,mutual,Partner cultivation,
传道,傳道,action,mutual,Teach disciple,
赠送,贈送,action,mutual,Give items,
抢夺洞府,搶奪洞府,action,mutual,Contest dwelling,
驱赶,驅趕,action,mutual,Force to leave,
接受,接受,action,feedback,,
拒绝,拒絕,action,feedback,,
让步,讓步,action,feedback,,
试图远离,試圖遠離,action,feedback,,
试图离开区域,試圖離開區域,action,feedback,,
逃离,逃離,action,feedback,,
战斗,戰鬥,action,feedback,,
误入洞府,誤入洞府,event,fortune,Equipment,
巧捡神兵,巧撿神兵,event,fortune,Equipment,
巧捡奇物,巧撿奇物,event,fortune,Equipment,
误入试炼,誤入試煉,event,fortune,Equipment,
异象出世,異象出世,event,fortune,Equipment,
高人赠予,高人贈予,event,fortune,Equipment,
高人指点,高人指點,event,fortune,Technique,
玄妙感悟,玄妙感悟,event,fortune,Technique,
危难相救,危難相救,event,fortune,Find Master,
品行打动,品行打動,event,fortune,Find Master,
展露天赋,展露天賦,event,fortune,Find Master,
机缘巧合,機緣巧合,event,fortune,Find Master,
通过考验,通過考驗,event,fortune,Find Master,
偶遇灵矿,偶遇靈礦,event,fortune,Spirit Stones,
洞府遗财,洞府遺財,event,fortune,Spirit Stones,
击杀妖兽,擊殺妖獸,event,fortune,Spirit Stones,
交易获利,交易獲利,event,fortune,Spirit Stones,
赌石得宝,賭石得寶,event,fortune,Spirit Stones,
拾遗藏宝,拾遺藏寶,event,fortune,Spirit Stones,
顿悟玄机,頓悟玄機,event,fortune,Cultivation,
古碑感悟,古碑感悟,event,fortune,Cultivation,
服食灵药,服食靈藥,event,fortune,Cultivation,
秘境修炼,祕境修煉,event,fortune,Cultivation,
前辈灌顶,前輩灌頂,event,fortune,Cultivation,
灵泉淬体,靈泉淬體,event,fortune,Cultivation,
传承记忆,傳承記憶,event,fortune,Cultivation,
遭遇扒手,遭遇扒手,event,misfortune,Loss - Spirit stones,
误买假货,誤買假貨,event,misfortune,Loss - Spirit stones,
遭人勒索,遭人勒索,event,misfortune,Loss - Spirit stones,
洞府失窃,洞府失竊,event,misfortune,Loss - Spirit stones,
赌石惨败,賭石慘敗,event,misfortune,Loss - Spirit stones,
投资失败,投資失敗,event,misfortune,Loss - Spirit stones,
修炼岔气,修煉岔氣,event,misfortune,Injury - Qi went astray,
出门摔伤,出門摔傷,event,misfortune,Injury,
妖兽偷袭,妖獸偷襲,event,misfortune,Injury,
仇家闷棍,仇家悶棍,event,misfortune,Injury,
误触机关,誤觸機關,event,misfortune,Injury,
天降横祸,天降橫禍,event,misfortune,Injury,
心魔滋生,心魔滋生,event,misfortune,Backlash,
灵气逆行,靈氣逆行,event,misfortune,Backlash,
感悟错乱,感悟錯亂,event,misfortune,Backlash,
急火攻心,急火攻心,event,misfortune,Backlash,
心魔,心魔,event,tribulation,Inner demon - self-doubt,
雷劫,雷劫,event,tribulation,Heavenly lightning,
肉身,肉身,event,tribulation,Physical transformation,
寻仇,尋仇,event,tribulation,Past enemies return,
情劫,情劫,event,tribulation,Love/attachment trial,
阳罡,陽罡,event,tribulation,Scorching yang energy,
雷火,雷火,event,tribulation,Combined lightning and fire,
风灾,風災,event,tribulation,Violent tempest,
阴狱,陰獄,event,tribulation,Netherworld judgment,
魔劫,魔劫,event,tribulation,Inner demons manifest,
老死,老死,event,death,Lifespan exhausted,
战死,戰死,event,death,,
重伤不治,重傷不治,event,death,,
平静,平靜,emotion,,,
开心,開心,emotion,,,
愤怒,憤怒,emotion,,,
悲伤,悲傷,emotion,,,
恐惧,恐懼,emotion,,,
惊讶,驚訝,emotion,,,
期待,期待,emotion,,,
厌恶,厭惡,emotion,,,
疑惑,疑惑,emotion,,,
疲惫,疲憊,emotion,,,
系统菜单,系統選單,ui,,,
开始游戏,開始遊戲,ui,,,
加载游戏,載入遊戲,ui,,,
保存游戏,儲存遊戲,ui,,,
新建角色,新建角色,ui,,,
删除角色,刪除角色,ui,,,
设置,設定,ui,,,
其他,其他,ui,,,
境界,境界,ui,,,
年龄,年齡,ui,,,
性别,性別,ui,,,
,,ui,,,
,,ui,,,
宗门,宗門,ui,,,
散修,散修,ui,,Independent - no sect,
灵根,靈根,ui,,,
灵石,靈石,ui,,,
颜值,顏值,ui,,,
基础战力,基礎戰力,ui,,,
情绪,情緒,ui,,,
当前思考,當前思考,ui,,,
特质,特質,ui,,Also: Persona,
功法与装备,功法與裝備,ui,,,
长期目标,長期目標,ui,,,
短期目标,短期目標,ui,,,
设定目标,設定目標,ui,,,
清空目标,清空目標,ui,,,
语言,語言,ui,,,
中文,中文,ui,,,
英文,英文,ui,,,