优化: i18n硬编码清扫(8文件20+处中文字符串替为i18n)

- ToolCard: 已等待 → aiTool.waitTime

- ErrorBoundary: 堆栈详情 → error.stackDetails

- TopBar: 10处硬编码(tooltip+section标签+单位) → aiChat.* keys

- FileExplorer: 4处工程操作title → fileExplorer.*

- Tasks: 快捷菜单4处 → tasks.*

- EnrichmentPanel: 取消关联 → aiChat.enrichmentDismiss

- PlanProgress: 复用已有 aiChat.conflictsPending

- WorkflowDagDisplay: 删除中文fallback(已有i18n key)

- vue-tsc + vite build 通过
This commit is contained in:
lxy
2026-07-02 12:19:57 +08:00
parent 34944df764
commit 3f22fd3673
18 changed files with 78 additions and 24 deletions
+14
View File
@@ -209,6 +209,20 @@ export default {
// Compressed summary block label (before the system summary message when expanded)
compressedSummaryLabel: 'Context summary',
// ── TopBar bottom context badges (tooltip + L3 full context popover labels) ──
viewGoals: 'View goals',
viewHistory: 'View history messages',
viewSummary: 'View context summary',
viewContext: 'View AI context',
contextSystemPrompt: 'System Prompt',
contextEnvironment: 'Environment',
contextCompressedSummary: 'Compressed Summary',
contextEnrichment: 'Enriched Context',
contextCountUnit: 'items',
// ── EnrichmentPanel ──
enrichmentDismiss: 'Unlink',
// ── AE-2025-04 Session Trust ──
// Auto-approval toast (same-session already approved same-kind op: same tool + same dir)
autoApprovedToast: 'Auto-approved: {tool}({dir})',
+2
View File
@@ -8,6 +8,8 @@ export default {
rejectedHint: 'User rejected this action',
// B-260616-12: tool execution slow hint (frontend fallback, no backend cancel IPC)
executionSlow: 'Tool "{name}" is taking longer than expected, please wait…',
// BUG-260624-02: approval pending duration hint (>2min orange, >5min red)
waitTime: '⏱ Waiting {time}',
// UX-260616-01: tool execution failure marker (AR-6 keeps status=completed, red to distinguish from success)
executionFailed: 'Failed',
executionFailedHint: 'Tool execution failed, see details below',
+1
View File
@@ -3,5 +3,6 @@ export default {
title: 'Render Error',
desc: 'This section failed to render due to an internal error. Try reloading.',
retry: 'Retry',
stackDetails: 'Stack Details',
},
}
+5
View File
@@ -20,6 +20,11 @@ export default {
// Diff
showDiff: 'Show Diff',
showContent: 'Show Content',
// Toolbar (current module actions)
editCurrentModule: 'Edit current module',
deleteCurrentModule: 'Delete current module',
addModuleTitle: 'Add module',
detachToWindow: 'Detach to separate window',
// Module management
addModule: 'Add Module',
adding: 'Adding…',
+5
View File
@@ -39,6 +39,11 @@ export default {
empty: 'No tasks yet',
},
confirmDelete: 'Delete task "{title}"? This action cannot be undone.',
// Quick action menu (task card quick status/priority/delete)
quickActions: 'Quick Actions',
quickStatus: 'Status',
quickPriority: 'Priority',
quickDelete: '🗑 Delete',
// New task modal
modal: {