优化: CR-08 i18n batch2全量(ProjectDetail5处+TaskDetail16key+AiChat3处+store error fallback 23处+useAiSend 3处)+@/i18n路径统一+vite别名

This commit is contained in:
lxy
2026-06-15 15:06:21 +08:00
parent d6eb8551da
commit 6254d06c7a
24 changed files with 181 additions and 34 deletions
+2
View File
@@ -12,5 +12,7 @@ export default {
errorNetwork: 'Network connection failed. Please check your network.',
streamInterruptedAfterTool: '⚠ The tool finished, but the following reply was interrupted (no data stream for a long time). You can click Continue to retry.',
streamInterrupted: '⚠ The response was interrupted (no data stream for a long time). This may be due to a network disconnection or a backend error. Please try again.',
queueFull: 'Send queue is full (max {limit} items)',
approvalNotDelivered: 'Approval operation failed to reach the backend: {error}',
},
}
+3
View File
@@ -60,5 +60,8 @@ export default {
// ── Confirm dialog ──
confirmDeleteConversation: 'Delete chat "{title}"? This cannot be undone.',
clearChat: 'Clear',
confirmClearChat: 'Are you sure you want to clear all messages in this chat? This cannot be undone.',
toastSendFail: 'Send failed: {msg}',
},
}
+6
View File
@@ -76,5 +76,11 @@ export default {
confirmDelete: 'Delete idea "{title}"? This cannot be undone.',
promoteFailed: 'Promotion failed',
evalFailed: 'Evaluation failed',
// Error fallbacks (user-visible via state.error)
err: {
loadFailed: 'Failed to load ideas',
createFailed: 'Failed to create idea',
deleteFailed: 'Failed to delete idea',
},
},
}
+12
View File
@@ -74,5 +74,17 @@ export default {
deployment_note: 'Deployment Note',
workflow_optimization: 'Workflow Optimization',
},
// Error fallbacks (user-visible via state.error)
err: {
loadFailed: 'Failed to load knowledge base',
loadInboxFailed: 'Failed to load inbox',
searchFailed: 'Search failed',
createFailed: 'Failed to create knowledge',
updateStatusFailed: 'Failed to update status',
archiveFailed: 'Failed to archive',
loadConfigFailed: 'Failed to load config',
saveConfigFailed: 'Failed to save config',
extractFailed: 'Extraction failed',
},
},
}
+8
View File
@@ -55,6 +55,14 @@ export default {
relocateConfirmRelocate: 'Relocate project directory to:\n{dir}\n\nTech stack will be re-detected. Confirm?',
relocateConfirmBind: 'Bind project directory to:\n{dir}\n\nTech stack will be re-detected. Confirm?',
relocateFailed: 'Relocate failed: {msg}',
// Import directory
importDir: 'Import Directory',
importConfirm: 'Import as new project?\n{dir}\n\nThe directory name will be used as project name, tech stack will be detected, and README first section will fill description.',
importSuccess: 'Imported project "{name}"',
importFailed: 'Import failed: {msg}',
// Approval actions
approvalConfirm: 'Confirm ({count})',
approvalCancel: 'Cancel',
// Tech stack
techStackLabel: 'Tech Stack',
},
+11
View File
@@ -45,5 +45,16 @@ export default {
cancelled: '❌ Cancelled',
active: '🚀 In Progress',
},
// Error fallbacks (user-visible via state.error)
err: {
loadFailed: 'Failed to load projects',
createFailed: 'Failed to create project',
importFailed: 'Failed to import project',
deleteFailed: 'Failed to delete project',
loadTrashFailed: 'Failed to load trash',
restoreFailed: 'Failed to restore project',
purgeFailed: 'Failed to delete permanently',
loadWorkflowFailed: 'Failed to load workflow records',
},
},
}
+24
View File
@@ -0,0 +1,24 @@
export default {
taskDetail: {
// Header
backToList: '← Back to Tasks',
refresh: 'Refresh',
// Status hints
loading: 'Loading...',
loadFailed: 'Failed to load',
// Panel
infoTitle: 'Task Info',
// Field labels
title: 'Title',
description: 'Description',
status: 'Status',
priority: 'Priority',
project: 'Project',
branch: 'Branch',
assignee: 'Assignee',
baseBranch: 'Base Branch',
workflowDef: 'Workflow Definition',
createdAt: 'Created At',
updatedAt: 'Updated At',
},
}
+6
View File
@@ -52,5 +52,11 @@ export default {
merged: '✅ Merged',
abandoned: '🗑️ Abandoned',
},
// Error fallbacks (user-visible via state.error)
err: {
loadFailed: 'Failed to load tasks',
createFailed: 'Failed to create task',
deleteFailed: 'Failed to delete task',
},
},
}