Skip to content

A Simple and Universal Swarm Intelligence Engine, Predicting Anything. 简洁通用的群体智能引擎,预测万物

fix(i18n): replace hardcoded Chinese stage names in simulation prepare SSE

ghostubborn380e456d413d
diff --git a/backend/app/api/simulation.py b/backend/app/api/simulation.py
index 2c1b6b1a..3a8e1e3f 100644
--- a/backend/app/api/simulation.py
+++ b/backend/app/api/simulation.py
@@ -533,10 +533,10 @@ def prepare_simulation():
# 构建详细进度信息
stage_names = {
- "reading": "读取图谱实体",
- "generating_profiles": "生成Agent人设",
- "generating_config": "生成模拟配置",
- "copying_scripts": "准备模拟脚本"
+ "reading": t('progress.readingGraphEntities'),
+ "generating_profiles": t('progress.generatingProfiles'),
+ "generating_config": t('progress.generatingSimConfig'),
+ "copying_scripts": t('progress.preparingScripts')
}
stage_index = list(stage_weights.keys()).index(stage) + 1 if stage in stage_weights else 1
diff --git a/locales/en.json b/locales/en.json
index 1d279e58..4601b92a 100644
--- a/locales/en.json
+++ b/locales/en.json
@@ -409,7 +409,11 @@
"eventConfigLabel": "Event Config",
"agentConfigResult": "Agent Config: {count} generated",
"postAssignResult": "Post Assignment: {count} posts assigned",
- "profileGenerated": "[Generated] {name} ({type})"
+ "profileGenerated": "[Generated] {name} ({type})",
+ "readingGraphEntities": "Reading Graph Entities",
+ "generatingProfiles": "Generating Agent Profiles",
+ "generatingSimConfig": "Generating Simulation Config",
+ "preparingScripts": "Preparing Scripts"
},
"log": {
"preparingGoBack": "Preparing to return to Step 2, closing simulation...",
diff --git a/locales/zh.json b/locales/zh.json
index 3399db30..11e19c90 100644
--- a/locales/zh.json
+++ b/locales/zh.json
@@ -409,7 +409,11 @@
"eventConfigLabel": "事件配置",
"agentConfigResult": "Agent配置: 成功生成 {count} 个",
"postAssignResult": "初始帖子分配: {count} 个帖子已分配发布者",
- "profileGenerated": "[已生成] {name} ({type})"
+ "profileGenerated": "[已生成] {name} ({type})",
+ "readingGraphEntities": "读取图谱实体",
+ "generatingProfiles": "生成Agent人设",
+ "generatingSimConfig": "生成模拟配置",
+ "preparingScripts": "准备模拟脚本"
},
"log": {
"preparingGoBack": "准备返回 Step 2,正在关闭模拟...",