fix(i18n): add missing zh-TW frontend components and configs (#117)
* fix(i18n): add zh-TW to language options in settings menu * fix(i18n): add zh-TW to language options in splash layer * fix(i18n): add zh-TW support to setLocale function * feat(i18n): add zh-TW game config files (names) * feat(i18n): add zh-TW AI prompt templates * docs:修正 glossary 繁中欄位 * docs:解決 glossary 衝突 * fix(i18n):補齊 zh-TW world info 標題
This commit is contained in:
1118
static/locales/zh-TW/game_configs/given_name.csv
Normal file
1118
static/locales/zh-TW/game_configs/given_name.csv
Normal file
File diff suppressed because it is too large
Load Diff
100
static/locales/zh-TW/game_configs/last_name.csv
Normal file
100
static/locales/zh-TW/game_configs/last_name.csv
Normal file
@@ -0,0 +1,100 @@
|
||||
last_name,sect_id,cond
|
||||
姓氏,宗門ID(空=散修通用),條件(暫不用)
|
||||
司馬,,
|
||||
慕容,,
|
||||
上官,,
|
||||
獨孤,,
|
||||
東方,,
|
||||
南宮,,
|
||||
西門,,
|
||||
北冥,,
|
||||
歐陽,,
|
||||
夏侯,,
|
||||
令狐,,
|
||||
諸葛,,
|
||||
皇甫,,
|
||||
公孫,,
|
||||
軒轅,,
|
||||
百里,,
|
||||
呼延,,
|
||||
聞人,,
|
||||
長孫,,
|
||||
段幹,,
|
||||
雲,,
|
||||
葉,,
|
||||
夜,,
|
||||
風,,
|
||||
霜,,
|
||||
雪,,
|
||||
星,,
|
||||
月,,
|
||||
冷,,
|
||||
凌,,
|
||||
蘇,,
|
||||
陸,,
|
||||
蕭,,
|
||||
林,,
|
||||
君,,
|
||||
墨,,
|
||||
白,,
|
||||
顧,,
|
||||
秦,,
|
||||
楚,,
|
||||
趙,,
|
||||
唐,,
|
||||
韓,,
|
||||
魏,,
|
||||
宋,,
|
||||
齊,,
|
||||
燕,,
|
||||
晉,,
|
||||
陳,,
|
||||
李,,
|
||||
明,1,
|
||||
心,1,
|
||||
劍,1,
|
||||
霄,1,
|
||||
玄,1,
|
||||
霽,1,
|
||||
衡,1,
|
||||
孤,1,
|
||||
徽,1,
|
||||
肅,1,
|
||||
水,3,
|
||||
鏡,3,
|
||||
寒,3,
|
||||
清,3,
|
||||
沐,3,
|
||||
瀾,3,
|
||||
淵,3,
|
||||
泉,3,
|
||||
冥,4,
|
||||
王,4,
|
||||
幽,4,
|
||||
獄,4,
|
||||
魘,4,
|
||||
陰,4,
|
||||
朱,5,
|
||||
緋,5,
|
||||
刃,5,
|
||||
戮,5,
|
||||
蝕,5,
|
||||
鈞,5,
|
||||
鴉,5,
|
||||
殷,5,
|
||||
合,6,
|
||||
歡,6,
|
||||
柳,6,
|
||||
花,6,
|
||||
厲,7,
|
||||
盧,7,
|
||||
鎮,7,
|
||||
魂,7,
|
||||
鍾,7,
|
||||
青,7,
|
||||
閻,8,
|
||||
鬼,8,
|
||||
歸,8,
|
||||
應,8,
|
||||
魅,8,
|
||||
商,9,
|
||||
|
27
static/locales/zh-TW/templates/ai.txt
Normal file
27
static/locales/zh-TW/templates/ai.txt
Normal file
@@ -0,0 +1,27 @@
|
||||
你是一個決策者,這是一個仙俠世界,你負責來決定某角色之後的動作行爲。
|
||||
角色已知的世界資訊爲:
|
||||
{world_info}
|
||||
全部可執行的動作有:
|
||||
{general_action_infos}
|
||||
你需要進行決策的NPC的info爲
|
||||
{avatar_info}
|
||||
|
||||
|
||||
注意,只返回json格式結果。
|
||||
格式爲:
|
||||
{{
|
||||
{avatar_name}: {{
|
||||
"avatar_thinking": ... // 從角色角度,以第一人稱視角,簡單清晰的描述想法
|
||||
"current_emotion": ... // 從以下列表中選擇一個最符合當前心情的詞:平靜、開心、憤怒、悲傷、恐懼、驚訝、期待、厭惡、疑惑、疲憊
|
||||
"short_term_objective": ..., // 角色接下來一段時間的短期目標
|
||||
"action_name_params_pairs": list[Tuple[action_name, action_params]] // 一次性決定未來的5~10個動作,按順序執行。action_params 必須是字典 {{}}。如果爲空則返回空字典,不能返回null。
|
||||
}}
|
||||
}}
|
||||
|
||||
要求與約束:
|
||||
- thought從側面體現出角色特質、宗門資訊等
|
||||
- 長期目標是非常重要的一個參數,其權重最高,多多參考
|
||||
- 執行動作只能從給定的全部動作中選,且需滿足對應條件,見動作的requirements文本
|
||||
- 一些動作需要先移動滿足某些條件纔可執行,可以適當規劃。
|
||||
- 和另一個角色交互的動作,必須在對應角色附近。執行前可以先MoveToAvatar
|
||||
- 如果對世界瞭解太少,可以先通過MoveToDirection探索世界
|
||||
21
static/locales/zh-TW/templates/auction_need.txt
Normal file
21
static/locales/zh-TW/templates/auction_need.txt
Normal file
@@ -0,0 +1,21 @@
|
||||
你是一個價值評估者,這是一個仙俠世界,你負責來評估一些物品,對於一些NPC的價值。
|
||||
|
||||
你需要進行決策的NPC的dict[AvatarName, info]爲:
|
||||
{avatar_infos}
|
||||
需要評價需求的物品爲:
|
||||
{items}
|
||||
|
||||
注意,只返回json格式的結果。
|
||||
格式爲:
|
||||
{{
|
||||
"{{avatar_name_1}}": {{
|
||||
{{item_id_1}}: int, # 1~5
|
||||
{{item_id_2}}: int,
|
||||
...
|
||||
}}, ...
|
||||
}}
|
||||
|
||||
要求;
|
||||
1. 所有的角色要在這裏評估所有的物品,也就是最後返回的是num_avatar * num_item。都必須有一個估計。
|
||||
2. 分析每一個角色的情況,根據其情況返回需求程度。比如快老死的人對延壽丹藥就是最需要的
|
||||
3. 需求從1到5,1是完全不需要,5是完全需要。
|
||||
20
static/locales/zh-TW/templates/conversation.txt
Normal file
20
static/locales/zh-TW/templates/conversation.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
你是一個小說家,這是一個仙俠世界,你負責來生成兩個NPC間的對話內容。
|
||||
|
||||
你需要進行決策的NPC的dict[AvatarName, info]爲
|
||||
{avatar_infos}
|
||||
之後NPC的將要做行動爲:
|
||||
{planned_actions}
|
||||
|
||||
注意,只返回json格式的結果。
|
||||
格式爲:
|
||||
{{
|
||||
"{avatar_name_2}": {{
|
||||
"thinking": ..., // 簡單思考對話如何進行
|
||||
"conversation_content": ... // 對包含神態、動作描寫的第三人稱小說有來有回的多輪對話片段,100~300字。
|
||||
}}
|
||||
}}
|
||||
|
||||
要求;
|
||||
1. 可以用名字或者綽號(如存在)相互稱呼
|
||||
2. 如果兩人之前對話過,可以接着對話繼續進行,但是不能重複
|
||||
3. {avatar_name_1}和{avatar_name_2}的對話可能是善意\惡意\閒聊。
|
||||
39
static/locales/zh-TW/templates/history_influence_item.txt
Normal file
39
static/locales/zh-TW/templates/history_influence_item.txt
Normal file
@@ -0,0 +1,39 @@
|
||||
你是一個仙俠世界的創作者,我會給你一個原始的世界背景,以及一段歷史。
|
||||
你需要基於世界背景,根據這段歷史,修改這個世界中存在的功法、兵器、輔助裝備資訊。
|
||||
|
||||
世界背景:
|
||||
{world_info}
|
||||
|
||||
歷史文本:
|
||||
{history_str}
|
||||
|
||||
功法資訊:
|
||||
{techniques}
|
||||
|
||||
兵器資訊:
|
||||
{weapons}
|
||||
|
||||
輔助裝備資訊:
|
||||
{auxiliarys}
|
||||
|
||||
基於以上資訊,分析,並返回修改意見。
|
||||
|
||||
返回JSON格式:
|
||||
{{
|
||||
"thinking": "分析應該有怎麼樣的修改",
|
||||
"techniques_change":
|
||||
{{
|
||||
"id": {{ //原來的id
|
||||
"name": str // 新的名字
|
||||
"desc": desc // 新的desc
|
||||
}}
|
||||
}},
|
||||
"weapons_change": {{}} // dict, 結構同上
|
||||
"auxiliarys_change": {{}} // dict, 結構同上
|
||||
}}
|
||||
|
||||
要求:
|
||||
1. thinking是你的思考過程,要詳細分析
|
||||
2. 要參考history的內容進行修改,言之有理。
|
||||
3. 某項沒有修改的話,就返回空字典{{}}
|
||||
4. 要修改的項,只返回name和desc,不返回別的key
|
||||
39
static/locales/zh-TW/templates/history_influence_map.txt
Normal file
39
static/locales/zh-TW/templates/history_influence_map.txt
Normal file
@@ -0,0 +1,39 @@
|
||||
你是一個仙俠世界的創作者,我會給你一個原始的世界背景,以及一段歷史。
|
||||
你需要基於世界背景,根據這段歷史,修改這個世界中存在的區域資訊(包括城市、普通區域、修煉區域)。
|
||||
|
||||
世界背景:
|
||||
{world_info}
|
||||
|
||||
歷史文本:
|
||||
{history_str}
|
||||
|
||||
城市區域資訊:
|
||||
{city_regions}
|
||||
|
||||
普通區域資訊:
|
||||
{normal_regions}
|
||||
|
||||
修煉區域資訊:
|
||||
{cultivate_regions}
|
||||
|
||||
基於以上資訊,分析,並返回修改意見。
|
||||
|
||||
返回JSON格式:
|
||||
{{
|
||||
"thinking": "分析應該有怎麼樣的修改",
|
||||
"city_regions_change":
|
||||
{{
|
||||
"id": {{ //原來的id
|
||||
"name": str // 新的名字
|
||||
"desc": desc // 新的desc
|
||||
}}
|
||||
}},
|
||||
"normal_regions_change": {{}} // dict, 結構同上
|
||||
"cultivate_regions_change": {{}} // dict, 結構同上
|
||||
}}
|
||||
|
||||
要求:
|
||||
1. thinking是你的思考過程,要詳細分析
|
||||
2. 要參考history的內容進行修改,言之有理。
|
||||
3. 某項沒有修改的話,就返回空字典{{}}
|
||||
4. 要修改的項,只返回name和desc,不返回別的key
|
||||
35
static/locales/zh-TW/templates/history_influence_sect.txt
Normal file
35
static/locales/zh-TW/templates/history_influence_sect.txt
Normal file
@@ -0,0 +1,35 @@
|
||||
你是一個仙俠世界的創作者,我會給你一個原始的世界背景,以及一段歷史。
|
||||
你需要基於世界背景,根據這段歷史,修改這個世界中存在的宗門資訊,以及宗門對應的駐地資訊。
|
||||
|
||||
世界背景:
|
||||
{world_info}
|
||||
|
||||
歷史文本:
|
||||
{history_str}
|
||||
|
||||
宗門資訊:
|
||||
{sects}
|
||||
|
||||
宗門區域資訊:
|
||||
{sect_regions}
|
||||
|
||||
基於以上資訊,分析,並返回修改意見。
|
||||
|
||||
返回JSON格式:
|
||||
{{
|
||||
"thinking": "分析應該有怎麼樣的修改",
|
||||
"sects_change":
|
||||
{{
|
||||
"id": {{ //原來的id
|
||||
"name": str // 新的名字
|
||||
"desc": desc // 新的desc
|
||||
}}
|
||||
}},
|
||||
"sect_regions_change": {{}} // dict, 結構同上,針對宗門區域
|
||||
}}
|
||||
|
||||
要求:
|
||||
1. thinking是你的思考過程,要詳細分析
|
||||
2. 要參考history的內容進行修改,言之有理。
|
||||
3. 某項沒有修改的話,就返回空字典{{}}
|
||||
4. 要修改的項,只返回name和desc,不返回別的key
|
||||
25
static/locales/zh-TW/templates/long_term_objective.txt
Normal file
25
static/locales/zh-TW/templates/long_term_objective.txt
Normal file
@@ -0,0 +1,25 @@
|
||||
你是一個仙俠世界的決策者,負責爲修仙角色設定長期目標,即角色在接下來5-10年內想要達成的目標。
|
||||
|
||||
當前世界資訊:
|
||||
{world_info}
|
||||
|
||||
角色資訊:
|
||||
{avatar_info}
|
||||
|
||||
全部可執行的動作供你參考:
|
||||
{general_action_infos}
|
||||
|
||||
基於以上資訊,爲該角色設定一個符合其身份、性格、境遇的長期目標。
|
||||
|
||||
返回JSON格式:
|
||||
{{
|
||||
"thinking": "思考角色會有怎麼樣的長期目標,但也不用過度思考。",
|
||||
"long_term_objective": "目標內容,簡潔清晰明快,15字以內。"
|
||||
}}
|
||||
|
||||
要求:
|
||||
- 目標要符合角色身份和修仙世界觀
|
||||
- 不要虛構未出現的資訊
|
||||
- 可以是宏大的也可以是具體的
|
||||
- 主要參考角色特質和性格,兼顧宗門、陣營、人際關係、歷史事件等。可以和修煉相關、也可以和人際關係、性格、消遣、修養、宗門、生產活動相關。
|
||||
- thinking要詳細分析,long_term_objective只返回目標內容本身,但別提多久完成
|
||||
19
static/locales/zh-TW/templates/mutual_action.txt
Normal file
19
static/locales/zh-TW/templates/mutual_action.txt
Normal file
@@ -0,0 +1,19 @@
|
||||
你是一個決策者,這是一個仙俠世界,你負責來決定兩個NPC的下一步行爲。
|
||||
|
||||
世界背景:
|
||||
{world_info}
|
||||
|
||||
你需要進行決策的NPC的dict[AvatarName, info]爲
|
||||
{avatar_infos}
|
||||
|
||||
正在進行的動作爲:{avatar_name_1}向{avatar_name_2}發起了動作:{action_name}。這個動作的意味爲{action_info}
|
||||
{avatar_name_2}可以進行的選擇爲:
|
||||
{feedback_actions}
|
||||
|
||||
注意,只返回json格式的結果。
|
||||
只返回{avatar_name_2}的行動,格式爲:
|
||||
{{
|
||||
{avatar_name_2}: {{
|
||||
"feedback": ... // 面對{avatar_name_1}的行爲的合法feedback action name
|
||||
}}
|
||||
}}
|
||||
28
static/locales/zh-TW/templates/nickname.txt
Normal file
28
static/locales/zh-TW/templates/nickname.txt
Normal file
@@ -0,0 +1,28 @@
|
||||
你是一個仙俠世界的故事家,負責爲修仙界人物起綽號。
|
||||
|
||||
世界背景:
|
||||
{world_info}
|
||||
|
||||
綽號是修仙界中對一個人物的評價和稱謂,要求:
|
||||
1. 符合修仙世界觀,具有仙俠風格
|
||||
2. 可以有多種不同角度,比如角色的性格、行爲、事蹟、關係、武器、長相、功法、宗門等
|
||||
3. 簡潔有力,朗朗上口、2到5個字
|
||||
4. 要帥氣、有意境、多種多樣
|
||||
|
||||
角色資訊:
|
||||
{avatar_info}
|
||||
|
||||
基於以上資訊,爲該角色起一個合適的修仙界綽號。
|
||||
|
||||
返回JSON格式:
|
||||
{{
|
||||
"thinking": "分析角色特點、主要事蹟、性格特質,思考什麼綽號最能體現這個人物...但也不用過度思考",
|
||||
"nickname": "綽號",
|
||||
"reason": "修仙界形成這個綽號的原因,30字內"
|
||||
}}
|
||||
|
||||
注意:
|
||||
- thinking是你的思考過程,要詳細分析
|
||||
- nickname只返回綽號本身,不要加引號或其他符號
|
||||
- 綽號要符合修仙世界的風格
|
||||
|
||||
33
static/locales/zh-TW/templates/relation_update.txt
Normal file
33
static/locales/zh-TW/templates/relation_update.txt
Normal file
@@ -0,0 +1,33 @@
|
||||
你是一個修仙世界的關係裁決者。根據角色的歷史交互,判斷兩人的關係是否應該發生變化。
|
||||
|
||||
【規則定義】
|
||||
{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時可忽略
|
||||
}}
|
||||
17
static/locales/zh-TW/templates/single_choice.txt
Normal file
17
static/locales/zh-TW/templates/single_choice.txt
Normal file
@@ -0,0 +1,17 @@
|
||||
你是一個決策者,這是一個修仙世界,你需要幫一個修仙者做一個決策。
|
||||
|
||||
世界背景:
|
||||
{world_info}
|
||||
|
||||
你需要進行決策的NPC的dict[AvatarName, info]爲
|
||||
{avatar_infos}
|
||||
|
||||
你的可選選項爲
|
||||
{choices}
|
||||
|
||||
注意,只返回json格式的結果,格式爲:
|
||||
{{
|
||||
"thinking": ..., // 簡單思考
|
||||
"choice": "" // 你的決策,注意只返回對應的選項字母
|
||||
}}
|
||||
|
||||
21
static/locales/zh-TW/templates/story_dual.txt
Normal file
21
static/locales/zh-TW/templates/story_dual.txt
Normal file
@@ -0,0 +1,21 @@
|
||||
你是一個小說家,這是一個仙俠世界,你需要把一個事件擴展爲一個約200~500字的故事。
|
||||
|
||||
世界背景:
|
||||
{world_info}
|
||||
|
||||
你需要進行決策的NPC的dict[AvatarName, info]爲
|
||||
{avatar_infos}
|
||||
|
||||
寫作風格提示:{style}
|
||||
額外主題提示:{story_prompt}
|
||||
|
||||
發生的事件爲:
|
||||
{event}
|
||||
結果爲:
|
||||
{res}
|
||||
|
||||
注意,只返回json格式的結果,格式爲:
|
||||
{{
|
||||
"thinking": ..., // 簡單思考故事劇情
|
||||
"story": "" // 第三人稱的故事正文,仙俠語言風格
|
||||
}}
|
||||
26
static/locales/zh-TW/templates/story_gathering.txt
Normal file
26
static/locales/zh-TW/templates/story_gathering.txt
Normal file
@@ -0,0 +1,26 @@
|
||||
你是一個小說家,這是一個仙俠世界,你需要這個修仙界中某一個集體事件,選取一個有趣的切入點或側面,創作一段300~800字的小故事。
|
||||
|
||||
世界背景:
|
||||
{world_info}
|
||||
|
||||
事件設定:
|
||||
{gathering_info}
|
||||
|
||||
events:
|
||||
{events}
|
||||
|
||||
事件細節:
|
||||
{details}
|
||||
|
||||
寫作風格提示:{style}
|
||||
額外主題提示:{story_prompt}
|
||||
|
||||
注意:
|
||||
1. 不要試圖面面俱到地描寫所有事件,請**自行篩選**其中最有趣、最有戲劇性的部分進行擴寫。
|
||||
2. 側重描寫角色之間的互動、心理博弈、競爭或合作。
|
||||
|
||||
只返回json格式的結果,格式爲:
|
||||
{{
|
||||
"thinking": ..., // 簡單思考故事劇情
|
||||
"story": "" // 第三人稱的故事正文,仙俠語言風格
|
||||
}}
|
||||
22
static/locales/zh-TW/templates/story_single.txt
Normal file
22
static/locales/zh-TW/templates/story_single.txt
Normal file
@@ -0,0 +1,22 @@
|
||||
你是一個小說家,這是一個仙俠世界,你需要把一個事件擴展爲一個約200~500字的故事。
|
||||
|
||||
世界背景:
|
||||
{world_info}
|
||||
|
||||
你需要進行決策的NPC的dict[AvatarName, info]爲
|
||||
{avatar_infos}
|
||||
|
||||
寫作風格提示:{style}
|
||||
額外主題提示:{story_prompt}
|
||||
|
||||
發生的事件爲:
|
||||
{event}
|
||||
結果爲:
|
||||
{res}
|
||||
|
||||
注意,只返回json格式的結果,格式爲:
|
||||
{{
|
||||
"thinking": ..., // 簡單思考故事劇情
|
||||
"story": "" // 第三人稱的故事正文,仙俠語言風格
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user