Commit Graph

68 Commits

Author SHA1 Message Date
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
ed7d16b4f3 feature: log print version 2026-01-11 18:27:41 +08:00
bridge
a0cfb3b9da make better conversation template 2026-01-10 01:41:13 +08:00
bridge
40d8a0425b refactor self heal system 2026-01-08 00:33:41 +08:00
bridge
b2a021bf8a rename item -> material & refactor buying action 2026-01-07 22:43:26 +08:00
bridge
7c69d612b0 add refine action 2026-01-07 21:15:04 +08:00
bridge
8a23dc5576 add lode 2026-01-06 23:01:25 +08:00
bridge
b74014f9f2 add emotion 2026-01-04 22:49:20 +08:00
bridge
806e2c1262 refactor price system 2026-01-04 21:49:58 +08:00
bridge
775d830ec3 add cast 2026-01-03 23:25:38 +08:00
bridge
f301d67493 update persona 2026-01-01 14:51:34 +08:00
bridge
6dc0447293 add misfortune 2025-12-30 23:16:10 +08:00
bridge
864b03b460 fix incorrect prob 2025-12-13 22:44:01 +08:00
bridge
8124537cff update distance 2025-12-08 22:39:44 +08:00
bridge
54cb096bd8 update 2025-11-26 21:32:14 +08:00
bridge
4d245653a6 change order of events 2025-11-22 20:43:27 +08:00
bridge
a65a23726e refactor 2025-11-22 15:57:59 +08:00
bridge
5ae2538d86 refactor color system 2025-11-17 23:24:37 +08:00
bridge
7af6757e64 update effects 2025-11-13 11:28:09 +08:00
bridge
f8c4f84c7a update treasure to weapon and auxiliary 2025-11-13 02:19:35 +08:00
bridge
2d13c43ec6 add more persona effects 2025-11-12 00:17:07 +08:00
bridge
a20d978921 add more persona effects 2025-11-11 23:57:46 +08:00
bridge
1a98678c4c update personas 2025-11-11 23:15:58 +08:00
bridge
9949265748 merge persona and traits & add rarity 2025-11-11 23:07:36 +08:00
bridge
5487ca65a9 update avatar pngs 2025-10-31 01:14:44 +08:00
bridge
00b173fa30 fix talk no recent events bug 2025-10-26 02:38:45 +08:00
bridge
bc155fbfca update 2025-10-26 01:26:14 +08:00
bridge
2eb2d6fce5 update 2025-10-25 22:04:57 +08:00
bridge
46500629fb update 2025-10-25 00:14:06 +08:00
bridge
1520c6489f fix async bug 2025-10-23 00:50:52 +08:00
bridge
79266e638e support scroll for hover 2025-10-22 23:41:19 +08:00
bridge
486c094dce update readme 2025-10-22 00:15:24 +08:00
bridge
17afb4c876 update can_start 2025-10-21 23:58:39 +08:00
bridge
b4fa1c1c76 ad catch 2025-10-21 22:53:13 +08:00
bridge
e220b45b2a fix bugs 2025-10-19 02:48:12 +08:00
bridge
08c32c38c2 update 2025-10-19 02:00:25 +08:00
bridge
41c8782753 update effect str 2025-10-16 23:24:08 +08:00
bridge
0ec534f8c1 add breakthrough story 2025-10-16 01:14:18 +08:00
bridge
a038d32904 update battle 2025-10-16 00:54:34 +08:00
bridge
9d9d9737e5 update 2025-10-16 00:43:31 +08:00
bridge
837cb539fc refactor battle 2025-10-15 23:28:19 +08:00
bridge
9dc82ca49b add personas 2025-10-13 00:10:44 +08:00
bridge
0d2cc2c3d3 replace prompt with desc 2025-10-12 23:34:19 +08:00
bridge
029f717d95 update dual cultivate 2025-10-12 23:10:08 +08:00
bridge
c21a4ebaf1 add personas 2025-10-12 21:49:21 +08:00
bridge
ad29011193 update csv 2025-10-08 23:33:14 +08:00
bridge
d50f3ac70d fix action bugs 2025-10-04 21:53:12 +08:00
bridge
9b0be5b4c2 fix action bugs 2025-10-04 21:27:17 +08:00
bridge
f109abbb08 add persona conditions 2025-10-04 17:13:35 +08:00