[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-2312":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":9,"pushedAt":9,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":15,"starSnapshotCount":15,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},2312,"claude-desktop-zh-cn","javaht\u002Fclaude-desktop-zh-cn","javaht","Claude Desktop Chinese Patch (macOS & Windows)",null,"Rust",2458,141,8,3,0,389,963,2215,1167,28.46,false,"main",true,[],"2026-06-12 02:00:40","# Claude Desktop 中文补丁\n\n一个用于 Claude Desktop 的中文界面汉化补丁，支持简体中文、繁体中文（中国台湾）和繁体中文（中国香港）。\n\nmacOS 可双击 `install-mac.command`，Windows 可右键管理员运行 `install-windows.bat`，给 Claude Desktop 添加中文语言选项，并安装中文界面资源。\n\n本汉化方案支持使用 API 和官方订阅的方式。\n\n\n**遇到问题请及时反馈，欢迎扫码加入 claude desktop 交流。**\n\n\u003Cimg src=\"docs\u002Fimages\u002Fwechat-groups.jpg\" alt=\"claude desktop 交流群二维码\" width=\"360\">\n\n## 界面截图\n\n![Claude Desktop 中文界面截图](docs\u002Fimages\u002Fclaude-desktop-zh-cn-home.png) ![Claude Desktop 中文设置界面截图](docs\u002Fimages\u002Fclaude-desktop-zh-cn-settings.png)\n\n\u003Cdiv align=\"center\">\n\n\n\n\u003C\u002Fdiv>\n\n## 功能特点\n\n- 一键安装 Claude Desktop 中文界面资源，支持 macOS 和 Windows。\n- 支持三种中文变体：`zh-CN`（简体中文）、`zh-TW`（繁体中文（中国台湾））、`zh-HK`（繁体中文（中国香港））。\n- 自动给 Claude 前端语言白名单加入当前选择的中文变体。\n- 会修改 `app.asar` 的安装模式可对在线账号登录后的 `claude.ai` 页面做显示层 DOM 翻译；该逻辑只改界面文本和语言状态，不改第三方 API、网关、模型路由或请求内容。\n- macOS 自动合并当前 Claude 版本的英文语言文件与随包中文翻译。\n- 新版本新增但暂未翻译的字段会保留英文，避免界面缺失文本。\n- macOS 可绕过新版 Claude Desktop 对 3P gateway 模型名的本地 Anthropic 校验，避免 `deepseek-v4-pro` \u002F `kimi-*` 等模型名导致配置整体失效。\n- Windows 安装脚本会直接备份并修改当前 Claude Desktop 的资源文件；卸载时从备份恢复。注意：修改 `app.asar` 后需要同步改写 `Claude.exe` 内嵌完整性哈希，这会破坏 Authenticode 签名；Cowork 沙箱\u002F截图工作区需要签名验证，建议需要 Cowork 时选择 Windows 模式 1，并在网关或 ccswitch 中做模型别名映射。\n- macOS 安装前自动备份原始 `\u002FApplications\u002FClaude.app`。\n- 自动写入 Claude 用户配置，将语言设置为所选中文变体。\n\n## 适用环境\n\n- macOS 或 Windows\n- 已安装 Claude Desktop\n- macOS 需要系统自带 Python 3（通常路径为 `\u002Fusr\u002Fbin\u002Fpython3`）\n- Windows 需要 PowerShell，并建议以管理员权限运行\n\n## 使用方式\n\n### macOS\n\n1. 退出 Claude Desktop。\n2. 下载或克隆本项目。\n3. 双击 `install-mac.command`，选择安装中文补丁、安全模式安装或恢复原样 \u002F 卸载补丁。\n4. 安装时选择要安装的语言（1=简体中文，2=繁体中文（中国台湾），3=繁体中文（中国香港））。安全模式同样支持三种中文，并跳过结构性 `app.asar` 补丁；仅保留等长菜单汉化补丁。\n5. 按提示输入 Mac 登录密码。\n6. Claude 会自动重新打开。\n7. 如果没有自动切换，打开左下角账号菜单，选择 `Language` -> 对应的中文选项。\n\n### Windows\n\n1. 退出 Claude Desktop。\n2. 下载或克隆本项目。\n3. 右键 `install-windows.bat`，选择以管理员身份运行。\n4. 先选择安装模式：\n   - `1` 安装中文补丁（Cowork 兼容模式，跳过 `app.asar` 补丁；第三方模型请用网关或 ccswitch 别名映射）\n   - `2` 安装中文补丁（官方账号登录模式：仅启用 Claude.ai 登录 \u002F 在线页面汉化，不修改第三方模型名校验）\n   - `3` 安装中文补丁（第三方 API 实验模式：包含模式 2，并去除 3P 模型名限制；Cowork 沙箱\u002F截图工作区可能不可用）\n   - `4` 恢复原样 \u002F 卸载补丁\n5. 安装时再选择语言：\n   - `1` 简体中文\n   - `2` 繁体中文（中国台湾）\n   - `3` 繁体中文（中国香港）\n6. 脚本会备份当前 Claude Desktop 资源，写入本仓库 `resources` 目录里的中文 JSON，补齐硬编码界面文本，并重启 Claude Desktop。选择模式 1 时会跳过 `app.asar` 补丁，更适合需要 Cowork\u002F截图工作区的场景。选择模式 2 或 3 时会直接修改当前 Claude 的 `app.asar`，卸载时从备份恢复。\n7. 如果没有自动切换，打开左下角账号菜单，选择 `Language` -> 对应的中文选项。\n\n\n## 文件说明\n\n- `install-mac.command`：macOS 双击运行入口。\n- `install-windows.bat`：Windows 安装 \u002F 恢复菜单入口。\n- `scripts\u002Finstall_windows.ps1`：Windows 汉化安装和卸载脚本。\n- `scripts\u002Fpatch_claude_zh_cn.py`：真正执行补丁的 Python 脚本。\n- `resources\u002Fmanifest.json` \u002F `manifest-zh-TW.json` \u002F `manifest-zh-HK.json`：语言包信息。\n- `resources\u002Ffrontend-zh-CN.json` \u002F `frontend-zh-TW.json` \u002F `frontend-zh-HK.json`：Claude 前端界面中文翻译。\n- `resources\u002Fdesktop-zh-CN.json` \u002F `desktop-zh-TW.json` \u002F `desktop-zh-HK.json`：Claude 桌面壳层中文翻译。\n- `resources\u002FLocalizable.strings` \u002F `Localizable-zh-TW.strings` \u002F `Localizable-zh-HK.strings`：macOS 原生菜单中文资源。\n- `resources\u002Fstatsig-zh-CN.json` \u002F `statsig-zh-TW.json` \u002F `statsig-zh-HK.json`：statsig i18n 兜底资源。\n\n## macOS 脚本会做什么\n\n- 安装时备份当前 `\u002FApplications\u002FClaude.app` 到同目录，名字类似：\n  `Claude.backup-before-zh-CN-20260424-120000.app`\n- 恢复 \u002F 卸载时选择同目录下最早的 `Claude.backup-before-zh-CN-*.app` 恢复为 `\u002FApplications\u002FClaude.app`，并删除其他备份。\n- 复制 Claude.app 到临时目录并打补丁。\n- 给前端语言白名单加入当前选择的中文变体。\n- 对 `Contents\u002FResources\u002Fapp.asar` 做等长补丁，关闭 3P gateway 启动阶段的 `inferenceModels` Anthropic 名称校验；安全模式会跳过这一步。\n- 安全模式仍会对主进程菜单中的硬编码英文做等长汉化补丁，覆盖开发者菜单等少量不走资源文件的菜单项。\n- 普通安装模式会在在线账号登录 \u002F 聊天页面注入显示层 DOM 翻译，覆盖聊天、项目、Artifacts 等远程页面；安全模式会跳过此项，因为它需要修改 `app.asar`。\n- 合并当前 Claude 版本的 `en-US.json` 和随包中文翻译：\n  当前版本已有中文翻译的 key 会变中文，新版本新增但本包没有的 key 会保留英文，避免应用缺字段。\n- 写入 `~\u002FLibrary\u002FApplication Support\u002FClaude\u002Fconfig.json`，设置 `\"locale\"` 为所选语言代码（`zh-CN`、`zh-TW` 或 `zh-HK`），并在 `claude.ai` 页面加载前同步其前端语言状态。\n- 对修改后的 Claude.app 及其内部 app\u002Fframework\u002F原生二进制做一致的本机 ad-hoc 重签名，并清除 `com.apple.quarantine` 隔离属性。\n- 重新启动 Claude。\n\n## Windows 脚本会做什么\n\n- 查找 Windows 版 Claude Desktop 安装目录。\n- 修改前备份将被改动的前端 JS bundle、`app.asar` 和 `Claude.exe` 到 `resources\\.zh-cn-backups`。\n- 复制本仓库现有中文资源，不使用其他语言包项目里的 JSON：\n  - `resources\u002Ffrontend-zh-CN.json` \u002F `frontend-zh-TW.json` \u002F `frontend-zh-HK.json` -> `ion-dist\\i18n\\` 对应语言代码 `.json`\n  - `resources\u002Fdesktop-zh-CN.json` \u002F `desktop-zh-TW.json` \u002F `desktop-zh-HK.json` -> `resources\\` 对应语言代码 `.json`\n  - `resources\u002Fstatsig-zh-CN.json` \u002F `statsig-zh-TW.json` \u002F `statsig-zh-HK.json` -> `ion-dist\\i18n\\statsig\\` 对应语言代码 `.json`\n- 给前端语言白名单加入当前选择的中文变体。\n- 汉化前端 bundle 中未走 i18n JSON 的硬编码界面文本，例如侧边栏入口、配置页标签和模型选择项。\n- 官方账号登录模式和第三方 API 实验模式会在在线账号登录 \u002F 聊天页面注入显示层 DOM 翻译，覆盖聊天、项目、Artifacts 等远程页面；Cowork 兼容模式会跳过此项，因为它需要修改 `app.asar`。\n- 第三方 API 实验模式会对 unpackaged 版本的 `resources\\app.asar` 做等长补丁，关闭 3P gateway 启动阶段的 `inferenceModels` Anthropic 名称校验，并同步更新 asar 内部文件完整性信息和 `Claude.exe` 内嵌的 asar header hash。\n- Windows 的模式 2 和 3 会直接改写当前 Claude 的 `app.asar` 并同步改写 `Claude.exe` 内嵌完整性哈希，导致 Authenticode 签名 `HashMismatch`；Cowork VM 服务可能拒绝客户端并报 `RPC pipe closed`。如果需要 Cowork 沙箱\u002F截图工作区，请使用模式 1，并通过网关\u002Fccswitch 模型别名映射解决第三方模型名校验。\n- 写入 Windows 用户配置，将语言设置为所选语言代码（`zh-CN`、`zh-TW` 或 `zh-HK`）。\n- 重启 Claude Desktop。\n\n## 卸载 \u002F 恢复\n\n执行脚本，选择恢复即可。\n\n## Star History\n\n[![Star History Chart](https:\u002F\u002Fapi.star-history.com\u002Fsvg?repos=javaht\u002Fclaude-desktop-zh-cn&type=Date)](https:\u002F\u002Fwww.star-history.com\u002F#javaht\u002Fclaude-desktop-zh-cn&Date)\n\n## 免责声明\n\n本项目为非官方中文补丁，仅修改本机 Claude Desktop 的本地资源文件。Claude Desktop 更新后资源结构可能变化，若补丁失败，请先更新本项目或重新运行安装脚本。\n","该项目是一个为 Claude Desktop 提供中文界面汉化的补丁，支持简体中文、繁体中文（中国台湾）和繁体中文（中国香港）。其核心功能包括一键安装中文界面资源，自动将所选中文变体添加到 Claude 前端语言白名单，并对在线账号登录后的 `claude.ai` 页面进行显示层的 DOM 翻译。技术上，通过修改 `app.asar` 文件实现界面文本翻译，但不改动第三方 API 或模型路由等关键内容，确保安全性和稳定性。适用于已安装 Claude Desktop 的 macOS 和 Windows 用户，特别是希望在使用过程中能够看到熟悉语言环境的用户。macOS 用户需系统自带 Python 3 支持，而 Windows 用户则需要以管理员权限运行 PowerShell 脚本。",2,"2026-06-11 02:49:25","CREATED_QUERY"]