{
  "app": {
    "title": "CC Switch",
    "description": "Claude Code & Codex 供应商切换工具"
  },
  "common": {
    "add": "添加",
    "edit": "编辑",
    "delete": "删除",
    "save": "保存",
    "saving": "保存中...",
    "cancel": "取消",
    "confirm": "确定",
    "close": "关闭",
    "done": "完成",
    "settings": "设置",
    "about": "关于",
    "version": "版本",
    "loading": "加载中...",
    "success": "成功",
    "error": "错误",
    "unknown": "未知",
    "enterValidValue": "请输入有效的内容",
    "clear": "清除",
    "toggleTheme": "切换主题"
  },
  "apiKeyInput": {
    "placeholder": "请输入API Key",
    "show": "显示API Key",
    "hide": "隐藏API Key"
  },
  "jsonEditor": {
    "mustBeObject": "配置必须是JSON对象，不能是数组或其他类型",
    "invalidJson": "JSON格式错误"
  },
  "claudeConfig": {
    "configLabel": "Claude Code 配置 (JSON) *",
    "writeCommonConfig": "写入通用配置",
    "editCommonConfig": "编辑通用配置",
    "editCommonConfigTitle": "编辑通用配置片段",
    "commonConfigHint": "该片段会在勾选\"写入通用配置\"时合并到 settings.json 中",
    "fullSettingsHint": "完整的 Claude Code settings.json 配置内容"
  },
  "header": {
    "viewOnGithub": "在 GitHub 上查看",
    "toggleDarkMode": "切换到暗色模式",
    "toggleLightMode": "切换到亮色模式",
    "addProvider": "添加供应商",
    "switchToChinese": "切换到中文",
    "switchToEnglish": "切换到英文",
    "enterEditMode": "进入编辑模式",
    "exitEditMode": "退出编辑模式"
  },
  "provider": {
    "noProviders": "还没有添加任何供应商",
    "noProvidersDescription": "点击右上角的\"添加供应商\"按钮开始配置您的第一个API供应商",
    "currentlyUsing": "当前使用",
    "enable": "启用",
    "inUse": "使用中",
    "editProvider": "编辑供应商",
    "editProviderHint": "更新配置后将立即应用到当前供应商。",
    "deleteProvider": "删除供应商",
    "addNewProvider": "添加新供应商",
    "addClaudeProvider": "添加 Claude Code 供应商",
    "addCodexProvider": "添加 Codex 供应商",
    "addProviderHint": "填写信息后即可在列表中快速切换供应商。",
    "editClaudeProvider": "编辑 Claude Code 供应商",
    "editCodexProvider": "编辑 Codex 供应商",
    "configError": "配置错误",
    "notConfigured": "未配置官网地址",
    "applyToClaudePlugin": "应用到 Claude 插件",
    "removeFromClaudePlugin": "从 Claude 插件移除",
    "dragToReorder": "拖拽以重新排序",
    "dragHandle": "拖拽排序",
    "duplicate": "复制",
    "sortUpdateFailed": "排序更新失败",
    "configureUsage": "配置用量查询",
    "name": "供应商名称",
    "namePlaceholder": "例如：Claude 官方",
    "websiteUrl": "官网链接",
    "configJson": "配置 JSON",
    "writeCommonConfig": "写入通用配置",
    "editCommonConfigButton": "编辑通用配置",
    "configJsonHint": "请填写完整的 Claude Code 配置",
    "editCommonConfigTitle": "编辑通用配置片段",
    "editCommonConfigHint": "通用配置片段将合并到所有启用它的供应商配置中",
    "addProvider": "添加供应商"
  },
  "notifications": {
    "providerSaved": "供应商配置已保存",
    "providerDeleted": "供应商删除成功",
    "switchSuccess": "切换成功！请重启 {{appName}} 终端以生效",
    "switchFailed": "切换失败，请检查配置",
    "autoImported": "已从现有配置创建默认供应商",
    "saveFailed": "保存失败：{{error}}",
    "saveFailedGeneric": "保存失败，请重试",
    "appliedToClaudePlugin": "已应用到 Claude 插件",
    "removedFromClaudePlugin": "已从 Claude 插件移除",
    "syncClaudePluginFailed": "同步 Claude 插件失败"
  },
  "confirm": {
    "deleteProvider": "删除供应商",
    "deleteProviderMessage": "确定要删除供应商 \"{{name}}\" 吗？此操作无法撤销。"
  },
  "settings": {
    "title": "设置",
    "general": "通用",
    "tabGeneral": "通用",
    "tabAdvanced": "高级",
    "language": "界面语言",
    "languageHint": "切换后立即预览界面语言，保存后永久生效。",
    "theme": "外观主题",
    "themeHint": "选择应用的外观主题，立即生效。",
    "themeLight": "浅色",
    "themeDark": "深色",
    "themeSystem": "跟随系统",
    "importExport": "导入导出配置",
    "importExportHint": "导入导出 cc-switch 配置，便于备份或迁移。",
    "exportConfig": "导出配置到文件",
    "selectConfigFile": "选择配置文件",
    "noFileSelected": "尚未选择配置文件。",
    "import": "导入",
    "importing": "导入中...",
    "importSuccess": "导入成功！",
    "importFailed": "导入失败",
    "syncLiveFailed": "已导入，但同步到当前供应商失败，请手动重新选择一次供应商。",
    "importPartialSuccess": "配置已导入，但同步到当前供应商失败。",
    "importPartialHint": "请手动重新选择一次供应商以刷新对应配置。",
    "configExported": "配置已导出到：",
    "exportFailed": "导出失败",
    "selectFileFailed": "选择文件失败",
    "configCorrupted": "配置文件可能已损坏或格式不正确",
    "backupId": "备份ID",
    "autoReload": "数据将在2秒后自动刷新...",
    "languageOptionChinese": "中文",
    "languageOptionEnglish": "English",
    "windowBehavior": "窗口行为",
    "windowBehaviorHint": "配置窗口最小化与 Claude 插件联动策略。",
    "minimizeToTray": "关闭时最小化到托盘",
    "minimizeToTrayDescription": "勾选后点击关闭按钮会隐藏到系统托盘，取消则直接退出应用。",
    "enableClaudePluginIntegration": "应用到 Claude Code 插件",
    "enableClaudePluginIntegrationDescription": "开启后 Vscode Claude Code 插件的供应商将随本软件切换",
    "configDirectoryOverride": "配置目录覆盖（高级）",
    "configDirectoryDescription": "在 WSL 等环境使用 Claude Code 或 Codex 的时候，可手动指定 WSL 里的配置目录，供应商数据与主环境保持一致。",
    "appConfigDir": "CC-Switch 配置目录",
    "appConfigDirDescription": "自定义 CC-Switch 的配置存储位置（config.json 等文件）",
    "browsePlaceholderApp": "例如：C:\\Users\\Administrator\\.cc-switch",
    "claudeConfigDir": "Claude Code 配置目录",
    "claudeConfigDirDescription": "覆盖 Claude 配置目录 (settings.json)，同时会在同级存放 Claude MCP 的 claude.json。",
    "codexConfigDir": "Codex 配置目录",
    "codexConfigDirDescription": "覆盖 Codex 配置目录。",
    "browsePlaceholderClaude": "例如：/home/<你的用户名>/.claude",
    "browsePlaceholderCodex": "例如：/home/<你的用户名>/.codex",
    "browseDirectory": "浏览目录",
    "resetDefault": "恢复默认目录（需保存后生效）",
    "checkForUpdates": "检查更新",
    "updateTo": "更新到 v{{version}}",
    "updating": "更新中...",
    "checking": "检查中...",
    "upToDate": "已是最新",
    "aboutHint": "查看版本信息与更新状态。",
    "portableMode": "当前为便携版，更新需手动下载。",
    "updateAvailable": "检测到新版本：{{version}}",
    "updateFailed": "更新安装失败，已尝试打开下载页面。",
    "checkUpdateFailed": "检查更新失败，请稍后重试。",
    "openReleaseNotesFailed": "打开更新日志失败",
    "releaseNotes": "更新日志",
    "viewReleaseNotes": "查看该版本更新日志",
    "viewCurrentReleaseNotes": "查看当前版本更新日志",
    "exportFailedError": "导出配置失败:",
    "restartRequired": "需要重启应用",
    "restartRequiredMessage": "修改 CC-Switch 配置目录后需要重启应用才能生效，是否立即重启？",
    "restartNow": "立即重启",
    "restartLater": "稍后重启",
    "restartFailed": "应用重启失败，请手动关闭后重新打开。",
    "devModeRestartHint": "开发模式下不支持自动重启，请手动重新启动应用。",
    "saving": "正在保存..."
  },
  "apps": {
    "claude": "Claude Code",
    "codex": "Codex"
  },
  "console": {
    "providerSwitchReceived": "收到供应商切换事件:",
    "setupListenerFailed": "设置供应商切换监听器失败:",
    "updateProviderFailed": "更新供应商失败:",
    "autoImportFailed": "自动导入默认配置失败:",
    "openLinkFailed": "打开链接失败:",
    "getVersionFailed": "获取版本信息失败:",
    "loadSettingsFailed": "加载设置失败:",
    "getConfigPathFailed": "获取配置路径失败:",
    "getConfigDirFailed": "获取配置目录失败:",
    "detectPortableFailed": "检测便携模式失败:",
    "saveSettingsFailed": "保存设置失败:",
    "updateFailed": "更新失败:",
    "checkUpdateFailed": "检查更新失败:",
    "openConfigFolderFailed": "打开配置文件夹失败:",
    "selectConfigDirFailed": "选择配置目录失败:",
    "getDefaultConfigDirFailed": "获取默认配置目录失败:",
    "openReleaseNotesFailed": "打开更新日志失败:"
  },
  "providerForm": {
    "supplierName": "供应商名称",
    "supplierNameRequired": "供应商名称 *",
    "supplierNamePlaceholder": "例如：Anthropic 官方",
    "websiteUrl": "官网地址",
    "websiteUrlPlaceholder": "https://example.com（可选）",
    "apiEndpoint": "请求地址",
    "apiEndpointPlaceholder": "https://your-api-endpoint.com",
    "codexApiEndpointPlaceholder": "https://your-api-endpoint.com/v1",
    "manageAndTest": "管理与测速",
    "configContent": "配置内容",
    "useConfigWizard": "使用配置向导",
    "manualConfig": "手动配置供应商，需要填写完整的配置信息，或者",
    "officialNoApiKey": "官方登录无需填写 API Key，直接保存即可",
    "codexOfficialNoApiKey": "官方无需填写 API Key，直接保存即可",
    "codexApiKeyAutoFill": "只需要填这里，下方 auth.json 会自动填充",
    "kimiApiKeyHint": "填写后可获取模型列表",
    "apiKeyAutoFill": "只需要填这里，下方配置会自动填充",
    "cnOfficialApiKeyHint": "💡 开源官方供应商只需填写 API Key，请求地址已预设",
    "aggregatorApiKeyHint": "💡 聚合服务供应商只需填写 API Key 即可使用",
    "thirdPartyApiKeyHint": "💡 第三方供应商需要填写 API Key 和请求地址",
    "customApiKeyHint": "💡 自定义配置需手动填写所有必要字段",
    "officialHint": "💡 官方供应商使用浏览器登录，无需配置 API Key",
    "getApiKey": "获取 API Key",
    "parameterConfig": "参数配置 - {{name}} *",
    "mainModel": "主模型 (可选)",
    "mainModelPlaceholder": "例如: GLM-4.6",
    "fastModel": "快速模型 (可选)",
    "fastModelPlaceholder": "例如: GLM-4.5-Air",
    "modelHint": "💡 留空将使用供应商的默认模型",
    "apiHint": "💡 填写兼容 Claude API 的服务端点地址",
    "codexApiHint": "💡 填写兼容 OpenAI Response 格式的服务端点地址",
    "fillSupplierName": "请填写供应商名称",
    "fillConfigContent": "请填写配置内容",
    "fillParameter": "请填写 {{label}}",
    "fillTemplateValue": "请填写 {{label}}",
    "configJsonError": "配置JSON格式错误，请检查语法",
    "authJsonRequired": "auth.json 必须是 JSON 对象",
    "authJsonError": "auth.json 格式错误，请检查JSON语法",
    "fillAuthJson": "请填写 auth.json 配置",
    "fillApiKey": "请填写 OPENAI_API_KEY",
    "visitWebsite": "访问 {{url}}",
    "anthropicModel": "主模型",
    "anthropicSmallFastModel": "快速模型",
    "modelPlaceholder": "GLM-4.6",
    "smallModelPlaceholder": "GLM-4.5-Air",
    "modelHelper": "可选：指定默认使用的 Claude 模型，留空则使用系统默认。",
    "categoryOfficial": "官方",
    "categoryCnOfficial": "开源官方",
    "categoryAggregation": "聚合服务",
    "categoryThirdParty": "第三方"
  },
  "endpointTest": {
    "title": "请求地址管理",
    "endpoints": "个端点",
    "autoSelect": "自动选择",
    "testSpeed": "测速",
    "testing": "测速中",
    "addEndpointPlaceholder": "https://api.example.com",
    "done": "完成",
    "noEndpoints": "暂无端点",
    "failed": "失败",
    "enterValidUrl": "请输入有效的 URL",
    "invalidUrlFormat": "URL 格式不正确",
    "onlyHttps": "仅支持 HTTP/HTTPS",
    "urlExists": "该地址已存在",
    "saveFailed": "保存失败，请重试",
    "loadEndpointsFailed": "加载自定义端点失败:",
    "addEndpointFailed": "添加自定义端点失败:",
    "removeEndpointFailed": "删除自定义端点失败:",
    "removeFailed": "删除失败: {{error}}",
    "updateLastUsedFailed": "更新端点使用时间失败",
    "pleaseAddEndpoint": "请先添加端点",
    "testUnavailable": "测速功能不可用",
    "noResult": "未返回结果",
    "testFailed": "测速失败: {{error}}"
  },
  "codexConfig": {
    "quickWizard": "快速配置向导",
    "authJson": "auth.json (JSON) *",
    "authJsonPlaceholder": "{\n  \"OPENAI_API_KEY\": \"sk-your-api-key-here\"\n}",
    "authJsonHint": "Codex auth.json 配置内容",
    "configToml": "config.toml (TOML)",
    "configTomlHint": "Codex config.toml 配置内容",
    "writeCommonConfig": "写入通用配置",
    "editCommonConfig": "编辑通用配置",
    "editCommonConfigTitle": "编辑 Codex 通用配置片段",
    "commonConfigHint": "该片段会在勾选'写入通用配置'时追加到 config.toml 末尾",
    "wizardHint": "输入关键参数，系统将自动生成标准的 auth.json 和 config.toml 配置。",
    "apiKeyLabel": "API 密钥 *",
    "apiKeyPlaceholder": "sk-your-api-key-here",
    "supplierNameLabel": "供应商名称 *",
    "supplierNamePlaceholder": "例如：Codex 官方",
    "supplierNameHint": "将显示在供应商列表中，可使用中文",
    "supplierCodeLabel": "供应商代号（英文）",
    "supplierCodePlaceholder": "custom（可选）",
    "supplierCodeHint": "将用作配置文件中的标识符，默认为 custom",
    "apiUrlLabel": "API 请求地址 *",
    "apiUrlPlaceholder": "https://your-api-endpoint.com/v1",
    "websiteLabel": "官网地址",
    "websitePlaceholder": "https://example.com",
    "websiteHint": "官方网站地址（可选）",
    "modelNameLabel": "模型名称 *",
    "modelNamePlaceholder": "gpt-5-codex",
    "configPreview": "配置预览",
    "applyConfig": "应用配置"
  },
  "providerPreset": {
    "label": "预设供应商",
    "custom": "自定义配置",
    "other": "其他",
    "hint": "选择预设后可继续调整下方字段。"
  },
  "usage": {
    "queryFailed": "查询失败",
    "refreshUsage": "刷新用量",
    "planUsage": "套餐用量",
    "invalid": "已失效",
    "total": "总：",
    "used": "使用：",
    "remaining": "剩余："
  },
  "usageScript": {
    "title": "配置用量查询",
    "enableUsageQuery": "启用用量查询",
    "presetTemplate": "预设模板",
    "queryScript": "查询脚本（JavaScript）",
    "timeoutSeconds": "超时时间（秒）",
    "scriptHelp": "脚本编写说明：",
    "configFormat": "配置格式：",
    "extractorFormat": "extractor 返回格式（所有字段均为可选）：",
    "tips": "💡 提示：",
    "testing": "测试中...",
    "testScript": "测试脚本",
    "format": "格式化",
    "saveConfig": "保存配置",
    "scriptEmpty": "脚本配置不能为空",
    "mustHaveReturn": "脚本必须包含 return 语句",
    "testSuccess": "测试成功！",
    "testFailed": "测试失败",
    "formatSuccess": "格式化成功",
    "formatFailed": "格式化失败",
    "variablesHint": "支持变量: {{apiKey}}, {{baseUrl}} | extractor 函数接收 API 响应的 JSON 对象",
    "fieldIsValid": "• isValid: 布尔值，套餐是否有效",
    "fieldInvalidMessage": "• invalidMessage: 字符串，失效原因说明（当 isValid 为 false 时显示）",
    "fieldRemaining": "• remaining: 数字，剩余额度",
    "fieldUnit": "• unit: 字符串，单位（如 \"USD\"）",
    "fieldPlanName": "• planName: 字符串，套餐名称",
    "fieldTotal": "• total: 数字，总额度",
    "fieldUsed": "• used: 数字，已用额度",
    "fieldExtra": "• extra: 字符串，扩展字段，可自由补充需要展示的文本",
    "tip1": "• 变量 {{apiKey}} 和 {{baseUrl}} 会自动替换",
    "tip2": "• extractor 函数在沙箱环境中执行，支持 ES2020+ 语法",
    "tip3": "• 整个配置必须用 () 包裹，形成对象字面量表达式"
  },
  "kimiSelector": {
    "modelConfig": "模型配置",
    "mainModel": "主模型",
    "fastModel": "快速模型",
    "refreshModels": "刷新模型列表",
    "pleaseSelectModel": "请选择模型",
    "noModels": "暂无模型",
    "fillApiKeyFirst": "请先填写 API Key",
    "requestFailed": "请求失败: {{error}}",
    "invalidData": "返回数据格式错误",
    "fetchModelsFailed": "获取模型列表失败",
    "apiKeyHint": "💡 填写 API Key 后将自动获取可用模型列表"
  },
  "presetSelector": {
    "title": "选择配置类型",
    "custom": "自定义",
    "customDescription": "手动配置供应商，需要填写完整的配置信息",
    "officialDescription": "官方登录，不需要填写 API Key",
    "presetDescription": "使用预设配置，只需填写 API Key"
  },
  "mcp": {
    "title": "MCP 管理",
    "claudeTitle": "Claude Code MCP 管理",
    "codexTitle": "Codex MCP 管理",
    "userLevelPath": "用户级 MCP 配置路径",
    "serverList": "服务器列表",
    "loading": "加载中...",
    "empty": "暂无 MCP 服务器",
    "emptyDescription": "点击右上角按钮添加第一个 MCP 服务器",
    "add": "添加 MCP",
    "addServer": "新增 MCP",
    "editServer": "编辑 MCP",
    "addClaudeServer": "新增 Claude Code MCP",
    "editClaudeServer": "编辑 Claude Code MCP",
    "addCodexServer": "新增 Codex MCP",
    "editCodexServer": "编辑 Codex MCP",
    "configPath": "配置路径",
    "serverCount": "已配置 {{count}} 个 MCP 服务器",
    "enabledCount": "已启用 {{count}} 个",
    "template": {
      "fetch": "快速模板：mcp-fetch"
    },
    "form": {
      "title": "MCP 标题（唯一）",
      "titlePlaceholder": "my-mcp-server",
      "name": "显示名称",
      "namePlaceholder": "例如 @modelcontextprotocol/server-time",
      "description": "描述",
      "descriptionPlaceholder": "可选的描述信息",
      "tags": "标签（逗号分隔）",
      "tagsPlaceholder": "stdio, time, utility",
      "homepage": "主页链接",
      "homepagePlaceholder": "https://example.com",
      "docs": "文档链接",
      "docsPlaceholder": "https://example.com/docs",
      "additionalInfo": "附加信息",
      "jsonConfig": "JSON 配置",
      "jsonPlaceholder": "{\n  \"type\": \"stdio\",\n  \"command\": \"uvx\",\n  \"args\": [\"mcp-server-fetch\"]\n}",
      "tomlConfig": "TOML 配置",
      "tomlPlaceholder": "type = \"stdio\"\ncommand = \"uvx\"\nargs = [\"mcp-server-fetch\"]",
      "useWizard": "配置向导",
      "syncOtherSide": "同步到 {{target}}",
      "syncOtherSideHint": "勾选后会把当前配置同时写入 {{target}}，若存在同名配置将被覆盖",
      "willOverwriteWarning": "将覆盖 {{target}} 中的同名配置"
    },
    "wizard": {
      "title": "MCP 配置向导",
      "hint": "快速配置 MCP 服务器，自动生成 JSON 配置",
      "type": "类型",
      "typeStdio": "stdio",
      "typeHttp": "http",
      "command": "命令",
      "commandPlaceholder": "npx 或 uvx",
      "args": "参数",
      "argsPlaceholder": "arg1\narg2",
      "env": "环境变量",
      "envPlaceholder": "KEY1=value1\nKEY2=value2",
      "url": "URL",
      "urlPlaceholder": "https://api.example.com/mcp",
      "urlRequired": "请输入 URL",
      "headers": "请求头（可选）",
      "headersPlaceholder": "Authorization: Bearer your_token_here\nContent-Type: application/json",
      "preview": "配置预览",
      "apply": "应用配置"
    },
    "id": "标识 (唯一)",
    "type": "类型",
    "command": "命令",
    "validateCommand": "校验命令",
    "args": "参数",
    "argsPlaceholder": "例如：mcp-server-fetch --help",
    "env": "环境变量 (一行一个，KEY=VALUE)",
    "envPlaceholder": "FOO=bar\nHELLO=world",
    "reset": "重置",
    "notice": {
      "restartClaude": "已写入配置，重启 Claude 生效"
    },
    "msg": {
      "saved": "已保存",
      "deleted": "已删除",
      "enabled": "已启用",
      "disabled": "已禁用",
      "templateAdded": "已添加模板"
    },
    "error": {
      "idRequired": "请填写标识",
      "idExists": "该标识已存在，请更换",
      "jsonInvalid": "JSON 格式错误，请检查",
      "tomlInvalid": "TOML 格式错误，请检查",
      "commandRequired": "请填写命令",
      "singleServerObjectRequired": "此处只需单个服务器对象，请不要粘贴包含 mcpServers 的整份配置",
      "saveFailed": "保存失败",
      "deleteFailed": "删除失败"
    },
    "validation": {
      "ok": "命令可用",
      "fail": "命令不可用"
    },
    "confirm": {
      "deleteTitle": "删除 MCP 服务器",
      "deleteMessage": "确定要删除 MCP 服务器 \"{{id}}\" 吗？此操作无法撤销。"
    },
    "presets": {
      "title": "选择 MCP 类型",
      "enable": "启用",
      "enabled": "已启用",
      "installed": "已安装",
      "docs": "文档",
      "requiresEnv": "需要环境变量",
      "fetch": {
        "name": "mcp-server-fetch",
        "description": "通用 HTTP 请求工具，支持 GET/POST 等 HTTP 方法，适合快速请求接口/抓取网页数据"
      },
      "time": {
        "name": "@modelcontextprotocol/server-time",
        "description": "时间查询工具，提供当前时间、时区转换、日期计算等功能"
      },
      "memory": {
        "name": "@modelcontextprotocol/server-memory",
        "description": "知识图谱记忆系统，支持存储实体、关系和观察，让 AI 记住对话中的重要信息"
      },
      "sequential-thinking": {
        "name": "@modelcontextprotocol/server-sequential-thinking",
        "description": "顺序思考工具，帮助 AI 将复杂问题分解为多个步骤，逐步深入思考"
      },
      "context7": {
        "name": "@upstash/context7-mcp",
        "description": "Context7 文档搜索工具，提供最新的库文档和代码示例，配置 key 会有更高限额"
      }
    }
  }
}
