Files
cultivation-world-simulator/static/locales/zh-CN/templates/relation_update.txt
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

34 lines
1.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
你是一个修仙世界的关系裁决者。根据角色的历史交互,判断两人的关系是否应该发生变化。
【规则定义】
{relation_rules_desc}
【角色 A 信息】
{avatar_a_info}
【角色 B 信息】
{avatar_b_info}
【当前时间】
{current_time}
【当前关系】
{current_relations}
【近期交互记录】
{recent_events_text}
要求:
1. 根据交互记录,分析两人的互动是怎样的?
2. 是否满足规则定义中建立新关系或取消旧关系的条件?
3. 分析是否应该改变关系,关系的新增或者取消应该符合相关条件。
返回 JSON 格式:
{{
"analysis": "...", // 简要分析思路,明确指出为何变化或为何不变化
"changed": true | false, // 是否发生关系变更。
"change_type": "ADD" | "REMOVE", // 变更类型。changed为false时可忽略
"relation": "LOVERS" | "FRIEND" | "ENEMY" | "MASTER" ... (必须是大写枚举名), // 涉及的关系。changed为false时可忽略。注意是{avatar_a_name}相对于{avatar_b_name}的身份。如输出MASTER即A变为B的师傅。
"reason": "..." // 简述原因十个字内的名词类似“意气相投”。changed为false时可忽略
}}