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

type Keys = keyof typeof en

export const dict = {
  "command.category.suggested": "建议",
  "command.category.view": "视图",
  "command.category.project": "项目",
  "command.category.provider": "提供商",
  "command.category.server": "服务器",
  "command.category.session": "会话",
  "command.category.theme": "主题",
  "command.category.language": "语言",
  "command.category.file": "文件",
  "command.category.context": "上下文",
  "command.category.terminal": "终端",
  "command.category.model": "模型",
  "command.category.mcp": "MCP",
  "command.category.agent": "智能体",
  "command.category.permissions": "权限",
  "command.category.workspace": "工作区",

  "command.category.settings": "设置",
  "theme.scheme.system": "系统",
  "theme.scheme.light": "浅色",
  "theme.scheme.dark": "深色",

  "command.sidebar.toggle": "切换侧边栏",
  "command.project.open": "打开项目",
  "command.provider.connect": "连接提供商",
  "command.server.switch": "切换服务器",
  "command.settings.open": "打开设置",
  "command.session.previous": "上一个会话",
  "command.session.next": "下一个会话",
  "command.session.previous.unseen": "上一个未读会话",
  "command.session.next.unseen": "下一个未读会话",
  "command.session.archive": "归档会话",

  "command.palette": "命令面板",

  "command.theme.cycle": "切换主题",
  "command.theme.set": "使用主题：{{theme}}",
  "command.theme.scheme.cycle": "切换配色方案",
  "command.theme.scheme.set": "使用配色方案：{{scheme}}",

  "command.language.cycle": "切换语言",
  "command.language.set": "使用语言：{{language}}",

  "command.session.new": "新建会话",
  "command.file.open": "打开文件",
  "command.tab.close": "关闭标签页",
  "command.context.addSelection": "将所选内容添加到上下文",
  "command.context.addSelection.description": "添加当前文件中选中的行",
  "command.input.focus": "聚焦输入框",
  "command.terminal.toggle": "切换终端",
  "command.fileTree.toggle": "切换文件树",
  "command.review.toggle": "切换审查",
  "command.terminal.new": "新建终端",
  "command.terminal.new.description": "创建新的终端标签页",
  "command.steps.toggle": "切换步骤",
  "command.steps.toggle.description": "显示或隐藏当前消息的步骤",
  "command.message.previous": "上一条消息",
  "command.message.previous.description": "跳转到上一条用户消息",
  "command.message.next": "下一条消息",
  "command.message.next.description": "跳转到下一条用户消息",
  "command.model.choose": "选择模型",
  "command.model.choose.description": "选择不同的模型",
  "command.mcp.toggle": "切换 MCPs",
  "command.mcp.toggle.description": "切换 MCPs",
  "command.agent.cycle": "切换智能体",
  "command.agent.cycle.description": "切换到下一个智能体",
  "command.agent.cycle.reverse": "反向切换智能体",
  "command.agent.cycle.reverse.description": "切换到上一个智能体",
  "command.model.variant.cycle": "切换思考强度",
  "command.model.variant.cycle.description": "切换到下一个强度等级",
  "command.permissions.autoaccept.enable": "自动接受编辑",
  "command.permissions.autoaccept.disable": "停止自动接受编辑",
  "command.workspace.toggle": "切换工作区",
  "command.session.undo": "撤销",
  "command.session.undo.description": "撤销上一条消息",
  "command.session.redo": "重做",
  "command.session.redo.description": "重做上一条撤销的消息",
  "command.session.compact": "精简会话",
  "command.session.compact.description": "总结会话以减少上下文大小",
  "command.session.fork": "从消息分叉",
  "command.session.fork.description": "从之前的消息创建新会话",
  "command.session.share": "分享会话",
  "command.session.share.description": "分享此会话并将链接复制到剪贴板",
  "command.session.unshare": "取消分享会话",
  "command.session.unshare.description": "停止分享此会话",

  "palette.search.placeholder": "搜索文件、命令和会话",
  "palette.empty": "未找到结果",
  "palette.group.commands": "命令",
  "palette.group.files": "文件",

  "dialog.provider.search.placeholder": "搜索提供商",
  "dialog.provider.empty": "未找到提供商",
  "dialog.provider.group.popular": "热门",
  "dialog.provider.group.other": "其他",
  "dialog.provider.tag.recommended": "推荐",
  "dialog.provider.anthropic.note": "使用 Claude Pro/Max 或 API 密钥连接",
  "dialog.provider.openai.note": "使用 ChatGPT Pro/Plus 或 API 密钥连接",
  "dialog.provider.copilot.note": "使用 Copilot 或 API 密钥连接",
  "dialog.provider.opencode.note": "使用 OpenCode Zen 或 API 密钥连接",
  "dialog.provider.google.note": "使用 Google 账号或 API 密钥连接",
  "dialog.provider.openrouter.note": "使用 OpenRouter 账号或 API 密钥连接",
  "dialog.provider.vercel.note": "使用 Vercel 账号或 API 密钥连接",

  "dialog.model.select.title": "选择模型",
  "dialog.model.search.placeholder": "搜索模型",
  "dialog.model.empty": "未找到模型",
  "dialog.model.manage": "管理模型",
  "dialog.model.manage.description": "自定义模型选择器中显示的模型。",

  "dialog.model.unpaid.freeModels.title": "OpenCode 提供的免费模型",
  "dialog.model.unpaid.addMore.title": "从热门提供商添加更多模型",

  "dialog.provider.viewAll": "查看更多提供商",

  "provider.connect.title": "连接 {{provider}}",
  "provider.connect.title.anthropicProMax": "使用 Claude Pro/Max 登录",
  "provider.connect.selectMethod": "选择 {{provider}} 的登录方式。",
  "provider.connect.method.apiKey": "API 密钥",
  "provider.connect.status.inProgress": "正在授权...",
  "provider.connect.status.waiting": "等待授权...",
  "provider.connect.status.failed": "授权失败：{{error}}",
  "provider.connect.apiKey.description":
    "输入你的 {{provider}} API 密钥以连接帐户，并在 OpenCode 中使用 {{provider}} 模型。",
  "provider.connect.apiKey.label": "{{provider}} API 密钥",
  "provider.connect.apiKey.placeholder": "API 密钥",
  "provider.connect.apiKey.required": "API 密钥为必填项",
  "provider.connect.opencodeZen.line1": "OpenCode Zen 为你提供一组精选的可靠优化模型，用于代码智能体。",
  "provider.connect.opencodeZen.line2": "只需一个 API 密钥，你就能使用 Claude、GPT、Gemini、GLM 等模型。",
  "provider.connect.opencodeZen.visit.prefix": "访问 ",
  "provider.connect.opencodeZen.visit.link": "opencode.ai/zen",
  "provider.connect.opencodeZen.visit.suffix": " 获取你的 API 密钥。",
  "provider.connect.oauth.code.visit.prefix": "访问 ",
  "provider.connect.oauth.code.visit.link": "此链接",
  "provider.connect.oauth.code.visit.suffix": " 获取授权码，以连接你的帐户并在 OpenCode 中使用 {{provider}} 模型。",
  "provider.connect.oauth.code.label": "{{method}} 授权码",
  "provider.connect.oauth.code.placeholder": "授权码",
  "provider.connect.oauth.code.required": "授权码为必填项",
  "provider.connect.oauth.code.invalid": "授权码无效",
  "provider.connect.oauth.auto.visit.prefix": "访问 ",
  "provider.connect.oauth.auto.visit.link": "此链接",
  "provider.connect.oauth.auto.visit.suffix": " 并输入以下代码，以连接你的帐户并在 OpenCode 中使用 {{provider}} 模型。",
  "provider.connect.oauth.auto.confirmationCode": "确认码",
  "provider.connect.toast.connected.title": "{{provider}} 已连接",
  "provider.connect.toast.connected.description": "现在可以使用 {{provider}} 模型了。",

  "provider.custom.title": "自定义提供商",
  "provider.custom.description.prefix": "配置与 OpenAI 兼容的提供商。请查看",
  "provider.custom.description.link": "提供商配置文档",
  "provider.custom.description.suffix": "。",
  "provider.custom.field.providerID.label": "提供商 ID",
  "provider.custom.field.providerID.placeholder": "myprovider",
  "provider.custom.field.providerID.description": "使用小写字母、数字、连字符或下划线",
  "provider.custom.field.name.label": "显示名称",
  "provider.custom.field.name.placeholder": "我的 AI 提供商",
  "provider.custom.field.baseURL.label": "基础 URL",
  "provider.custom.field.baseURL.placeholder": "https://api.myprovider.com/v1",
  "provider.custom.field.apiKey.label": "API 密钥",
  "provider.custom.field.apiKey.placeholder": "API 密钥",
  "provider.custom.field.apiKey.description": "可选。如果你通过请求头管理认证，可留空。",
  "provider.custom.models.label": "模型",
  "provider.custom.models.id.label": "ID",
  "provider.custom.models.id.placeholder": "model-id",
  "provider.custom.models.name.label": "名称",
  "provider.custom.models.name.placeholder": "显示名称",
  "provider.custom.models.remove": "移除模型",
  "provider.custom.models.add": "添加模型",
  "provider.custom.headers.label": "请求头（可选）",
  "provider.custom.headers.key.label": "请求头",
  "provider.custom.headers.key.placeholder": "Header-Name",
  "provider.custom.headers.value.label": "值",
  "provider.custom.headers.value.placeholder": "value",
  "provider.custom.headers.remove": "移除请求头",
  "provider.custom.headers.add": "添加请求头",
  "provider.custom.error.providerID.required": "提供商 ID 为必填项",
  "provider.custom.error.providerID.format": "请使用小写字母、数字、连字符或下划线",
  "provider.custom.error.providerID.exists": "该提供商 ID 已存在",
  "provider.custom.error.name.required": "显示名称为必填项",
  "provider.custom.error.baseURL.required": "基础 URL 为必填项",
  "provider.custom.error.baseURL.format": "必须以 http:// 或 https:// 开头",
  "provider.custom.error.required": "必填",
  "provider.custom.error.duplicate": "重复",

  "provider.disconnect.toast.disconnected.title": "{{provider}} 已断开连接",
  "provider.disconnect.toast.disconnected.description": "{{provider}} 模型已不再可用。",
  "model.tag.free": "免费",
  "model.tag.latest": "最新",

  "model.provider.anthropic": "Anthropic",
  "model.provider.openai": "OpenAI",
  "model.provider.google": "Google",
  "model.provider.xai": "xAI",
  "model.provider.meta": "Meta",
  "model.input.text": "文本",
  "model.input.image": "图像",
  "model.input.audio": "音频",
  "model.input.video": "视频",
  "model.input.pdf": "pdf",
  "model.tooltip.allows": "支持：{{inputs}}",
  "model.tooltip.reasoning.allowed": "支持推理",
  "model.tooltip.reasoning.none": "不支持推理",
  "model.tooltip.context": "上下文上限 {{limit}}",
  "common.search.placeholder": "搜索",
  "common.goBack": "返回",
  "common.loading": "加载中",
  "common.loading.ellipsis": "...",
  "common.cancel": "取消",
  "common.connect": "连接",
  "common.disconnect": "断开连接",
  "common.submit": "提交",
  "common.save": "保存",
  "common.saving": "保存中...",
  "common.default": "默认",
  "common.attachment": "附件",

  "prompt.placeholder.shell": "输入 shell 命令...",
  "prompt.placeholder.normal": '随便问点什么... "{{example}}"',
  "prompt.placeholder.summarizeComments": "总结评论…",
  "prompt.placeholder.summarizeComment": "总结该评论…",
  "prompt.mode.shell": "Shell",
  "prompt.mode.shell.exit": "按 esc 退出",

  "prompt.example.1": "修复代码库中的一个 TODO",
  "prompt.example.2": "这个项目的技术栈是什么？",
  "prompt.example.3": "修复失败的测试",
  "prompt.example.4": "解释认证是如何工作的",
  "prompt.example.5": "查找并修复安全漏洞",
  "prompt.example.6": "为用户服务添加单元测试",
  "prompt.example.7": "重构这个函数，让它更易读",
  "prompt.example.8": "这个错误是什么意思？",
  "prompt.example.9": "帮我调试这个问题",
  "prompt.example.10": "生成 API 文档",
  "prompt.example.11": "优化数据库查询",
  "prompt.example.12": "添加输入校验",
  "prompt.example.13": "创建一个新的组件用于...",
  "prompt.example.14": "我该如何部署这个项目？",
  "prompt.example.15": "审查我的代码并给出最佳实践建议",
  "prompt.example.16": "为这个函数添加错误处理",
  "prompt.example.17": "解释这个正则表达式",
  "prompt.example.18": "把它转换成 TypeScript",
  "prompt.example.19": "在整个代码库中添加日志",
  "prompt.example.20": "哪些依赖已经过期？",
  "prompt.example.21": "帮我写一个迁移脚本",
  "prompt.example.22": "为这个接口实现缓存",
  "prompt.example.23": "给这个列表添加分页",
  "prompt.example.24": "创建一个 CLI 命令用于...",
  "prompt.example.25": "这里的环境变量是怎么工作的？",

  "prompt.popover.emptyResults": "没有匹配的结果",
  "prompt.popover.emptyCommands": "没有匹配的命令",
  "prompt.dropzone.label": "将图片或 PDF 拖到这里",
  "prompt.dropzone.file.label": "拖放以 @提及文件",
  "prompt.slash.badge.custom": "自定义",
  "prompt.slash.badge.skill": "技能",
  "prompt.slash.badge.mcp": "mcp",
  "prompt.context.active": "当前",
  "prompt.context.includeActiveFile": "包含当前文件",
  "prompt.context.removeActiveFile": "从上下文移除活动文件",
  "prompt.context.removeFile": "从上下文移除文件",
  "prompt.action.attachFile": "附加文件",
  "prompt.attachment.remove": "移除附件",
  "prompt.action.send": "发送",
  "prompt.action.stop": "停止",

  "prompt.toast.pasteUnsupported.title": "不支持的粘贴",
  "prompt.toast.pasteUnsupported.description": "这里只能粘贴图片或 PDF 文件。",
  "prompt.toast.modelAgentRequired.title": "请选择智能体和模型",
  "prompt.toast.modelAgentRequired.description": "发送提示前请先选择智能体和模型。",
  "prompt.toast.worktreeCreateFailed.title": "创建工作树失败",
  "prompt.toast.sessionCreateFailed.title": "创建会话失败",
  "prompt.toast.shellSendFailed.title": "发送 shell 命令失败",
  "prompt.toast.commandSendFailed.title": "发送命令失败",
  "prompt.toast.promptSendFailed.title": "发送提示失败",
  "prompt.toast.promptSendFailed.description": "无法获取会话",

  "dialog.mcp.title": "MCPs",
  "dialog.mcp.description": "已启用 {{enabled}} / {{total}}",
  "dialog.mcp.empty": "未配置 MCPs",

  "dialog.lsp.empty": "已从文件类型自动检测到 LSPs",
  "dialog.plugins.empty": "在 opencode.json 中配置的插件",

  "mcp.status.connected": "已连接",
  "mcp.status.failed": "失败",
  "mcp.status.needs_auth": "需要授权",
  "mcp.status.disabled": "已禁用",

  "dialog.fork.empty": "没有可用于分叉的消息",

  "dialog.directory.search.placeholder": "搜索文件夹",
  "dialog.directory.empty": "未找到文件夹",

  "dialog.server.title": "服务器",
  "dialog.server.description": "切换此应用连接的 OpenCode 服务器。",
  "dialog.server.search.placeholder": "搜索服务器",
  "dialog.server.empty": "暂无服务器",
  "dialog.server.add.title": "添加服务器",
  "dialog.server.add.url": "服务器 URL",
  "dialog.server.add.placeholder": "http://localhost:4096",
  "dialog.server.add.error": "无法连接到服务器",
  "dialog.server.add.checking": "检查中...",
  "dialog.server.add.button": "添加服务器",
  "dialog.server.default.title": "默认服务器",
  "dialog.server.default.description": "应用启动时连接此服务器，而不是启动本地服务器。需要重启。",
  "dialog.server.default.none": "未选择服务器",
  "dialog.server.default.set": "将当前服务器设为默认",
  "dialog.server.default.clear": "清除",
  "dialog.server.action.remove": "移除服务器",

  "dialog.server.menu.edit": "编辑",
  "dialog.server.menu.default": "设为默认",
  "dialog.server.menu.defaultRemove": "取消默认",
  "dialog.server.menu.delete": "删除",
  "dialog.server.current": "当前服务器",
  "dialog.server.status.default": "默认",

  "dialog.project.edit.title": "编辑项目",
  "dialog.project.edit.name": "名称",
  "dialog.project.edit.icon": "图标",
  "dialog.project.edit.icon.alt": "项目图标",
  "dialog.project.edit.icon.hint": "点击或拖拽图片",
  "dialog.project.edit.icon.recommended": "建议：128x128px",
  "dialog.project.edit.color": "颜色",
  "dialog.project.edit.color.select": "选择{{color}}颜色",

  "dialog.project.edit.worktree.startup": "工作区启动脚本",
  "dialog.project.edit.worktree.startup.description": "在创建新的工作区 (worktree) 后运行。",
  "dialog.project.edit.worktree.startup.placeholder": "例如 bun install",
  "context.breakdown.title": "上下文拆分",
  "context.breakdown.note": "输入 token 的大致拆分。“其他”包含工具定义和开销。",
  "context.breakdown.system": "系统",
  "context.breakdown.user": "用户",
  "context.breakdown.assistant": "助手",
  "context.breakdown.tool": "工具调用",
  "context.breakdown.other": "其他",

  "context.systemPrompt.title": "系统提示词",
  "context.rawMessages.title": "原始消息",

  "context.stats.session": "会话",
  "context.stats.messages": "消息数",
  "context.stats.provider": "提供商",
  "context.stats.model": "模型",
  "context.stats.limit": "上下文限制",
  "context.stats.totalTokens": "总 token",
  "context.stats.usage": "使用率",
  "context.stats.inputTokens": "输入 token",
  "context.stats.outputTokens": "输出 token",
  "context.stats.reasoningTokens": "推理 token",
  "context.stats.cacheTokens": "缓存 token（读/写）",
  "context.stats.userMessages": "用户消息",
  "context.stats.assistantMessages": "助手消息",
  "context.stats.totalCost": "总成本",
  "context.stats.sessionCreated": "创建时间",
  "context.stats.lastActivity": "最后活动",

  "context.usage.tokens": "Token",
  "context.usage.usage": "使用率",
  "context.usage.cost": "成本",
  "context.usage.clickToView": "点击查看上下文",
  "context.usage.view": "查看上下文用量",

  "toast.language.title": "语言",
  "toast.language.description": "已切换到{{language}}",

  "toast.theme.title": "主题已切换",
  "toast.scheme.title": "颜色方案",

  "toast.workspace.enabled.title": "工作区已启用",
  "toast.workspace.enabled.description": "侧边栏现在显示多个工作树",
  "toast.workspace.disabled.title": "工作区已禁用",
  "toast.workspace.disabled.description": "侧边栏只显示主工作树",

  "toast.permissions.autoaccept.on.title": "自动接受编辑",
  "toast.permissions.autoaccept.on.description": "编辑和写入权限将自动获批",
  "toast.permissions.autoaccept.off.title": "已停止自动接受编辑",
  "toast.permissions.autoaccept.off.description": "编辑和写入权限将需要手动批准",

  "toast.model.none.title": "未选择模型",
  "toast.model.none.description": "请先连接提供商以总结此会话",

  "toast.file.loadFailed.title": "加载文件失败",

  "toast.file.listFailed.title": "列出文件失败",
  "toast.context.noLineSelection.title": "未选择行",
  "toast.context.noLineSelection.description": "请先在文件标签中选择行范围。",
  "toast.session.share.copyFailed.title": "无法复制链接到剪贴板",
  "toast.session.share.success.title": "会话已分享",
  "toast.session.share.success.description": "分享链接已复制到剪贴板",
  "toast.session.share.failed.title": "分享会话失败",
  "toast.session.share.failed.description": "分享会话时发生错误",

  "toast.session.unshare.success.title": "已取消分享会话",
  "toast.session.unshare.success.description": "会话已成功取消分享",
  "toast.session.unshare.failed.title": "取消分享失败",
  "toast.session.unshare.failed.description": "取消分享会话时发生错误",

  "toast.session.listFailed.title": "无法加载 {{project}} 的会话",

  "toast.update.title": "有可用更新",
  "toast.update.description": "OpenCode 有新版本 ({{version}}) 可安装。",
  "toast.update.action.installRestart": "安装并重启",
  "toast.update.action.notYet": "稍后",

  "error.page.title": "出了点问题",
  "error.page.description": "加载应用程序时发生错误。",
  "error.page.details.label": "错误详情",
  "error.page.action.restart": "重启",
  "error.page.action.checking": "检查中...",
  "error.page.action.checkUpdates": "检查更新",
  "error.page.action.updateTo": "更新到 {{version}}",
  "error.page.report.prefix": "请将此错误报告给 OpenCode 团队",
  "error.page.report.discord": "在 Discord 上",
  "error.page.version": "版本：{{version}}",

  "error.dev.rootNotFound": "未找到根元素。你是不是忘了把它添加到 index.html？或者 id 属性拼写错了？",

  "error.globalSync.connectFailed": "无法连接到服务器。是否有服务器正在 `{{url}}` 运行？",
  "directory.error.invalidUrl": "URL 中的目录无效。",

  "error.chain.unknown": "未知错误",
  "error.chain.causedBy": "原因：",
  "error.chain.apiError": "API 错误",
  "error.chain.status": "状态：{{status}}",
  "error.chain.retryable": "可重试：{{retryable}}",
  "error.chain.responseBody": "响应内容：\n{{body}}",
  "error.chain.didYouMean": "你是不是想输入：{{suggestions}}",
  "error.chain.modelNotFound": "未找到模型：{{provider}}/{{model}}",
  "error.chain.checkConfig": "请检查你的配置 (opencode.json) 中的 provider/model 名称",
  "error.chain.mcpFailed": 'MCP 服务器 "{{name}}" 启动失败。注意: OpenCode 暂不支持 MCP 认证。',
  "error.chain.providerAuthFailed": "提供商认证失败（{{provider}}）：{{message}}",
  "error.chain.providerInitFailed": '无法初始化提供商 "{{provider}}"。请检查凭据和配置。',
  "error.chain.configJsonInvalid": "配置文件 {{path}} 不是有效的 JSON(C)",
  "error.chain.configJsonInvalidWithMessage": "配置文件 {{path}} 不是有效的 JSON(C)：{{message}}",
  "error.chain.configDirectoryTypo":
    '{{path}} 中的目录 "{{dir}}" 无效。请将目录重命名为 "{{suggestion}}" 或移除它。这是一个常见拼写错误。',
  "error.chain.configFrontmatterError": "无法解析 {{path}} 中的 frontmatter：\n{{message}}",
  "error.chain.configInvalid": "配置文件 {{path}} 无效",
  "error.chain.configInvalidWithMessage": "配置文件 {{path}} 无效：{{message}}",

  "notification.permission.title": "需要权限",
  "notification.permission.description": "{{sessionTitle}}（{{projectName}}）需要权限",
  "notification.question.title": "问题",
  "notification.question.description": "{{sessionTitle}}（{{projectName}}）有一个问题",
  "notification.action.goToSession": "前往会话",

  "notification.session.responseReady.title": "回复已就绪",
  "notification.session.error.title": "会话错误",
  "notification.session.error.fallbackDescription": "发生错误",

  "home.recentProjects": "最近项目",
  "home.empty.title": "没有最近项目",
  "home.empty.description": "通过打开本地项目开始使用",

  "session.tab.session": "会话",
  "session.tab.review": "审查",
  "session.tab.context": "上下文",
  "session.panel.reviewAndFiles": "审查和文件",
  "session.review.filesChanged": "{{count}} 个文件变更",
  "session.review.change.one": "更改",
  "session.review.change.other": "更改",
  "session.review.loadingChanges": "正在加载更改...",
  "session.review.empty": "此会话暂无更改",
  "session.review.noChanges": "无更改",
  "session.files.selectToOpen": "选择要打开的文件",
  "session.files.all": "所有文件",
  "session.files.binaryContent": "二进制文件（无法显示内容）",
  "session.messages.renderEarlier": "显示更早的消息",
  "session.messages.loadingEarlier": "正在加载更早的消息...",
  "session.messages.loadEarlier": "加载更早的消息",
  "session.messages.loading": "正在加载消息...",

  "session.messages.jumpToLatest": "跳转到最新",
  "session.context.addToContext": "将 {{selection}} 添加到上下文",

  "session.new.worktree.main": "主分支",
  "session.new.worktree.mainWithBranch": "主分支（{{branch}}）",
  "session.new.worktree.create": "创建新的 worktree",
  "session.new.lastModified": "最后修改",

  "session.header.search.placeholder": "搜索 {{project}}",
  "session.header.searchFiles": "搜索文件",

  "status.popover.trigger": "状态",
  "status.popover.ariaLabel": "服务器配置",
  "status.popover.tab.servers": "服务器",
  "status.popover.tab.mcp": "MCP",
  "status.popover.tab.lsp": "LSP",
  "status.popover.tab.plugins": "插件",
  "status.popover.action.manageServers": "管理服务器",

  "session.share.popover.title": "发布到网页",
  "session.share.popover.description.shared": "此会话已在网页上公开。任何拥有链接的人都可以访问。",
  "session.share.popover.description.unshared": "在网页上公开分享此会话。任何拥有链接的人都可以访问。",
  "session.share.action.share": "分享",
  "session.share.action.publish": "发布",
  "session.share.action.publishing": "正在发布...",
  "session.share.action.unpublish": "取消发布",
  "session.share.action.unpublishing": "正在取消发布...",
  "session.share.action.view": "查看",
  "session.share.copy.copied": "已复制",
  "session.share.copy.copyLink": "复制链接",

  "lsp.tooltip.none": "没有 LSP 服务器",
  "lsp.label.connected": "{{count}} LSP",

  "prompt.loading": "正在加载提示...",
  "terminal.loading": "正在加载终端...",
  "terminal.title": "终端",
  "terminal.title.numbered": "终端 {{number}}",
  "terminal.close": "关闭终端",

  "terminal.connectionLost.title": "连接已丢失",
  "terminal.connectionLost.description": "终端连接已中断。这可能发生在服务器重启时。",
  "common.closeTab": "关闭标签页",
  "common.dismiss": "忽略",
  "common.requestFailed": "请求失败",
  "common.moreOptions": "更多选项",
  "common.learnMore": "了解更多",
  "common.rename": "重命名",
  "common.reset": "重置",
  "common.archive": "归档",
  "common.delete": "删除",
  "common.close": "关闭",
  "common.edit": "编辑",
  "common.loadMore": "加载更多",

  "common.key.esc": "ESC",
  "sidebar.menu.toggle": "切换菜单",
  "sidebar.nav.projectsAndSessions": "项目和会话",
  "sidebar.settings": "设置",
  "sidebar.help": "帮助",
  "sidebar.workspaces.enable": "启用工作区",
  "sidebar.workspaces.disable": "禁用工作区",
  "sidebar.gettingStarted.title": "入门",
  "sidebar.gettingStarted.line1": "OpenCode 提供免费模型，你可以立即开始使用。",
  "sidebar.gettingStarted.line2": "连接任意提供商即可使用更多模型，如 Claude、GPT、Gemini 等。",
  "sidebar.project.recentSessions": "最近会话",
  "sidebar.project.viewAllSessions": "查看全部会话",

  "app.name.desktop": "OpenCode Desktop",
  "settings.section.desktop": "桌面",
  "settings.section.server": "服务器",
  "settings.tab.general": "通用",
  "settings.tab.shortcuts": "快捷键",

  "settings.general.section.appearance": "外观",
  "settings.general.section.notifications": "系统通知",
  "settings.general.section.updates": "更新",
  "settings.general.section.sounds": "音效",

  "settings.general.row.language.title": "语言",
  "settings.general.row.language.description": "更改 OpenCode 的显示语言",
  "settings.general.row.appearance.title": "外观",
  "settings.general.row.appearance.description": "自定义 OpenCode 在你的设备上的外观",
  "settings.general.row.theme.title": "主题",
  "settings.general.row.theme.description": "自定义 OpenCode 的主题。",
  "settings.general.row.font.title": "字体",
  "settings.general.row.font.description": "自定义代码块使用的等宽字体",
  "settings.general.row.releaseNotes.title": "发行说明",
  "settings.general.row.releaseNotes.description": "更新后显示“新功能”弹窗",

  "settings.updates.row.startup.title": "启动时检查更新",
  "settings.updates.row.startup.description": "在 OpenCode 启动时自动检查更新",
  "settings.updates.row.check.title": "检查更新",
  "settings.updates.row.check.description": "手动检查更新并在有更新时安装",
  "settings.updates.action.checkNow": "立即检查",
  "settings.updates.action.checking": "正在检查...",
  "settings.updates.toast.latest.title": "已是最新版本",
  "settings.updates.toast.latest.description": "你正在使用最新版本的 OpenCode。",

  "font.option.ibmPlexMono": "IBM Plex Mono",
  "font.option.cascadiaCode": "Cascadia Code",
  "font.option.firaCode": "Fira Code",
  "font.option.hack": "Hack",
  "font.option.inconsolata": "Inconsolata",
  "font.option.intelOneMono": "Intel One Mono",
  "font.option.iosevka": "Iosevka",
  "font.option.jetbrainsMono": "JetBrains Mono",
  "font.option.mesloLgs": "Meslo LGS",
  "font.option.robotoMono": "Roboto Mono",
  "font.option.sourceCodePro": "Source Code Pro",
  "font.option.ubuntuMono": "Ubuntu Mono",
  "sound.option.alert01": "警报 01",
  "sound.option.alert02": "警报 02",
  "sound.option.alert03": "警报 03",
  "sound.option.alert04": "警报 04",
  "sound.option.alert05": "警报 05",
  "sound.option.alert06": "警报 06",
  "sound.option.alert07": "警报 07",
  "sound.option.alert08": "警报 08",
  "sound.option.alert09": "警报 09",
  "sound.option.alert10": "警报 10",
  "sound.option.bipbop01": "哔啵 01",
  "sound.option.bipbop02": "哔啵 02",
  "sound.option.bipbop03": "哔啵 03",
  "sound.option.bipbop04": "哔啵 04",
  "sound.option.bipbop05": "哔啵 05",
  "sound.option.bipbop06": "哔啵 06",
  "sound.option.bipbop07": "哔啵 07",
  "sound.option.bipbop08": "哔啵 08",
  "sound.option.bipbop09": "哔啵 09",
  "sound.option.bipbop10": "哔啵 10",
  "sound.option.staplebops01": "斯泰普博普斯 01",
  "sound.option.staplebops02": "斯泰普博普斯 02",
  "sound.option.staplebops03": "斯泰普博普斯 03",
  "sound.option.staplebops04": "斯泰普博普斯 04",
  "sound.option.staplebops05": "斯泰普博普斯 05",
  "sound.option.staplebops06": "斯泰普博普斯 06",
  "sound.option.staplebops07": "斯泰普博普斯 07",
  "sound.option.nope01": "否 01",
  "sound.option.nope02": "否 02",
  "sound.option.nope03": "否 03",
  "sound.option.nope04": "否 04",
  "sound.option.nope05": "否 05",
  "sound.option.nope06": "否 06",
  "sound.option.nope07": "否 07",
  "sound.option.nope08": "否 08",
  "sound.option.nope09": "否 09",
  "sound.option.nope10": "否 10",
  "sound.option.nope11": "否 11",
  "sound.option.nope12": "否 12",
  "sound.option.yup01": "是 01",
  "sound.option.yup02": "是 02",
  "sound.option.yup03": "是 03",
  "sound.option.yup04": "是 04",
  "sound.option.yup05": "是 05",
  "sound.option.yup06": "是 06",
  "settings.general.notifications.agent.title": "智能体",
  "settings.general.notifications.agent.description": "当智能体完成或需要注意时显示系统通知",
  "settings.general.notifications.permissions.title": "权限",
  "settings.general.notifications.permissions.description": "当需要权限时显示系统通知",
  "settings.general.notifications.errors.title": "错误",
  "settings.general.notifications.errors.description": "发生错误时显示系统通知",

  "settings.general.sounds.agent.title": "智能体",
  "settings.general.sounds.agent.description": "当智能体完成或需要注意时播放声音",
  "settings.general.sounds.permissions.title": "权限",
  "settings.general.sounds.permissions.description": "当需要权限时播放声音",
  "settings.general.sounds.errors.title": "错误",
  "settings.general.sounds.errors.description": "发生错误时播放声音",

  "settings.shortcuts.title": "键盘快捷键",
  "settings.shortcuts.reset.button": "重置为默认值",
  "settings.shortcuts.reset.toast.title": "快捷键已重置",
  "settings.shortcuts.reset.toast.description": "键盘快捷键已重置为默认设置。",
  "settings.shortcuts.conflict.title": "快捷键已被占用",
  "settings.shortcuts.conflict.description": "{{keybind}} 已分配给 {{titles}}。",
  "settings.shortcuts.unassigned": "未设置",
  "settings.shortcuts.pressKeys": "按下按键",
  "settings.shortcuts.search.placeholder": "搜索快捷键",
  "settings.shortcuts.search.empty": "未找到快捷键",

  "settings.shortcuts.group.general": "通用",
  "settings.shortcuts.group.session": "会话",
  "settings.shortcuts.group.navigation": "导航",
  "settings.shortcuts.group.modelAndAgent": "模型与智能体",
  "settings.shortcuts.group.terminal": "终端",
  "settings.shortcuts.group.prompt": "提示",

  "settings.providers.title": "提供商",
  "settings.providers.description": "提供商设置将在此处可配置。",
  "settings.providers.section.connected": "已连接的提供商",
  "settings.providers.connected.empty": "没有已连接的提供商",
  "settings.providers.section.popular": "热门提供商",
  "settings.providers.tag.environment": "环境",
  "settings.providers.tag.config": "配置",
  "settings.providers.tag.custom": "自定义",
  "settings.providers.tag.other": "其他",
  "settings.models.title": "模型",
  "settings.models.description": "模型设置将在此处可配置。",
  "settings.agents.title": "智能体",
  "settings.agents.description": "智能体设置将在此处可配置。",
  "settings.commands.title": "命令",
  "settings.commands.description": "命令设置将在此处可配置。",
  "settings.mcp.title": "MCP",
  "settings.mcp.description": "MCP 设置将在此处可配置。",

  "settings.permissions.title": "权限",
  "settings.permissions.description": "控制服务器默认可以使用哪些工具。",
  "settings.permissions.section.tools": "工具",
  "settings.permissions.toast.updateFailed.title": "更新权限失败",

  "settings.permissions.action.allow": "允许",
  "settings.permissions.action.ask": "询问",
  "settings.permissions.action.deny": "拒绝",

  "settings.permissions.tool.read.title": "读取",
  "settings.permissions.tool.read.description": "读取文件（匹配文件路径）",
  "settings.permissions.tool.edit.title": "编辑",
  "settings.permissions.tool.edit.description": "修改文件，包括编辑、写入、补丁和多重编辑",
  "settings.permissions.tool.glob.title": "Glob",
  "settings.permissions.tool.glob.description": "使用 glob 模式匹配文件",
  "settings.permissions.tool.grep.title": "Grep",
  "settings.permissions.tool.grep.description": "使用正则表达式搜索文件内容",
  "settings.permissions.tool.list.title": "列表",
  "settings.permissions.tool.list.description": "列出目录中的文件",
  "settings.permissions.tool.bash.title": "Bash",
  "settings.permissions.tool.bash.description": "运行 shell 命令",
  "settings.permissions.tool.task.title": "Task",
  "settings.permissions.tool.task.description": "启动子智能体",
  "settings.permissions.tool.skill.title": "Skill",
  "settings.permissions.tool.skill.description": "按名称加载技能",
  "settings.permissions.tool.lsp.title": "LSP",
  "settings.permissions.tool.lsp.description": "运行语言服务器查询",
  "settings.permissions.tool.todoread.title": "读取待办",
  "settings.permissions.tool.todoread.description": "读取待办列表",
  "settings.permissions.tool.todowrite.title": "更新待办",
  "settings.permissions.tool.todowrite.description": "更新待办列表",
  "settings.permissions.tool.webfetch.title": "Web Fetch",
  "settings.permissions.tool.webfetch.description": "从 URL 获取内容",
  "settings.permissions.tool.websearch.title": "Web Search",
  "settings.permissions.tool.websearch.description": "搜索网页",
  "settings.permissions.tool.codesearch.title": "Code Search",
  "settings.permissions.tool.codesearch.description": "在网上搜索代码",
  "settings.permissions.tool.external_directory.title": "外部目录",
  "settings.permissions.tool.external_directory.description": "访问项目目录之外的文件",
  "settings.permissions.tool.doom_loop.title": "Doom Loop",
  "settings.permissions.tool.doom_loop.description": "检测具有相同输入的重复工具调用",

  "session.delete.failed.title": "删除会话失败",
  "session.delete.title": "删除会话",
  "session.delete.confirm": '删除会话 "{{name}}"？',
  "session.delete.button": "删除会话",

  "workspace.new": "新建工作区",
  "workspace.type.local": "本地",
  "workspace.type.sandbox": "沙盒",
  "workspace.create.failed.title": "创建工作区失败",
  "workspace.delete.failed.title": "删除工作区失败",
  "workspace.resetting.title": "正在重置工作区",
  "workspace.resetting.description": "这可能需要一点时间。",
  "workspace.reset.failed.title": "重置工作区失败",
  "workspace.reset.success.title": "工作区已重置",
  "workspace.reset.success.description": "工作区已与默认分支保持一致。",
  "workspace.error.stillPreparing": "工作区仍在准备中",
  "workspace.status.checking": "正在检查未合并的更改...",
  "workspace.status.error": "无法验证 git 状态。",
  "workspace.status.clean": "未检测到未合并的更改。",
  "workspace.status.dirty": "检测到未合并的更改。",
  "workspace.delete.title": "删除工作区",
  "workspace.delete.confirm": '删除工作区 "{{name}}"？',
  "workspace.delete.button": "删除工作区",
  "workspace.reset.title": "重置工作区",
  "workspace.reset.confirm": '重置工作区 "{{name}}"？',
  "workspace.reset.button": "重置工作区",
  "workspace.reset.archived.none": "不会归档任何活跃会话。",
  "workspace.reset.archived.one": "将归档 1 个会话。",
  "workspace.reset.archived.many": "将归档 {{count}} 个会话。",
  "workspace.reset.note": "这将把工作区重置为与默认分支一致。",
} satisfies Partial<Record<Keys, string>>
