优化: 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:
@@ -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})',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
},
|
||||
}
|
||||
|
||||
@@ -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…',
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -210,6 +210,20 @@ export default {
|
||||
// 压缩摘要块标题(展开后 system 摘要消息前的标签)
|
||||
compressedSummaryLabel: '上下文摘要',
|
||||
|
||||
// ── TopBar 底部上下文徽章(tooltip + L3 完整上下文 popover 标签) ──
|
||||
viewGoals: '查看目标',
|
||||
viewHistory: '查看历史消息',
|
||||
viewSummary: '查看上下文摘要',
|
||||
viewContext: '查看 AI 上下文',
|
||||
contextSystemPrompt: '系统提示',
|
||||
contextEnvironment: '环境',
|
||||
contextCompressedSummary: '压缩摘要',
|
||||
contextEnrichment: '增强上下文',
|
||||
contextCountUnit: '条',
|
||||
|
||||
// ── EnrichmentPanel ──
|
||||
enrichmentDismiss: '取消关联',
|
||||
|
||||
// ── AE-2025-04 会话级信任(Session Trust) ──
|
||||
// 自动放行 toast(同会话已批准过同类操作:同工具+同目录,轻量 info 非审批气泡)
|
||||
autoApprovedToast: '已自动放行: {tool}({dir})',
|
||||
|
||||
@@ -8,6 +8,8 @@ export default {
|
||||
rejectedHint: '用户拒绝了此操作',
|
||||
// B-260616-12:工具执行超时提示(前端降级,无后端取消 IPC)
|
||||
executionSlow: '工具「{name}」执行较久,请稍候…',
|
||||
// BUG-260624-02:审批挂起时长提示(>2分钟橙色,>5分钟红色)
|
||||
waitTime: '⏱ 已等待 {time}',
|
||||
// UX-260616-01:工具执行失败视觉标识(AR-6 下 status=completed,需红色区分于成功)
|
||||
executionFailed: '执行失败',
|
||||
executionFailedHint: '工具执行失败,详情见下方',
|
||||
|
||||
@@ -3,5 +3,6 @@ export default {
|
||||
title: '页面渲染异常',
|
||||
desc: '当前区域因内部错误无法显示,可尝试重新加载。',
|
||||
retry: '重试',
|
||||
stackDetails: '堆栈详情',
|
||||
},
|
||||
}
|
||||
|
||||
@@ -20,6 +20,11 @@ export default {
|
||||
// Diff
|
||||
showDiff: '查看变更',
|
||||
showContent: '查看内容',
|
||||
// 工具栏(当前工程操作)
|
||||
editCurrentModule: '编辑当前工程',
|
||||
deleteCurrentModule: '删除当前工程',
|
||||
addModuleTitle: '添加工程',
|
||||
detachToWindow: '弹出到独立窗口',
|
||||
// 工程管理
|
||||
addModule: '添加工程',
|
||||
adding: '添加中…',
|
||||
|
||||
@@ -39,6 +39,11 @@ export default {
|
||||
empty: '暂无任务',
|
||||
},
|
||||
confirmDelete: '确定删除任务「{title}」吗?此操作不可撤销。',
|
||||
// 快捷操作菜单(任务卡片快捷改状态/优先级/删除)
|
||||
quickActions: '快捷操作',
|
||||
quickStatus: '状态',
|
||||
quickPriority: '优先级',
|
||||
quickDelete: '🗑 删除',
|
||||
|
||||
// 新建任务模态
|
||||
modal: {
|
||||
|
||||
Reference in New Issue
Block a user