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

type Keys = keyof typeof en

export const dict = {
  "ui.sessionReview.title": "会话变更",
  "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.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.submit": "评论",

  "ui.sessionTurn.steps.show": "显示步骤",
  "ui.sessionTurn.steps.hide": "隐藏步骤",
  "ui.sessionTurn.summary.response": "回复",
  "ui.sessionTurn.diff.showMore": "显示更多更改（{{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": "订阅 OpenCode Go，可靠地使用最佳开源模型，每月 $5 起。",
  "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.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.shell": "Shell",
  "ui.tool.patch": "补丁",
  "ui.tool.todos": "待办",
  "ui.tool.todos.read": "读取待办",
  "ui.tool.questions": "问题",
  "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.back": "返回",
  "ui.common.cancel": "取消",
  "ui.common.confirm": "确认",
  "ui.common.dismiss": "忽略",
  "ui.common.close": "关闭",
  "ui.common.next": "下一步",
  "ui.common.submit": "提交",

  "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.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}}秒",
} satisfies Partial<Record<Keys, string>>
