feat(webui): localize agent activity

Localize frontend-owned activity presentation while preserving raw tool data and current controls. Include locale-aware model memoization and integration with current main.

Co-authored-by: Xubin Ren <52506698+Re-bin@users.noreply.github.com>
This commit is contained in:
ZhouandXubin Ren authored and Xubin Ren committed 2026-09-25 01:50:12 +08:00
1 parent f57cc3aad2
commit 796e1cb0e6
23 files changed
+1704 -128

No files matched your search

+137 -1
View File
@@ -1851,6 +1851,142 @@
"activityThoughtFor": "思考了 {{duration}}",
"activityWorkingFor": "处理中 {{duration}}",
"activityWorked": "已处理",
"agentActivity": {
"reviewingSources": "正在检查来源",
"reviewedSources": "已检查来源",
"reviewSourcesFailed": "无法检查来源",
"searchingFiles": "正在搜索文件",
"searchedFiles": "已搜索文件",
"searchFilesFailed": "无法搜索文件",
"findingFiles": "正在查找文件",
"foundFiles": "已找到文件",
"findFilesFailed": "无法查找文件",
"listingFiles": "正在列出文件",
"listedFiles": "已列出文件",
"listFilesFailed": "无法列出文件",
"readingSource": "正在读取来源",
"readSource": "已读取来源",
"readSourceFailed": "无法读取来源",
"readingFile": "正在读取文件",
"readFile": "已读取文件",
"readFileFailed": "无法读取文件",
"searchingMemory": "正在搜索记忆",
"searchedMemory": "已搜索记忆",
"searchMemoryFailed": "无法搜索记忆",
"generatingImage": "正在生成图片",
"generatedImage": "已生成图片",
"generateImageFailed": "无法生成图片",
"delegatingTask": "正在委派任务",
"delegatedTask": "已委派任务",
"delegateTaskFailed": "无法委派任务",
"sendingMessage": "正在发送消息",
"sentMessage": "已发送消息",
"sendMessageFailed": "无法发送消息",
"updatingAgentSettings": "正在更新智能体设置",
"updatedAgentSettings": "已更新智能体设置",
"updateAgentSettingsFailed": "无法更新智能体设置",
"checkingAgentSettings": "正在检查智能体设置",
"checkedAgentSettings": "已检查智能体设置",
"checkAgentSettingsFailed": "无法检查智能体设置",
"schedulingAutomation": "正在安排自动化",
"scheduledAutomation": "已安排自动化",
"scheduleAutomationFailed": "无法安排自动化",
"removingAutomation": "正在移除自动化",
"removedAutomation": "已移除自动化",
"removeAutomationFailed": "无法移除自动化",
"checkingAutomations": "正在检查自动化",
"checkedAutomations": "已检查自动化",
"checkAutomationsFailed": "无法检查自动化",
"startingLongTask": "正在启动长期任务",
"startedLongTask": "已启动长期任务",
"startLongTaskFailed": "无法启动长期任务",
"updatingLongTask": "正在更新长期任务",
"updatedLongTask": "已更新长期任务",
"updateLongTaskFailed": "无法更新长期任务",
"continuingCommand": "正在继续命令",
"continuedCommand": "已继续命令",
"continueCommandFailed": "无法继续命令",
"checkingRunningCommands": "正在检查运行中的命令",
"checkedRunningCommands": "已检查运行中的命令",
"checkRunningCommandsFailed": "无法检查运行中的命令",
"capturingScreenshot": "正在截取屏幕截图",
"capturedScreenshot": "已截取屏幕截图",
"captureScreenshotFailed": "无法截取屏幕截图",
"runningTool": "正在运行 {{name}}",
"completedTool": "已完成 {{name}}",
"completeToolFailed": "无法完成 {{name}}",
"files_one": "{{count}} 个文件",
"files_other": "{{count}} 个文件",
"searches_one": "{{count}} 次搜索",
"searches_other": "{{count}} 次搜索",
"actions_one": "{{count}} 个操作",
"actions_other": "{{count}} 个操作",
"searching": "正在搜索 {{target}}",
"searched": "已搜索 {{target}}",
"searchFailed": "无法搜索 {{target}}",
"web": "网页",
"reading": "正在读取",
"read": "已读取",
"readFailed": "无法读取",
"privateAddress": "私有地址",
"writingFile": "正在写入文件",
"wroteFile": "已写入文件",
"writeFileFailed": "无法写入文件",
"editingFile": "正在编辑文件",
"editedFile": "已编辑文件",
"editFileFailed": "无法编辑文件",
"working": "正在处理",
"completedStep": "已完成步骤",
"stepFailed": "步骤失败",
"checkingCurrentTime": "正在检查当前时间",
"checkedCurrentTime": "已检查当前时间",
"checkCurrentTimeFailed": "无法检查当前时间",
"runningCommand": "正在运行命令",
"ranCommand": "已运行命令",
"commandFailed": "命令运行失败",
"command": "命令",
"scriptLines_one": "脚本,{{count}} 行",
"scriptLines_other": "脚本,{{count}} 行",
"opening": "正在打开",
"opened": "已打开",
"openFailed": "无法打开",
"clicking": "正在点击",
"clicked": "已点击",
"clickFailed": "无法点击",
"enteringText": "正在输入文本",
"enteredText": "已输入文本",
"enterTextFailed": "无法输入文本",
"inTarget": "至 {{target}}",
"pressing": "正在按下",
"pressed": "已按下",
"pressFailed": "无法按下",
"hovering": "正在悬停于",
"hovered": "已悬停于",
"hoverFailed": "无法悬停于",
"selecting": "正在选择",
"selected": "已选择",
"selectFailed": "无法选择",
"inspectingPage": "正在检查页面",
"inspectedPage": "已检查页面",
"inspectPageFailed": "无法检查页面",
"waitingForPage": "正在等待页面",
"waitedForPage": "已等待页面",
"pageNotReady": "页面未就绪",
"searchingPlain": "正在搜索",
"searchedPlain": "已搜索",
"searchFailedPlain": "无法搜索",
"toolFailed": "{{name}} 失败",
"toolCompleted": "{{name}} 已完成",
"toolCall": "工具调用",
"actionTarget": "{{action}} {{target}}",
"actionTargetRich": "<action>{{action}}</action> <target></target>",
"deleteFileFailed": "无法删除",
"editFileFailedShort": "无法编辑",
"deletingFile": "正在删除",
"editingFileShort": "正在编辑",
"deletedFile": "已删除",
"editedFileShort": "已编辑"
},
"activityWorkedFor": "已处理 {{duration}}",
"collapseActivity": "收起处理过程",
"activityShow": "查看过程",
@@ -1867,7 +2003,7 @@
"retryExhausted": "{{error}} · 正在结束本次任务",
"cliActivityRunningOne": "正在使用 {{name}}",
"cliActivityRanOne": "已使用 {{name}}",
"cliActivityFailedOne": "使用 {{name}} 失败",
"cliActivityFailedOne": "无法使用 {{name}}",
"cliActivityRunningMany": "正在使用 {{count}} 个 CLI 应用",
"cliActivityRanMany": "已使用 {{count}} 个 CLI 应用",
"cliActivityFailedMany": "{{count}} 个 CLI 应用失败",