fix(i18n): replace hardcoded Chinese stage names in simulation prepare SSE
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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...",
|
||||
|
||||
@@ -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,正在关闭模拟...",
|
||||
|
||||
Reference in New Issue
Block a user