import { dict as en } from "./en"

type Keys = keyof typeof en

export const dict = {
  "ui.sessionReview.title": "会话变更",
  "ui.sessionReview.title.git": "Git 变更",
  "ui.sessionReview.title.branch": "分支变更",
  "ui.sessionReview.title.lastTurn": "上一轮变更",
  "ui.sessionReview.diffStyle.unified": "统一视图",
  "ui.sessionReview.diffStyle.split": "并排视图",
  "ui.sessionReview.openFile": "打开文件",
  "ui.sessionReview.selection.line": "第 {{line}} 行",
  "ui.sessionReview.selection.lines": "第 {{start}}-{{end}} 行",
  "ui.sessionReview.expandAll": "全部展开",
  "ui.sessionReview.collapseAll": "全部收起",
  "ui.sessionReview.change.added": "已添加",
  "ui.sessionReview.change.removed": "已移除",
  "ui.sessionReview.change.modified": "已修改",
  "ui.sessionReview.image.loading": "加载中...",
  "ui.sessionReview.image.placeholder": "图片",
  "ui.sessionReview.largeDiff.title": "差异过大，无法渲染",
  "ui.sessionReview.largeDiff.meta": "限制：{{limit}} 行变更。当前：{{current}} 行变更。",
  "ui.sessionReview.largeDiff.renderAnyway": "仍然渲染",
  "ui.sessionReviewV2.expandMode": "展开或折叠差异",
  "ui.sessionReviewV2.filterFiles": "筛选文件",
  "ui.sessionReviewV2.toggleSidebar": "切换文件树",
  "ui.sessionReviewV2.showAllLines": "显示所有行",
  "ui.sessionReviewV2.hideNonDiffLines": "隐藏未更改的行",
  "ui.sessionReviewV2.unifiedDiff": "统一格式差异",
  "ui.sessionReviewV2.splitDiff": "并排差异",
  "ui.sessionReviewV2.previousFile": "上一个文件",
  "ui.sessionReviewV2.nextFile": "下一个文件",
  "ui.sessionReviewV2.diffView": "差异视图",
  "ui.sessionReviewV2.empty.noGit.title": "无已跟踪的变更",
  "ui.sessionReviewV2.empty.noGit.description": "在此项目中跟踪、审查和撤销更改",
  "ui.sessionReviewV2.empty.noGit.action": "创建 Git 仓库",
  "ui.sessionReviewV2.empty.noGit.actionLoading": "正在创建 Git 仓库...",
  "ui.sessionReviewV2.empty.changes.title": "尚无文件变更",
  "ui.sessionReviewV2.empty.changes.description": "项目变更将显示在此处",
  "ui.fileMedia.kind.image": "图片",
  "ui.fileMedia.kind.audio": "音频",
  "ui.fileMedia.state.removed": "{{kind}}已移除",
  "ui.fileMedia.state.loading": "正在加载{{kind}}...",
  "ui.fileMedia.state.error": "加载{{kind}}失败",
  "ui.fileMedia.state.unavailable": "{{kind}}不可预览",
  "ui.fileMedia.binary.title": "二进制文件",
  "ui.fileMedia.binary.description.path": "无法显示 {{path}}，因为它是二进制文件。",
  "ui.fileMedia.binary.description.default": "无法显示此文件，因为它是二进制文件。",

  "ui.lineComment.label.prefix": "评论",
  "ui.lineComment.label.suffix": "",
  "ui.lineComment.editorLabel.prefix": "正在评论",
  "ui.lineComment.editorLabel.suffix": "",
  "ui.lineComment.placeholder": "添加评论",
  "ui.lineComment.contextPlaceholder": "添加此更改的上下文",
  "ui.lineComment.submit": "发布评论",
  "ui.lineComment.cancel": "取消",

  "ui.sessionTurn.steps.show": "显示步骤",
  "ui.sessionTurn.steps.hide": "隐藏步骤",
  "ui.sessionTurn.summary.response": "回复",
  "ui.sessionTurn.diff.showMore": "显示更多更改（{{count}}）",
  "ui.sessionTurn.diffs.changed.one": "{{count}} 个文件已更改",
  "ui.sessionTurn.diffs.changed.other": "{{count}} 个文件已更改",
  "ui.sessionTurn.diffs.showAll": "全部显示",
  "ui.sessionTurn.diffs.showLess": "收起",
  "ui.sessionTurn.diffs.more": "+{{count}} 个文件",

  "ui.sessionTurn.retry.retrying": "重试中",
  "ui.sessionTurn.retry.inSeconds": "{{seconds}} 秒后",
  "ui.sessionTurn.retry.attempt": "第 {{attempt}} 次尝试",
  "ui.sessionTurn.retry.attemptLine": "{{line}} - 第 {{attempt}} 次尝试",
  "ui.sessionTurn.retry.geminiHot": "Gemini 当前负载过高",
  "ui.sessionTurn.error.freeUsageExceeded": "免费使用额度已用完",
  "ui.sessionTurn.error.addCredits": "充值",

  "dialog.usageExceeded.freeTier.title": "免费额度已用完",
  "dialog.usageExceeded.freeTier.description": "订阅 Kilo Go，可靠地使用最佳开源模型，每月 $5 起。", // kilocode_change
  "dialog.usageExceeded.freeTier.actionLabel": "订阅",
  "dialog.usageExceeded.accountRateLimit.title": "Go 额度已用完",
  "dialog.usageExceeded.accountRateLimit.description": "使用额度已达上限。如需立即继续使用此模型，请启用余额付费",
  "dialog.usageExceeded.accountRateLimit.actionLabel": "打开设置",

  "ui.sessionTurn.status.delegating": "正在委派工作",
  "ui.sessionTurn.status.planning": "正在规划下一步",
  "ui.sessionTurn.status.gatheringContext": "正在探索",
  "ui.sessionTurn.status.gatheredContext": "已探索",
  "ui.sessionTurn.status.searchingCodebase": "正在搜索代码库",
  "ui.sessionTurn.status.searchingWeb": "正在搜索网页",
  "ui.sessionTurn.status.makingEdits": "正在修改",
  "ui.sessionTurn.status.runningCommands": "正在运行命令",
  "ui.sessionTurn.status.thinking": "思考中",
  "ui.sessionTurn.status.thinkingWithTopic": "思考：{{topic}}",
  "ui.sessionTurn.status.gatheringThoughts": "正在整理思路",
  "ui.sessionTurn.status.consideringNextSteps": "正在考虑下一步",

  "ui.messagePart.questions.dismissed": "问题已忽略",
  "ui.messagePart.compaction": "会话已压缩",
  "ui.messagePart.context.read.one": "{{count}} 次读取",
  "ui.messagePart.context.read.other": "{{count}} 次读取",
  "ui.messagePart.context.search.one": "{{count}} 次搜索",
  "ui.messagePart.context.search.other": "{{count}} 次搜索",
  "ui.messagePart.context.list.one": "列出 {{count}} 次",
  "ui.messagePart.context.list.other": "列出 {{count}} 次",
  "ui.messagePart.diagnostic.error": "错误",
  "ui.messagePart.title.edit": "编辑",
  "ui.messagePart.title.write": "写入",
  "ui.messagePart.option.typeOwnAnswer": "输入自己的答案",
  "ui.messagePart.review.title": "检查你的回答",

  "ui.list.loading": "加载中",
  "ui.list.empty": "无结果",
  "ui.list.clearFilter": "清除筛选",
  "ui.list.emptyWithFilter.prefix": "没有关于",
  "ui.list.emptyWithFilter.suffix": "的结果",

  "ui.messageNav.newMessage": "新消息",

  "ui.promptInput.noMatchingItems": "没有匹配项",
  "ui.promptInput.commands": "命令",
  "ui.promptInput.dropFiles": "拖放文件以添加附件",
  "ui.promptInput.removeAttachment": "移除附件",
  "ui.promptInput.label": "提示词",
  "ui.promptInput.placeholder.shell": "输入 shell 命令...",
  "ui.promptInput.placeholder.normal": "随便问点什么， {{slash}} 可查看命令， {{at}} 可添加上下文...",
  "ui.promptInput.add": "添加图片和文件",
  "ui.promptInput.attachments": "图片和文件",
  "ui.promptInput.context": "上下文",
  "ui.promptInput.shell": "Shell 命令",
  "ui.promptInput.chooseAgent": "选择智能体",
  "ui.promptInput.chooseModel": "选择模型",
  "ui.promptInput.chooseVariant": "选择模型变体",
  "ui.promptInput.send": "发送",
  "ui.promptInput.stop": "停止",

  "ui.tabs.close": "关闭标签页",

  "ui.textField.copyToClipboard": "复制到剪贴板",
  "ui.textField.copyLink": "复制链接",
  "ui.textField.copied": "已复制",

  "ui.imagePreview.alt": "图片预览",
  "ui.scrollView.ariaLabel": "可滚动内容",

  "ui.tool.read": "读取",
  "ui.tool.loaded": "已加载",
  "ui.tool.list": "列出文件",
  "ui.tool.glob": "Glob",
  "ui.tool.grep": "Grep",
  "ui.tool.webfetch": "Webfetch",
  "ui.tool.websearch": "网页搜索",
  "ui.tool.websearch.provider": "{{provider}} 网页搜索",
  "ui.tool.shell": "Shell",
  "ui.tool.patch": "补丁",
  "ui.tool.todos": "待办",
  "ui.tool.todos.read": "读取待办",
  "ui.tool.questions": "问题",
  "ui.tool.questions.numbered": "问题 {{number}}",
  "ui.tool.agent": "{{type}} 智能体",
  "ui.tool.agent.default": "智能体",

  "ui.common.file.one": "个文件",
  "ui.common.file.other": "个文件",
  "ui.common.question.one": "个问题",
  "ui.common.question.other": "个问题",

  "ui.common.add": "添加",
  "ui.common.clear": "清除",
  "ui.common.file": "文件",
  "ui.common.back": "返回",
  "ui.common.cancel": "取消",
  "ui.common.confirm": "确认",
  "ui.common.dismiss": "忽略",
  "ui.common.close": "关闭",
  "ui.common.next": "下一步",
  "ui.common.submit": "提交",
  "ui.common.showMore": "显示更多",

  "ui.permission.deny": "拒绝",
  "ui.permission.allowAlways": "始终允许",
  "ui.permission.allowOnce": "允许一次",

  "ui.message.expand": "展开消息",
  "ui.message.collapse": "收起消息",
  "ui.message.copy": "复制",
  "ui.message.copyMessage": "复制消息",
  "ui.message.forkMessage": "从此消息创建新会话",
  "ui.message.revertMessage": "撤销此消息",
  "ui.message.copyResponse": "复制回复",
  "ui.message.copied": "已复制！",
  "ui.message.interrupted": "已中断",
  "ui.message.queued": "排队中",
  "ui.message.attachment.alt": "附件",

  "ui.patch.action.deleted": "已删除",
  "ui.patch.action.created": "已创建",
  "ui.patch.action.moved": "已移动",
  "ui.patch.action.patched": "已应用补丁",
  "ui.patch.action.plan": "计划", // kilocode_change

  "ui.question.subtitle.answered": "已回答 {{count}} 个",
  "ui.question.answer.none": "（无答案）",
  "ui.question.review.notAnswered": "（未回答）",
  "ui.question.multiHint": "选择所有适用的答案",
  "ui.question.singleHint": "选择一个答案",
  "ui.question.custom.placeholder": "输入你的答案...",

  "ui.fileSearch.placeholder": "查找",
  "ui.fileSearch.previousMatch": "上一个",
  "ui.fileSearch.nextMatch": "下一个",
  "ui.fileSearch.close": "关闭搜索",
  "ui.tool.task": "任务",
  "ui.tool.skill": "技能",
  "ui.basicTool.called": "调用了 `{{tool}}`",
  "ui.toolErrorCard.failed": "失败",
  "ui.toolErrorCard.copyError": "复制错误",
  "ui.message.duration.seconds": "{{count}} 秒",
  "ui.message.duration.minutesSeconds": "{{minutes}} 分钟 {{seconds}} 秒",
  // kilocode_change start - preserve Kilo UI translations across the upstream dictionary refresh
  "ui.sessionTurn.status.delegatingWaitingPermission": "Subagent waiting for permission",
  "ui.sessionTurn.status.delegatingWaitingQuestion": "Subagent waiting for response",
  "ui.messagePart.mcp.input": "输入",
  "ui.messagePart.mcp.output": "输出",
  "ui.mermaid.rendering": "正在渲染 Mermaid 图表...",
  "ui.mermaid.renderError": "Mermaid 渲染失败：{{message}}",
  "ui.mermaid.errorDefault": "无法渲染 Mermaid 图表。",
  "ui.mermaid.errorEmpty": "Mermaid 渲染了一个空图表。",
  "ui.mermaid.download": "下载",
  "ui.mermaid.copySource": "复制 Mermaid 源码",
  "ui.mermaid.copySvg": "复制 SVG",
  "ui.mermaid.copyPng": "复制 PNG",
  "ui.mermaid.downloadSvg": "下载 SVG",
  "ui.mermaid.downloadPng": "下载 PNG",
  "ui.message.deleteQueued": "删除排队中的消息",
  "ui.question.subtitle.dismissed": "{{count}} dismissed",
  "ui.question.answer.dismissed": "Dismissed",
  // kilocode_change end
} satisfies Partial<Record<Keys, string>>
