Feat/i18n (#92)
* feat: add vue-i18n * feat: add vue-i18n * feat: add vue-i18n * feat: add language class * add: en templates and configs * add: en names * refactor: name gender id and sect id * feat(i18n): add gettext infrastructure for dynamic text translation (#81) * feat(i18n): add gettext infrastructure for dynamic text translation - Add src/i18n/ module with t() translation function - Add .po/.mo files for zh_CN and en_US locales - Update LanguageManager to reload translations on language change - Add comprehensive tests (14 tests, all passing) - Add implementation spec at docs/specs/i18n-dynamic-text.md Phase 1 of i18n dynamic text implementation. * feat(i18n): expand .po files with comprehensive translation entries Add translation messages for: - Battle result messages (fatal/non-fatal outcomes) - Fortune event messages (item discovery, cultivation gains) - Misfortune event messages (losses, damage, regression) - Death reason messages - Item exchange messages (equip, sell, discard) - Single choice context and option labels - Common labels (weapon, auxiliary, technique, elixir) Both zh_CN and en_US locales updated with matching entries. * test: add .po file integrity tests * feat: i18n for actions * feat: i18n for effects * feat: i18n for gathering * feat: i18n for classes * feat: i18n for classes * feat: i18n for classes * feat: i18n for classes * fix bugs * fix bugs * fix bugs * fix bugs * fix bugs * fix bugs * fix bugs * fix bugs * update csv * update world info * update prompt * update prompt * fix bug * fix bug * fix bug * fix bug * fix bug * fix bug * fix bug * fix bug * fix bug * update * update * update * update * update * update * update --------- Co-authored-by: Zihao Xu <xzhseh@gmail.com>
This commit is contained in:
12
static/locales/en-US/game_configs/root.csv
Normal file
12
static/locales/en-US/game_configs/root.csv
Normal file
@@ -0,0 +1,12 @@
|
||||
id,key,name,element_list,desc,effects
|
||||
,,,Element list separated by semicolons (e.g., Metal;Wood),Description (not used in code),JSON Effects
|
||||
1,GOLD,Metal Spiritual Root,GOLD,Strong and decisive; strong attack power, suitable for sword cultivators,
|
||||
2,WOOD,Wood Spiritual Root,WOOD,Kind and resilient; good at recovery, poisonous techniques, and wood-attribute spells,
|
||||
3,WATER,Water Spiritual Root,WATER,Wise and smooth; light movement, good at support and stealth,
|
||||
4,FIRE,Fire Spiritual Root,FIRE,Passionate and violent; high-burst offensive techniques, fire-system techniques,
|
||||
5,EARTH,Earth Spiritual Root,EARTH,Steady and practical; high defense, body cultivators or puppetry,
|
||||
6,THUNDER,Thunder Spiritual Root,WATER;EARTH,Extremely explosive; top-tier in combat,
|
||||
7,ICE,Ice Spiritual Root,GOLD;WATER,Strong control; good persistence,
|
||||
8,WIND,Wind Spiritual Root,WOOD;WATER,Exceptional movement; elusive,
|
||||
9,DARK,Dark Spiritual Root,FIRE;EARTH,Stealth-oriented; good at illusions and deceit,
|
||||
10,HEAVEN,Heavenly Spiritual Root,GOLD;WOOD;WATER;FIRE;EARTH,Peerless aptitude; proficient in all five elements, comprehensive cultivation,{extra_breakthrough_success_rate: 0.1}
|
||||
|
Reference in New Issue
Block a user