4thfever
|
bc3ebc006c
|
Refactor/i18n (#115)
重构i18n,现在game configs的配表,除了姓名这种外,都是统一的配表了。
对应的配表的名称和desc需要去i18n里取,但是其他配置不需要重复配置了。
这大大简化了之后新增i18n的心智负担。
|
2026-02-01 01:09:24 +08:00 |
|
4thfever
|
e1091fdf5a
|
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>
|
2026-01-24 13:47:23 +08:00 |
|
bridge
|
5241f70ef3
|
refactor item ids
|
2026-01-11 23:12:48 +08:00 |
|
bridge
|
3a9a9fd6f0
|
add choice helper
|
2026-01-03 22:26:55 +08:00 |
|
bridge
|
3a47d48fb8
|
refactor equip
|
2025-12-31 23:22:17 +08:00 |
|
bridge
|
7197dd1acb
|
refactor equip
|
2025-12-31 23:18:47 +08:00 |
|
bridge
|
462c28fb30
|
fix effects
|
2025-12-31 22:26:44 +08:00 |
|
bridge
|
ae28d3a546
|
remove mp
|
2025-12-25 01:04:42 +08:00 |
|
bridge
|
fc668b3711
|
fix double story bugs
|
2025-12-13 22:18:39 +08:00 |
|
bridge
|
7aa8aae55c
|
update names
|
2025-12-01 20:55:18 +08:00 |
|
bridge
|
26038004ef
|
udpate sect effects
|
2025-11-29 14:31:50 +08:00 |
|
bridge
|
efba680269
|
update more weapons
|
2025-11-14 12:54:35 +08:00 |
|
bridge
|
3a8032124f
|
update
|
2025-11-13 18:57:16 +08:00 |
|
bridge
|
7af6757e64
|
update effects
|
2025-11-13 11:28:09 +08:00 |
|
bridge
|
3d60df4dbf
|
update treasure to weapon and auxiliary
|
2025-11-13 01:54:46 +08:00 |
|
bridge
|
125d7891e5
|
update treasure to weapon and auxiliary
|
2025-11-13 01:34:09 +08:00 |
|
bridge
|
e760ba107d
|
update treasure to weapon and auxiliary
|
2025-11-13 01:16:26 +08:00 |
|