feat(ui): add locales and split catalogs

Adds Spanish, French, Russian, Japanese, and Simplified Chinese catalogs and wires supported locales into the i18n layer.
This commit is contained in:
Shantur Rathore
2026-01-26 12:56:26 +00:00
parent 5b1e21345f
commit feccbd13bd
89 changed files with 4531 additions and 30 deletions

View File

@@ -0,0 +1,121 @@
export const toolCallMessages = {
"toolCall.pending.waitingToRun": "等待运行...",
"toolCall.error.label": "错误:",
"toolCall.diff.label": "Diff",
"toolCall.diff.label.withPath": "Diff · {path}",
"toolCall.diff.viewMode.ariaLabel": "Diff 视图模式",
"toolCall.diff.viewMode.split": "分栏",
"toolCall.diff.viewMode.unified": "统一",
"toolCall.diagnostics.title": "诊断",
"toolCall.diagnostics.ariaLabel": "诊断",
"toolCall.diagnostics.ariaLabel.withLabel": "诊断 {label}",
"toolCall.diagnostics.severity.error.short": "ERR",
"toolCall.diagnostics.severity.warning.short": "WARN",
"toolCall.diagnostics.severity.info.short": "INFO",
"toolCall.renderer.toolName.shell": "Shell",
"toolCall.renderer.toolName.fetch": "Fetch",
"toolCall.renderer.toolName.invalid": "无效",
"toolCall.renderer.toolName.plan": "计划",
"toolCall.renderer.toolName.applyPatch": "应用补丁",
"toolCall.renderer.action.working": "处理中...",
"toolCall.renderer.action.writingCommand": "正在编写命令...",
"toolCall.renderer.action.preparingEdit": "正在准备编辑...",
"toolCall.renderer.action.readingFile": "正在读取文件...",
"toolCall.renderer.action.preparingWrite": "正在准备写入...",
"toolCall.renderer.action.preparingPatch": "正在准备补丁...",
"toolCall.renderer.action.planning": "正在规划...",
"toolCall.renderer.action.fetchingFromWeb": "正在从网络获取...",
"toolCall.renderer.action.findingFiles": "正在查找文件...",
"toolCall.renderer.action.searchingContent": "正在搜索内容...",
"toolCall.renderer.action.listingDirectory": "正在列出目录...",
"toolCall.renderer.bash.title.timeout": "超时:{timeout}",
"toolCall.renderer.read.detail.offset": "偏移:{offset}",
"toolCall.renderer.read.detail.limit": "限制:{limit}",
"toolCall.renderer.todo.empty": "暂无计划项。",
"toolCall.renderer.todo.status.pending": "待处理",
"toolCall.renderer.todo.status.inProgress": "进行中",
"toolCall.renderer.todo.status.completed": "已完成",
"toolCall.renderer.todo.status.cancelled": "已取消",
"toolCall.renderer.todo.title.plan": "计划",
"toolCall.renderer.todo.title.creating": "正在创建计划",
"toolCall.renderer.todo.title.completing": "正在完成计划",
"toolCall.renderer.todo.title.updating": "正在更新计划",
"toolCall.permission.status.required": "需要权限",
"toolCall.permission.status.queued": "权限已排队",
"toolCall.permission.requestedDiff.label": "请求的 Diff",
"toolCall.permission.requestedDiff.withPath": "请求的 Diff · {path}",
"toolCall.permission.queuedText": "正在等待更早的权限响应。",
"toolCall.permission.actions.allowOnce": "仅允许一次",
"toolCall.permission.actions.alwaysAllow": "始终允许",
"toolCall.permission.actions.deny": "拒绝",
"toolCall.permission.shortcuts.allowOnce": "仅允许一次",
"toolCall.permission.shortcuts.alwaysAllow": "始终允许",
"toolCall.permission.shortcuts.deny": "拒绝",
"toolCall.permission.errors.unableToUpdate": "无法更新权限",
"permissionApproval.title": "请求",
"permissionApproval.empty": "暂无待处理请求。",
"permissionApproval.kind.permission": "权限",
"permissionApproval.kind.question": "问题",
"permissionApproval.questionCount.one": "{count} 个问题",
"permissionApproval.questionCount.other": "{count} 个问题",
"permissionApproval.status.active": "活动",
"permissionApproval.actions.closeAriaLabel": "关闭",
"permissionApproval.actions.goToSession": "前往会话",
"permissionApproval.actions.loadingSession": "正在加载…",
"permissionApproval.actions.loadSession": "加载会话",
"permissionApproval.actions.allowOnce": "仅允许一次",
"permissionApproval.actions.alwaysAllow": "始终允许",
"permissionApproval.actions.deny": "拒绝",
"permissionApproval.fallbackHint": "加载会话以查看更多信息。",
"permissionApproval.errors.unableToUpdatePermission": "无法更新权限",
"toolCall.question.status.required": "需要回答问题",
"toolCall.question.status.queued": "问题已排队",
"toolCall.question.status.questions": "问题",
"toolCall.question.action.awaitingAnswers": "等待回答...",
"toolCall.question.title.questions": "问题",
"toolCall.question.title.askingQuestions": "正在提问",
"toolCall.question.type.one": "问题",
"toolCall.question.type.other": "问题",
"toolCall.question.number": "Q{number}:",
"toolCall.question.multiple": "多个",
"toolCall.question.custom.title": "输入自定义答案",
"toolCall.question.custom.label": "自定义答案",
"toolCall.question.custom.placeholder": "输入你的答案",
"toolCall.question.actions.submit": "提交",
"toolCall.question.actions.dismiss": "忽略",
"toolCall.question.shortcuts.submit": "提交",
"toolCall.question.shortcuts.dismiss": "忽略",
"toolCall.question.queuedText": "正在等待更早的响应。",
"toolCall.question.validation.answerAll": "请先回答所有问题再提交。",
"toolCall.question.errors.unableToReply": "无法回复",
"toolCall.question.errors.unableToDismiss": "无法忽略",
"toolCall.task.action.delegating": "正在委派...",
"toolCall.task.sections.prompt": "Prompt",
"toolCall.task.sections.steps": "步骤",
"toolCall.task.sections.output": "输出",
"toolCall.task.steps.count": "{count} 个步骤",
"toolCall.task.meta.agentModel": "智能体:{agent} • 模型:{model}",
"toolCall.task.meta.agent": "智能体:{agent}",
"toolCall.task.meta.model": "模型:{model}",
"toolCall.status.pending": "待处理",
"toolCall.status.running": "运行中",
"toolCall.status.completed": "已完成",
"toolCall.status.error": "错误",
"toolCall.status.unknown": "未知",
"toolCall.applyPatch.action.preparing": "正在准备 apply_patch...",
"toolCall.applyPatch.title.withFileCount.one": "{tool}{count} 个文件)",
"toolCall.applyPatch.title.withFileCount.other": "{tool}{count} 个文件)",
"toolCall.applyPatch.fileFallback": "文件 {number}",
} as const