//! Git-panel + Git-dialog strings for this locale.
//!
//! Split out of `zh_cn.rs` to keep that table under the
//! repo's 800-line file cap. The main table falls through
//! here for any `git.*` key.

pub fn lookup(key: &str) -> Option<&'static str> {
    Some(match key {
        "git.openPanel" => "打开 Git 面板",
        "git.closePanel" => "关闭 Git 面板",
        "git.title" => "Git · {{fileName}}",
        "git.titleNoFile" => "Git · (尚未选择文件)",
        "git.close" => "关闭",
        "git.initializing" => "正在初始化仓库…",
        "git.conflict.title" => "合并冲突",
        "git.conflict.description" => "使用下方卡片逐一解决每个冲突，然后应用合并。",
        "git.conflict.abort" => "中止合并",
        "git.conflict.nonOp.title" => "合并因非 .op 文件暂停",
        "git.conflict.nonOp.description" => {
            ".op 文件合并已完成,但仓库中仍有其他文件未解决。请在 OpenPencil 之外解决它们,然后继续。"
        }
        "git.conflict.nonOp.unresolvedHeading_one" => "1 个文件需要处理",
        "git.conflict.nonOp.unresolvedHeading_other" => "{{count}} 个文件需要处理",
        "git.conflict.nonOp.continue" => "继续合并",
        "git.conflict.nonOp.abort" => "中止合并",
        "git.conflict.banner.progress" => "已解决 {{resolved}} / {{total}}",
        "git.conflict.banner.apply" => "应用合并",
        "git.conflict.banner.continue" => "继续",
        "git.conflict.banner.finalizeError" => "无法应用: {{message}}",
        "git.conflict.banner.pollError" => "状态轮询因错误暂停: {{message}}",
        "git.conflict.banner.reopenMessage" => "面板在合并过程中重新打开 — 请中止并重新拉取。",
        "git.conflict.list.heading" => "所有冲突",
        "git.conflict.list.progress" => "已解决 {{resolved}} / {{total}}",
        "git.conflict.list.allResolved" => "全部已解决",
        "git.conflict.list.allOurs" => "全选我的",
        "git.conflict.list.allTheirs" => "全选他的",
        "git.conflict.item.nodeConflict" => "节点冲突",
        "git.conflict.item.fieldConflict" => "字段冲突",
        "git.conflict.item.resolved" => "已解决",
        "git.conflict.card.ours" => "我的版本",
        "git.conflict.card.theirs" => "他人版本",
        "git.conflict.card.base" => "基础版本",
        "git.conflict.card.keepMine" => "保留我的",
        "git.conflict.card.keepTheirs" => "保留他人的",
        "git.conflict.card.oursThumbnailAlt" => "我的版本预览",
        "git.conflict.card.theirsThumbnailAlt" => "他人版本预览",
        "git.conflict.editor.editManually" => "手动编辑",
        "git.conflict.editor.cancel" => "取消",
        "git.conflict.editor.apply" => "应用",
        "git.conflict.editor.invalidJson" => "JSON 格式无效",
        "git.conflict.editor.textareaLabel" => "编辑 JSON 值",
        "git.error.dismiss" => "关闭",
        "git.error.retry" => "重试",
        "git.error.title" => "出现问题",
        "git.empty.heading" => "这份文件还没有版本历史",
        "git.empty.optional" => "Git 是可选的 — 跳过也不影响使用",
        "git.empty.requireSavedFile" => "请先保存 .op 文件以建立历史",
        "git.empty.newCard" => "新建",
        "git.empty.newCardDescription" => "创建本地历史",
        "git.empty.openCard" => "打开",
        "git.empty.openCardDescription" => "已有仓库",
        "git.empty.cloneCard" => "克隆",
        "git.empty.cloneCardDescription" => "从远程仓库",
        "git.author.heading" => "提交署名",
        "git.author.subheading" => "保存第一次提交需要署名",
        "git.author.nameLabel" => "姓名",
        "git.author.namePlaceholder" => "你的名字",
        "git.author.emailLabel" => "邮箱",
        "git.author.emailPlaceholder" => "you@example.com",
        "git.author.submit" => "保存",
        "git.author.cancel" => "取消",
        "git.author.validationName" => "请输入姓名",
        "git.author.validationEmail" => "请输入有效的邮箱",
        "git.picker.heading" => "这个仓库里有 {{count}} 个 .op 文件:",
        "git.picker.milestoneCount" => "{{count}} 个里程碑",
        "git.picker.noHistory" => "暂无历史",
        "git.picker.lastCommit" => "{{message}} · {{time}}",
        "git.picker.bindButton" => "跟踪此文件",
        "git.picker.bindAndOpenButton" => "跟踪并打开",
        "git.picker.back" => "返回",
        "git.picker.backClose" => "取消",
        "git.picker.empty.heading" => "这个仓库里没有 .op 文件",
        "git.picker.empty.body" => "Git 面板需要至少一个 .op 文件才能工作",
        "git.picker.empty.close" => "关闭面板",
        "git.autoBind.confirmHeading" => "已找到 {{fileName}},要在编辑器打开吗?",
        "git.autoBind.openButton" => "打开",
        "git.autoBind.dismissButton" => "跳过",
        "git.relativeTime.justNow" => "刚刚",
        "git.relativeTime.minutesAgo" => "{{count}}分钟前",
        "git.relativeTime.hoursAgo" => "{{count}}小时前",
        "git.relativeTime.daysAgo" => "{{count}}天前",
        "git.commit.placeholder" => "描述这次改动…",
        "git.commit.submitButton" => "保存为里程碑",
        "git.commit.saveRequiredTitle" => "请先保存文档",
        "git.commit.saveRequiredBody" => "当前文档有未保存的修改,需要先保存才能继续: {{label}}",
        "git.commit.saveRequiredSave" => "保存",
        "git.commit.saveRequiredCancel" => "取消",
        "git.header.autosaveError" => "自动保存错误",
        "git.header.autosaveErrorTitle" => "上次自动保存失败",
        "git.header.authorMissingWarning" => "请设置提交作者以记录归属",
        "git.header.overflowSwitchTracked" => "切换跟踪文件…",
        "git.header.overflowClearAuthor" => "清除提交作者",
        "git.header.overflowCloseRepo" => "关闭仓库",
        "git.header.overflowRemoteSettings" => "远端设置…",
        "git.header.overflowSshKeys" => "SSH 密钥…",
        "git.header.overflowMoreActions" => "更多操作",
        "git.history.empty" => "暂无历史",
        "git.history.autosaveGroup_one" => "1 个自动快照",
        "git.history.autosaveGroup_other" => "{{count}} 个自动快照",
        "git.history.autosaveLabel" => "auto {{time}}",
        "git.history.milestoneDetailTitle" => "里程碑详情",
        "git.history.restoreButton" => "恢复",
        "git.history.copyHashButton" => "复制哈希",
        "git.history.copiedToast" => "已复制",
        "git.history.diff.loading" => "加载差异中…",
        "git.history.diff.initialCommit" => "初始提交 — 没有父提交可对比",
        "git.history.diff.noChanges" => "未检测到变更",
        "git.history.diff.error" => "差异不可用：{{message}}",
        "git.history.diff.framesChanged_one" => "1 个画框已更改",
        "git.history.diff.framesChanged_other" => "{{count}} 个画框已更改",
        "git.history.diff.nodesAdded_one" => "新增 1 个节点",
        "git.history.diff.nodesAdded_other" => "新增 {{count}} 个节点",
        "git.history.diff.nodesRemoved_one" => "删除 1 个节点",
        "git.history.diff.nodesRemoved_other" => "删除 {{count}} 个节点",
        "git.history.diff.nodesModified_one" => "修改 1 个节点",
        "git.history.diff.nodesModified_other" => "修改 {{count}} 个节点",
        "git.history.promoteButton" => "提升为里程碑",
        "git.history.promoteSuccessToast" => "已提升为里程碑",
        "git.history.loadMore" => "加载更多",
        "git.autosave.messagePrefix" => "auto",
        "git.autosave.messageDiffSuffix" => "",
        "git.branch.listHeading" => "分支",
        "git.branch.createAction" => "新建分支",
        "git.branch.createPlaceholder" => "feature/login-redesign",
        "git.branch.createSubmit" => "创建分支",
        "git.branch.createEmpty" => "请输入分支名称",
        "git.branch.createExists" => "分支 {{name}} 已存在",
        "git.branch.mergeAction" => "合并分支…",
        "git.branch.mergeHeading" => "合并到 {{name}}",
        "git.branch.deletePrompt" => "删除分支 {{name}}?",
        "git.branch.deleteLabel" => "删除分支 {{name}}",
        "git.branch.deleteWarning" => "分支 {{name}} 有未合并的提交",
        "git.branch.deleteConfirm" => "删除",
        "git.branch.deleteForce" => "强制删除",
        "git.branch.cancel" => "取消",
        "git.branch.conflictDisabled" => "请先完成合并再切换分支",
        "git.branch.noCommits" => "暂无提交",
        "git.wizard.clone.heading" => "克隆远程仓库",
        "git.wizard.clone.subheading" => "选择远程地址和目标文件夹。",
        "git.wizard.clone.urlLabel" => "远程地址",
        "git.wizard.clone.urlPlaceholder" => "https://github.com/owner/repo.git",
        "git.wizard.clone.destLabel" => "目标文件夹",
        "git.wizard.clone.destPlaceholder" => "/克隆/路径",
        "git.wizard.clone.destPickButton" => "浏览…",
        "git.wizard.clone.usernameLabel" => "用户名(可选)",
        "git.wizard.clone.tokenLabel" => "访问令牌(可选)",
        "git.wizard.clone.tokenPlaceholder" => "ghp_… 公开仓库可留空",
        "git.wizard.clone.anonymousHint" => "留空表示匿名克隆(仅适用于公开仓库)。",
        "git.wizard.clone.sshHint" => "此地址需要 SSH 密钥认证。",
        "git.wizard.clone.hostDetected" => "检测到:{{host}} · {{mode}}",
        "git.wizard.clone.authMode.token-or-anon" => "令牌或匿名",
        "git.wizard.clone.authMode.ssh" => "SSH 密钥",
        "git.wizard.clone.cancel" => "取消",
        "git.wizard.clone.submit" => "克隆",
        "git.wizard.clone.validationUrl" => "请输入远程地址",
        "git.wizard.clone.validationDest" => "请选择目标文件夹",
        "git.wizard.clone.validationTokenUsername" => "提供令牌时必须填写用户名",
        "git.wizard.clone.error.clone-network" => "克隆时出现网络错误,请检查连接后重试。",
        "git.wizard.clone.error.network" => "网络错误,请检查连接后重试。",
        "git.wizard.clone.error.timeout" => "克隆超时,请重试或选择更小的仓库。",
        "git.wizard.clone.error.auth-required" => "此仓库需要进行身份验证。",
        "git.wizard.clone.error.auth-failed" => "身份验证失败,请检查用户名和令牌。",
        "git.wizard.clone.error.auth-token-invalid" => "访问令牌被拒绝,请生成新令牌后重试。",
        "git.wizard.clone.error.clone-failed" => "克隆失败,请确认地址指向真实存在的仓库。",
        "git.wizard.clone.error.clone-target-exists" => "目标文件夹已存在或不为空。",
        "git.pull.label" => "拉取",
        "git.pull.tooltip" => "从 origin 拉取",
        "git.pull.noRemote" => "未配置远端 — 请在 Git 设置中添加",
        "git.pull.retry" => "重试拉取",
        "git.push.label" => "推送",
        "git.push.tooltip_one" => "推送 1 个提交到 origin",
        "git.push.tooltip_other" => "推送 {{count}} 个提交到 origin",
        "git.push.noRemote" => "未配置远端 — 请在 Git 设置中添加",
        "git.push.upToDate" => "没有需要推送的内容 — 已是最新",
        "git.push.retry" => "重试推送",
        "git.push.rejectedBody" => "远端有你尚未同步的提交。请先拉取,然后再推送。",
        "git.push.rejectedDismiss" => "关闭",
        "git.push.rejectedPull" => "立即拉取",
        "git.remote.dismissError" => "关闭",
        "git.remote.settingsLabel" => "远端设置",
        "git.remote.settingsHeading" => "远端",
        "git.remote.back" => "返回",
        "git.remote.cancel" => "取消",
        "git.remote.emptyNoOrigin" => "尚未配置远端仓库,现在添加一个:",
        "git.remote.urlLabel" => "Origin 地址",
        "git.remote.urlPlaceholder" => "https://github.com/owner/repo.git",
        "git.remote.saveButton" => "保存",
        "git.remote.clearButton" => "清除",
        "git.remote.clearConfirmHeading" => "清除 origin?",
        "git.remote.clearConfirmBody" => "这将从当前仓库中移除 origin 远端。",
        "git.remote.clearConfirmAction" => "确认",
        "git.remote.aheadBehind" => "领先 {{ahead}} · 落后 {{behind}}",
        "git.remote.fetchButton" => "获取",
        "git.remote.sshIsoUnsupported" => {
            "内置引擎不支持 SSH 传输。请安装系统 git,或改用 HTTPS 远端地址。"
        }
        "git.remote.storedAuthLabel" => "已保存的凭据",
        "git.remote.storedAuth.token" => "令牌",
        "git.remote.storedAuth.ssh" => "SSH 密钥",
        "git.remote.storedAuth.none" => "无",
        "git.remote.storedAuth.loading" => "加载中…",
        "git.remote.storedAuth.noHost" => "未检测到主机",
        "git.remote.clearAuthButton" => "清除已保存的凭据",
        "git.ssh.label" => "SSH 密钥",
        "git.ssh.heading" => "SSH 密钥",
        "git.ssh.back" => "返回",
        "git.ssh.cancel" => "取消",
        "git.ssh.isoUnsupported" => {
            "当前远端使用 SSH,但内置引擎无法执行 SSH 传输。请安装系统 git,或将远端地址改为 HTTPS。"
        }
        "git.ssh.emptyList" => "暂无 SSH 密钥。",
        "git.ssh.generateAction" => "生成新密钥",
        "git.ssh.importAction" => "导入现有密钥",
        "git.ssh.copyPublicKey" => "复制公钥",
        "git.ssh.copiedHint" => "已复制",
        "git.ssh.copyUnsupported" => "剪贴板不可用——请手动复制此密钥。",
        "git.ssh.deleteKey" => "删除 {{name}}",
        "git.ssh.deletePrompt" => "删除 SSH 密钥 {{name}}?",
        "git.ssh.deleteConfirm" => "删除",
        "git.ssh.currentHostBadge" => "当前主机",
        "git.ssh.hostLabel" => "主机",
        "git.ssh.hostPlaceholder" => "github.com",
        "git.ssh.commentLabel" => "备注",
        "git.ssh.commentPlaceholder" => "laptop@home",
        "git.ssh.generateSubmit" => "生成",
        "git.ssh.importPathLabel" => "私钥路径",
        "git.ssh.importPathPlaceholder" => "/path/to/id_ed25519",
        "git.ssh.importBrowse" => "浏览…",
        "git.ssh.importSubmit" => "导入",
        "git.ssh.validationHost" => "请输入主机",
        "git.ssh.validationComment" => "请输入备注",
        "git.ssh.validationImportPath" => "请选择要导入的私钥文件",
        "git.ssh.providerLink" => "打开 {{host}} SSH 密钥设置",
        "git.ssh.genericGuidance" => "复制公钥并添加到你的 Git 提供商 SSH 密钥设置中。",
        "git.auth.formLabel" => "Git 凭据",
        "git.auth.heading" => "向 {{host}} 认证",
        "git.auth.headingUnknown" => "向该远端认证",
        "git.auth.modeToggleLabel" => "凭据类型",
        "git.auth.modeToken" => "令牌",
        "git.auth.modeSsh" => "SSH",
        "git.auth.usernameLabel" => "用户名(可选)",
        "git.auth.tokenLabel" => "访问令牌",
        "git.auth.tokenPlaceholder" => "ghp_… 或 PAT",
        "git.auth.sshKeyLabel" => "SSH 密钥",
        "git.auth.sshNoKeys" => "暂无可用的 SSH 密钥。请先在 Git 设置中导入或生成一个。",
        "git.auth.rememberLabel" => "记住此主机的凭据",
        "git.auth.rememberHint" => "记住此主机的凭据",
        "git.auth.cancel" => "取消",
        "git.auth.validationToken" => "访问令牌是必填项",
        "git.auth.validationSshKey" => "请选择一个 SSH 密钥",
        "git.auth.error.auth-required" => "此远端需要认证。",
        "git.auth.error.auth-failed" => "认证失败。请检查你的凭据后再试。",
        "git.auth.error.auth-token-invalid" => "访问令牌被拒绝。请生成新令牌后再试。",
        "git.error.pushTitle" => "推送失败",
        "git.error.pushBody" => "git push 未能完成。",
        "git.error.pullTitle" => "拉取失败",
        "git.error.pullBody" => "git pull 未能完成。",
        "git.error.commitTitle" => "提交失败",
        "git.error.commitBody" => "git commit 未能完成。",
        "git.merge.conflictTitle" => "合并存在冲突",
        "git.merge.conflictBody" => "分支 {{branch}} 与当前分支有 {{count}} 个文件冲突,合并未应用,当前工作区保持原样。请先解决冲突:",
        "git.ssh.readyTitle" => "SSH 密钥已就绪",
        "git.ssh.readyBody" => "已为 {{host}} 生成并绑定 SSH 密钥,pull 和 push 将使用它。请把下面的公钥添加到该平台的 SSH keys 设置:",
        "git.panel.title" => "Git",
        "git.panel.loading" => "正在加载仓库…",
        "git.panel.notARepo" => "不是 Git 仓库。",
        "git.panel.detachedHead" => "游离 HEAD",
        "git.panel.branch" => "⎇ {{name}}",
        "git.panel.abortMerge" => "中止合并",
        "git.panel.refresh" => "刷新",
        "git.panel.complete" => "完成",
        "git.panel.commit" => "提交",
        "git.panel.pull" => "拉取",
        "git.panel.push" => "推送",
        "git.panel.mergeInProgress" => "合并进行中 — 请解决冲突",
        "git.panel.conflicts" => "冲突",
        "git.panel.noConflicts" => "无冲突。",
        "git.panel.changes" => "更改 — 已暂存 {{staged}}/{{total}}",
        "git.panel.recentCommits" => "最近提交",
        "git.panel.noCommits" => "暂无提交。",
        "git.panel.branches" => "分支",
        "git.panel.commitPlaceholder" => "提交说明…",
        "git.panel.footer" => "点击状态行或某一行查看其差异",
        "git.panel.pulling" => "正在拉取…",
        "git.panel.pushing" => "正在推送…",
        "git.panel.changedConflicted" => "{{changed}} 项更改 · {{conflicted}} 项冲突",
        "git.panel.changed" => "{{count}} 项更改",
        "git.panel.clean" => "工作区干净",
        "git.panel.diffTitle" => "差异 · {{title}}",
        "git.panel.diffNoChanges" => "无更改。",
        "git.panel.diffComputing" => "正在计算差异…",
        "git.panel.diffLoading" => "加载中…",
        "git.panel.diffWorkingTree" => "工作区",
        "git.panel.diffCommit" => "提交 {{rev}}",
        "git.panel.stage" => "暂存",
        "git.panel.diffFooter" => "第 {{start}}–{{end}} 行,共 {{total}} 行{{col}}",
        "git.panel.diffCol" => " · 第 {{n}} 列",
        "git.panel.remotes" => "远程",
        "git.panel.remotesMore" => "{{name}} 等 +{{count}} 个",
        "git.panel.noRemote" => "无远程 — 请在下方添加 origin。",
        "git.panel.remotePlaceholder" => "https://github.com/you/repo.git",
        "git.panel.httpsPlaceholder" => "用户名:令牌",
        "git.panel.set" => "设置",
        "git.panel.login" => "登录",
        "git.panel.resolveTitle" => "解决合并 — {{branch}}",
        "git.panel.resolveSubtitle" => "{{count}} 个节点冲突 — 请为每个选择一方",
        "git.panel.ours" => "我方",
        "git.panel.theirs" => "对方",
        "git.panel.applyMerge" => "应用合并",
        "git.panel.resolveFooter" => "应用将按你的选择重新执行合并",
        "git.panel.resolveFooterMore" => "另有 +{{count}} 个保留为我方 · 取消将中止合并",
        "git.conflict.bothModified" => "双方都修改",
        "git.conflict.structuralChange" => "子节点顺序改变",
        "git.conflict.deleteModify" => "删除 / 修改",
        "git.conflict.bothAdded" => "双方都新增",
        "git.conflict.addedOnRemote" => "仅远程新增",
        "git.merge.autoMergeable" => "{{path}} — 结构上可自动合并",
        "git.merge.andMore" => "    … 还有 {{count}} 个",
        "git.panel.diffError" => "(差异获取失败:{{message}})",
        "git.reload.confirmTitle" => "有未保存的更改",
        "git.reload.confirmBody" => "此 Git 操作会从磁盘重新加载文档,丢弃当前未保存的更改。\n\n是 = 先保存 · 否 = 放弃更改 · 取消 = 不继续。",
        "git.gitError.notFound" => "未安装 Git — 请安装 Git 以使用版本控制。",
        "git.gitError.notARepo" => "不是 Git 仓库:{{detail}}",
        "git.gitError.commandFailed" => "git 命令执行失败:\n{{detail}}",
        "git.gitError.mergeInProgress" => "已有合并正在进行 — 请先解决或中止它。",
        "git.gitError.workingTreeDirty" => "工作区有未提交的更改 — 合并前请先提交或暂存。",
        "git.gitError.io" => "Git 进程错误:{{detail}}",
        _ => return None,
    })
}
