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

+139 -3
View File
@@ -1679,6 +1679,145 @@
"activityWorkingFor": "處理中,已 {{duration}}",
"activityWorked": "已處理",
"activityWorkedFor": "已處理 {{duration}}",
"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": "已編輯"
},
"cliActivityRunningOne": "正在使用 {{name}}",
"cliActivityRanOne": "已使用 {{name}}",
"cliActivityFailedOne": "無法使用 {{name}}",
"collapseActivity": "收合處理過程",
"activityShow": "查看過程",
"activityShowFor": "查看過程 {{duration}}",
@@ -1692,9 +1831,6 @@
"retryUnknown": "模型請求失敗",
"retryWaiting": "{{error}} · {{seconds}} 秒後重試 · 第 {{attempt}} 次",
"retryExhausted": "{{error}} · 正在結束本輪",
"cliActivityRunningOne": "正在使用 @{{name}}",
"cliActivityRanOne": "已使用 @{{name}}",
"cliActivityFailedOne": "使用 @{{name}} 失敗",
"cliActivityRunningMany": "正在使用 {{count}} 個 CLI 應用程式",
"cliActivityRanMany": "已使用 {{count}} 個 CLI 應用程式",
"cliActivityFailedMany": "{{count}} 個 CLI 應用程式失敗",