feat(i18n): replace hardcoded Chinese in backend SSE progress messages

This commit is contained in:
ghostubborn
2026-04-01 16:32:10 +08:00
parent ffe6369c52
commit 9d43b77511
8 changed files with 286 additions and 52 deletions

View File

@@ -352,5 +352,120 @@
"envNotRunningShort": "环境未运行或已关闭",
"requireGraphIdAndQuery": "请提供 graph_id 和 query",
"initReportAgent": "初始化Report Agent..."
},
"progress": {
"initGraphService": "初始化图谱构建服务...",
"textChunking": "文本分块中...",
"creatingZepGraph": "创建Zep图谱...",
"settingOntology": "设置本体定义...",
"addingChunks": "开始添加 {count} 个文本块...",
"waitingZepProcess": "等待Zep处理数据...",
"fetchingGraphData": "获取图谱数据...",
"graphBuildComplete": "图谱构建完成",
"buildFailed": "构建失败: {error}",
"startBuildingGraph": "开始构建图谱...",
"graphCreated": "图谱已创建: {graphId}",
"ontologySet": "本体已设置",
"textSplit": "文本已分割为 {count} 个块",
"fetchingGraphInfo": "获取图谱信息...",
"sendingBatch": "发送第 {current}/{total} 批数据 ({chunks} 块)...",
"batchFailed": "批次 {batch} 发送失败: {error}",
"noEpisodesWait": "无需等待(没有 episode",
"waitingEpisodes": "开始等待 {count} 个文本块处理...",
"episodesTimeout": "部分文本块超时,已完成 {completed}/{total}",
"zepProcessing": "Zep处理中... {completed}/{total} 完成, {pending} 待处理 ({elapsed}秒)",
"processingComplete": "处理完成: {completed}/{total}",
"taskComplete": "任务完成",
"taskFailed": "任务失败",
"startPreparingEnv": "开始准备模拟环境...",
"connectingZepGraph": "正在连接Zep图谱...",
"readingNodeData": "正在读取节点数据...",
"readingComplete": "完成,共 {count} 个实体",
"startGenerating": "开始生成...",
"analyzingRequirements": "正在分析模拟需求...",
"generatingOutline": "正在生成报告大纲...",
"parsingOutline": "正在解析大纲结构...",
"outlinePlanComplete": "大纲规划完成",
"deepSearchAndWrite": "深度检索与撰写中 ({current}/{max})",
"initReport": "初始化报告...",
"startPlanningOutline": "开始规划报告大纲...",
"outlineDone": "大纲规划完成,共{count}个章节",
"generatingSection": "正在生成章节: {title} ({current}/{total})",
"sectionDone": "章节 {title} 已完成",
"assemblingReport": "正在组装完整报告...",
"reportComplete": "报告生成完成",
"reportFailed": "报告生成失败: {error}"
},
"log": {
"preparingGoBack": "准备返回 Step 2正在关闭模拟...",
"closingSimEnv": "正在关闭模拟环境...",
"simEnvClosed": "✓ 模拟环境已关闭",
"closeSimEnvFailed": "关闭模拟环境失败,尝试强制停止...",
"simForceStopSuccess": "✓ 模拟已强制停止",
"forceStopFailed": "强制停止失败: {error}",
"stoppingSimProcess": "正在停止模拟进程...",
"simStopped": "✓ 模拟已停止",
"stopSimFailed": "停止模拟失败: {error}",
"checkStatusFailed": "检查模拟状态失败: {error}",
"enterStep4": "进入 Step 4: 报告生成",
"loadingSimData": "加载模拟数据: {id}",
"timeConfig": "时间配置: 每轮 {minutes} 分钟",
"timeConfigFetchFailed": "获取时间配置失败,使用默认值: {minutes}分钟/轮",
"projectLoadSuccess": "项目加载成功: {id}",
"loadSimDataFailed": "加载模拟数据失败: {error}",
"loadException": "加载异常: {error}",
"graphDataLoadSuccess": "图谱数据加载成功",
"graphLoadFailed": "图谱加载失败: {error}",
"graphRealtimeRefreshStart": "开启图谱实时刷新 (30s)",
"graphRealtimeRefreshStop": "停止图谱实时刷新",
"simRunViewInit": "SimulationRunView 初始化",
"customRounds": "自定义模拟轮数: {rounds}",
"enterStep3": "进入 Step 3: 开始模拟",
"customRoundsConfig": "自定义模拟轮数: {rounds} 轮",
"useAutoRounds": "使用自动配置的模拟轮数",
"detectedSimEnvRunning": "检测到模拟环境正在运行,正在关闭...",
"closeSimEnvFailedWithError": "关闭模拟环境失败: {error}",
"closeSimEnvException": "关闭模拟环境异常: {error}",
"detectedSimRunning": "检测到模拟状态为运行中,正在停止...",
"forceStopSimFailed": "强制停止模拟失败: {error}",
"forceStopSimException": "强制停止模拟异常: {error}",
"simViewInit": "SimulationView 初始化",
"errorMissingSimId": "错误:缺少 simulationId",
"simInstanceCreated": "模拟实例已创建: {id}",
"preparingSimEnv": "正在准备模拟环境...",
"detectedExistingPrep": "检测到已有完成的准备工作,直接使用",
"prepareTaskStarted": "准备任务已启动",
"prepareTaskId": " └─ Task ID: {taskId}",
"zepEntitiesFound": "从Zep图谱读取到 {count} 个实体",
"entityTypes": " └─ 实体类型: {types}",
"startPollingProgress": "开始轮询准备进度...",
"prepareFailed": "准备失败: {error}",
"prepareException": "准备异常: {error}",
"prepareComplete": "✓ 准备工作已完成",
"prepareFailedWithError": "✗ 准备失败: {error}",
"startGeneratingConfig": "开始生成双平台模拟配置...",
"generatingAgentProfileConfig": "正在生成Agent人设配置...",
"generatingLLMConfig": "正在调用LLM生成模拟配置参数...",
"configComplete": "✓ 模拟配置生成完成",
"configSummaryAgents": " ├─ Agent数量: {count}个",
"configSummaryHours": " ├─ 模拟时长: {hours}小时",
"configSummaryPosts": " ├─ 初始帖子: {count}条",
"configSummaryTopics": " ├─ 热点话题: {count}个",
"configSummaryPlatforms": " └─ 平台配置: Twitter {twitter}, Reddit {reddit}",
"timeConfigDetail": "时间配置: 每轮{minutes}分钟, 共{rounds}轮",
"narrativeDirection": "叙事方向: {direction}",
"envSetupComplete": "✓ 环境搭建完成,可以开始模拟",
"startSimCustomRounds": "开始模拟,自定义轮数: {rounds} 轮",
"startSimAutoRounds": "开始模拟,使用自动配置轮数: {rounds} 轮",
"startGeneratingAgentProfiles": "开始生成Agent人设...",
"agentProfile": "→ Agent人设 {current}/{total}: {name} ({profession})",
"allProfilesComplete": "✓ 全部 {count} 个Agent人设生成完成",
"loadingExistingConfig": "正在加载已有配置数据...",
"loadedAgentProfiles": "已加载 {count} 个Agent人设",
"configLoadSuccess": "✓ 模拟配置加载成功",
"configSummaryPostsAlt": " └─ 初始帖子: {count}条",
"configGenerating": "配置生成中,开始轮询等待...",
"loadConfigFailed": "加载配置失败: {error}",
"step2Init": "Step2 环境搭建初始化"
}
}