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 = {
"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