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

This commit is contained in:
ghostubborn 2026-04-01 17:31:00 +08:00
parent 3a8451c119
commit 380e456d41
3 changed files with 14 additions and 6 deletions

View File

@ -533,10 +533,10 @@ def prepare_simulation():
# 构建详细进度信息 # 构建详细进度信息
stage_names = { stage_names = {
"reading": "读取图谱实体", "reading": t('progress.readingGraphEntities'),
"generating_profiles": "生成Agent人设", "generating_profiles": t('progress.generatingProfiles'),
"generating_config": "生成模拟配置", "generating_config": t('progress.generatingSimConfig'),
"copying_scripts": "准备模拟脚本" "copying_scripts": t('progress.preparingScripts')
} }
stage_index = list(stage_weights.keys()).index(stage) + 1 if stage in stage_weights else 1 stage_index = list(stage_weights.keys()).index(stage) + 1 if stage in stage_weights else 1

View File

@ -409,7 +409,11 @@
"eventConfigLabel": "Event Config", "eventConfigLabel": "Event Config",
"agentConfigResult": "Agent Config: {count} generated", "agentConfigResult": "Agent Config: {count} generated",
"postAssignResult": "Post Assignment: {count} posts assigned", "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": { "log": {
"preparingGoBack": "Preparing to return to Step 2, closing simulation...", "preparingGoBack": "Preparing to return to Step 2, closing simulation...",

View File

@ -409,7 +409,11 @@
"eventConfigLabel": "事件配置", "eventConfigLabel": "事件配置",
"agentConfigResult": "Agent配置: 成功生成 {count} 个", "agentConfigResult": "Agent配置: 成功生成 {count} 个",
"postAssignResult": "初始帖子分配: {count} 个帖子已分配发布者", "postAssignResult": "初始帖子分配: {count} 个帖子已分配发布者",
"profileGenerated": "[已生成] {name} ({type})" "profileGenerated": "[已生成] {name} ({type})",
"readingGraphEntities": "读取图谱实体",
"generatingProfiles": "生成Agent人设",
"generatingSimConfig": "生成模拟配置",
"preparingScripts": "准备模拟脚本"
}, },
"log": { "log": {
"preparingGoBack": "准备返回 Step 2正在关闭模拟...", "preparingGoBack": "准备返回 Step 2正在关闭模拟...",