feat(i18n): replace hardcoded Chinese in backend SSE progress messages
This commit is contained in:
115
locales/en.json
115
locales/en.json
@@ -352,5 +352,120 @@
|
||||
"envNotRunningShort": "Environment not running or closed",
|
||||
"requireGraphIdAndQuery": "Please provide graph_id and query",
|
||||
"initReportAgent": "Initializing Report Agent..."
|
||||
},
|
||||
"progress": {
|
||||
"initGraphService": "Initializing graph build service...",
|
||||
"textChunking": "Chunking text...",
|
||||
"creatingZepGraph": "Creating Zep graph...",
|
||||
"settingOntology": "Setting ontology definition...",
|
||||
"addingChunks": "Adding {count} text chunks...",
|
||||
"waitingZepProcess": "Waiting for Zep to process data...",
|
||||
"fetchingGraphData": "Fetching graph data...",
|
||||
"graphBuildComplete": "Graph build complete",
|
||||
"buildFailed": "Build failed: {error}",
|
||||
"startBuildingGraph": "Starting graph build...",
|
||||
"graphCreated": "Graph created: {graphId}",
|
||||
"ontologySet": "Ontology set",
|
||||
"textSplit": "Text split into {count} chunks",
|
||||
"fetchingGraphInfo": "Fetching graph info...",
|
||||
"sendingBatch": "Sending batch {current}/{total} ({chunks} chunks)...",
|
||||
"batchFailed": "Batch {batch} failed: {error}",
|
||||
"noEpisodesWait": "No episodes to wait for",
|
||||
"waitingEpisodes": "Waiting for {count} text chunks to process...",
|
||||
"episodesTimeout": "Some chunks timed out, {completed}/{total} completed",
|
||||
"zepProcessing": "Zep processing... {completed}/{total} done, {pending} pending ({elapsed}s)",
|
||||
"processingComplete": "Processing complete: {completed}/{total}",
|
||||
"taskComplete": "Task complete",
|
||||
"taskFailed": "Task failed",
|
||||
"startPreparingEnv": "Preparing simulation environment...",
|
||||
"connectingZepGraph": "Connecting to Zep graph...",
|
||||
"readingNodeData": "Reading node data...",
|
||||
"readingComplete": "Done, {count} entities found",
|
||||
"startGenerating": "Starting generation...",
|
||||
"analyzingRequirements": "Analyzing simulation requirements...",
|
||||
"generatingOutline": "Generating report outline...",
|
||||
"parsingOutline": "Parsing outline structure...",
|
||||
"outlinePlanComplete": "Outline planning complete",
|
||||
"deepSearchAndWrite": "Deep search & writing ({current}/{max})",
|
||||
"initReport": "Initializing report...",
|
||||
"startPlanningOutline": "Planning report outline...",
|
||||
"outlineDone": "Outline complete, {count} sections",
|
||||
"generatingSection": "Generating section: {title} ({current}/{total})",
|
||||
"sectionDone": "Section {title} complete",
|
||||
"assemblingReport": "Assembling full report...",
|
||||
"reportComplete": "Report generation complete",
|
||||
"reportFailed": "Report generation failed: {error}"
|
||||
},
|
||||
"log": {
|
||||
"preparingGoBack": "Preparing to return to Step 2, closing simulation...",
|
||||
"closingSimEnv": "Closing simulation environment...",
|
||||
"simEnvClosed": "✓ Simulation environment closed",
|
||||
"closeSimEnvFailed": "Failed to close simulation environment, attempting force stop...",
|
||||
"simForceStopSuccess": "✓ Simulation force stopped",
|
||||
"forceStopFailed": "Force stop failed: {error}",
|
||||
"stoppingSimProcess": "Stopping simulation process...",
|
||||
"simStopped": "✓ Simulation stopped",
|
||||
"stopSimFailed": "Failed to stop simulation: {error}",
|
||||
"checkStatusFailed": "Failed to check simulation status: {error}",
|
||||
"enterStep4": "Entering Step 4: Report Generation",
|
||||
"loadingSimData": "Loading simulation data: {id}",
|
||||
"timeConfig": "Time config: {minutes} minutes per round",
|
||||
"timeConfigFetchFailed": "Failed to fetch time config, using default: {minutes} min/round",
|
||||
"projectLoadSuccess": "Project loaded: {id}",
|
||||
"loadSimDataFailed": "Failed to load simulation data: {error}",
|
||||
"loadException": "Load error: {error}",
|
||||
"graphDataLoadSuccess": "Graph data loaded successfully",
|
||||
"graphLoadFailed": "Graph load failed: {error}",
|
||||
"graphRealtimeRefreshStart": "Graph real-time refresh enabled (30s)",
|
||||
"graphRealtimeRefreshStop": "Graph real-time refresh stopped",
|
||||
"simRunViewInit": "SimulationRunView initialized",
|
||||
"customRounds": "Custom simulation rounds: {rounds}",
|
||||
"enterStep3": "Entering Step 3: Run Simulation",
|
||||
"customRoundsConfig": "Custom simulation rounds: {rounds} rounds",
|
||||
"useAutoRounds": "Using auto-configured simulation rounds",
|
||||
"detectedSimEnvRunning": "Detected running simulation environment, closing...",
|
||||
"closeSimEnvFailedWithError": "Failed to close simulation environment: {error}",
|
||||
"closeSimEnvException": "Simulation environment close error: {error}",
|
||||
"detectedSimRunning": "Detected simulation is running, stopping...",
|
||||
"forceStopSimFailed": "Force stop simulation failed: {error}",
|
||||
"forceStopSimException": "Force stop simulation error: {error}",
|
||||
"simViewInit": "SimulationView initialized",
|
||||
"errorMissingSimId": "Error: missing simulationId",
|
||||
"simInstanceCreated": "Simulation instance created: {id}",
|
||||
"preparingSimEnv": "Preparing simulation environment...",
|
||||
"detectedExistingPrep": "Detected existing preparation, using it directly",
|
||||
"prepareTaskStarted": "Preparation task started",
|
||||
"prepareTaskId": " └─ Task ID: {taskId}",
|
||||
"zepEntitiesFound": "Found {count} entities from Zep graph",
|
||||
"entityTypes": " └─ Entity types: {types}",
|
||||
"startPollingProgress": "Polling preparation progress...",
|
||||
"prepareFailed": "Preparation failed: {error}",
|
||||
"prepareException": "Preparation error: {error}",
|
||||
"prepareComplete": "✓ Preparation complete",
|
||||
"prepareFailedWithError": "✗ Preparation failed: {error}",
|
||||
"startGeneratingConfig": "Generating dual-platform simulation config...",
|
||||
"generatingAgentProfileConfig": "Generating agent persona config...",
|
||||
"generatingLLMConfig": "Calling LLM to generate simulation config parameters...",
|
||||
"configComplete": "✓ Simulation config generated",
|
||||
"configSummaryAgents": " ├─ Agents: {count}",
|
||||
"configSummaryHours": " ├─ Duration: {hours} hours",
|
||||
"configSummaryPosts": " ├─ Initial posts: {count}",
|
||||
"configSummaryTopics": " ├─ Hot topics: {count}",
|
||||
"configSummaryPlatforms": " └─ Platforms: Twitter {twitter}, Reddit {reddit}",
|
||||
"timeConfigDetail": "Time config: {minutes} min/round, {rounds} rounds total",
|
||||
"narrativeDirection": "Narrative direction: {direction}",
|
||||
"envSetupComplete": "✓ Environment setup complete, ready to simulate",
|
||||
"startSimCustomRounds": "Starting simulation, custom rounds: {rounds}",
|
||||
"startSimAutoRounds": "Starting simulation, auto-configured rounds: {rounds}",
|
||||
"startGeneratingAgentProfiles": "Generating agent personas...",
|
||||
"agentProfile": "→ Agent persona {current}/{total}: {name} ({profession})",
|
||||
"allProfilesComplete": "✓ All {count} agent personas generated",
|
||||
"loadingExistingConfig": "Loading existing config data...",
|
||||
"loadedAgentProfiles": "Loaded {count} agent personas",
|
||||
"configLoadSuccess": "✓ Simulation config loaded",
|
||||
"configSummaryPostsAlt": " └─ Initial posts: {count}",
|
||||
"configGenerating": "Config generating, polling...",
|
||||
"loadConfigFailed": "Failed to load config: {error}",
|
||||
"step2Init": "Step 2 environment setup initialized"
|
||||
}
|
||||
}
|
||||
|
||||
115
locales/zh.json
115
locales/zh.json
@@ -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 环境搭建初始化"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user