by javaht
Claude Desktop Chinese Patch (macOS & Windows & Linux)
# Add to your Claude Code skills
git clone https://github.com/javaht/claude-desktop-zh-cnGuides for using ai agents skills like claude-desktop-zh-cn.
See how claude-desktop-zh-cn compares with popular alternatives.
claude-desktop-zh-cn is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by javaht. Claude Desktop Chinese Patch (macOS & Windows & Linux). It has 8,414 GitHub stars.
claude-desktop-zh-cn's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/javaht/claude-desktop-zh-cn" and add it to your Claude Code skills directory (see the Installation section above).
claude-desktop-zh-cn is primarily written in PowerShell. It is open-source under javaht on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh claude-desktop-zh-cn against similar tools.
No comments yet. Be the first to share your thoughts!
Available after the catalog security scan passes.
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
一个用于 Claude Desktop 的本地中文界面补丁,支持简体中文、繁體中文(台灣)和繁體中文(香港)。
macOS 双击 install-mac.command;Windows 双击 install-windows.bat 后按 UAC 提示授权;Linux(deb 包安装)在终端运行 ./install-linux.sh。脚本会给 Claude Desktop 添加中文语言选项并安装中文界面资源。
本项目支持官方账号和第三方 API,但不同安装模式覆盖的界面与 Cowork 兼容性不同,请先阅读下方的模式说明。第三方 API 配置可参考 这篇教程。

zh-CN(简体中文)、zh-TW(繁體中文(台灣))、zh-HK(繁體中文(香港))。4.29+ 的前端改为 ion-dist.asar 后,脚本会解包、重打包并同步 Claude.exe 中对应的 ASAR 头哈希;同时会就地改写 app.asar(保留 unpacked/executable 等元数据,不解包重打包),把桌面词库补进并合并进 resources/i18n,让主进程菜单栏也显示中文。两者都会使原有 Authenticode 签名失效。app.asar,卸载时从备份恢复;Claude Desktop 升级后会识别版本变化并重新备份。/Applications/Claude.app。/usr/bin/python3,不存在时从 PATH 查找 python3powershell.exe);批处理入口会自动请求管理员权限sudo 权限,且为官方 deb 包安装的 Claude Desktop(资源目录 /usr/lib/claude-desktop/resources,可用环境变量 CLAUDE_RESOURCES 覆盖)install-mac.command,选择操作:
1 安装中文补丁(第三方 API 模式):安装中文资源、注册中文语言、汉化前端 bundle 与桌面壳层,并对应用做本机 ad-hoc 重签名。不改写 app.asar;官方账号登录界面请直接使用 Claude 自带的语言设置。2 恢复原样 / 卸载补丁。3 自动更新设置:输入 y 禁止自动更新,输入 n 允许自动更新。4 CC Switch skills 同步:输入 y 同步,输入 n 删除之前的同步。1=简体中文,2=繁體中文(台灣),3=繁體中文(香港)。1/2/3)。安装完成后 Claude 会自动重新打开。Language -> 对应的中文选项。CC Switch skills 同步会扫描 ~/.cc-switch/skills 下包含 SKILL.md 的目录,只为 Claude Desktop 中不存在的同名 skill 创建软链接并更新 skills manifest。取消同步只删除由该目录同步出的软链接和对应记录,不删除 CC Switch 源目录。
汉化会对应用做本机 ad-hoc 重签名。从 2026-08 版本起,重签时会显式写入 identifier 级别的 designated requirement(替代默认的 cdhash 级别),因此 Claude Desktop 的官方自动更新下载后可以正常安装,不会再卡在“下载完成但版本不变”。注意两点:
/Applications/Claude.app 会被官方英文版覆盖,重新运行本补丁即可恢复中文。install-windows.bat;脚本会复制安装文件到当前用户的临时目录,并弹出 UAC 管理员授权窗口。1 安装中文补丁(第三方 API 模式,例如 DeepSeek):安装中文资源、注册中文语言并汉化前端 bundle 与主进程菜单。脚本会在必要时就地改写 app.asar 补入桌面词库;Claude 4.29+ 会重建 ion-dist.asar 并更新 Claude.exe 中对应的完整性哈希,原有 Authenticode 签名会失效;同时脚本会自动修补 cowork-svc.exe 的客户端签名校验分支,彻底解决 Cowork 工作区因签名失效报 RPC pipe closed 的问题(卸载时自动恢复官方原包)。安装后 English 界面同样会显示中文(词库被合并覆盖进 en-US),切换语言无法回到纯英文,需要卸载或恢复备份才能还原。若 Claude 装在 WindowsApps 下且管理员拿不到写权限,脚本会接管该目录的所有权(所有者从 TrustedInstaller 改为 Administrators,卸载后不自动恢复,详见下文注意事项)。第三方模型需在网关或 CC Switch 中映射为 Claude/Anthropic 风格名称。2 恢复原样 / 卸载补丁。3 自动更新设置:输入 y 禁止自动更新,输入 n 允许自动更新。4 CC Switch skills 同步:输入 y 开启同步,输入 n 删除之前的同步。1=简体中文,2=繁體中文(台灣),3=繁體中文(香港)。4.29+ 的 ion-dist.asar 会先解包到临时目录,完成汉化后再重打包并更新 Claude.exe 内的 ASAR 头哈希。如果没有自动切换,打开左下角账号菜单,选择 Language -> 对应的中文选项。商店版(Microsoft Store / MSIX)与官网安装包都受支持。安装器会自动识别 Claude、AnthropicPBC.Claude 等包名变化,也会跳过升级残留的旧 app-* 目录。
./install-linux.sh,选择操作:
1 安装中文补丁:安装中文资源、注册中文语言,并修改 app.asar,包含在线页面 DOM 汉化和在线语言锁定。2 恢复原样 / 卸载补丁。1=简体中文,2=繁體中文(台灣),3=繁體中文(香港)。sudo 密码。完成后重新打开 Claude Desktop;如果没有自动切换,打开左下角账号菜单,选择 Language -> 对应的中文选项。也可以跳过菜单直接调用:./install-linux.sh install zh-CN(可选 zh-TW / zh-HK)或 ./install-linux.sh uninstall。
通过 apt 升级 Claude Desktop 会覆盖补丁,界面会变回英文。建议先更新本项目(克隆的用 git pull,下载压缩包的重新下载最新版本),再重新运行一次安装:
git pull
./install-linux.sh install zh-CN
脚本会识别 Claude Desktop 的版本变化,自动丢弃旧版本的备份并重新备份,不会把旧版 app.asar 装回去。若新版本改动了代码结构导致补丁没有生效,脚本会直接报错,请带上 Claude Desktop 版本号反馈。
install-mac.command:macOS 双击运行入口。install-windows.bat:Windows 安装 / 恢复菜单入口。install-linux.sh:Linux(deb 包)安装 / 恢复菜单入口。scripts/install_windows.ps1:Windows 汉化安装和卸载脚本。scripts/install_linux.sh:Linux(deb 包)汉化安装和卸载脚本;install-linux.sh 的菜单会调用它,也可直接带参数调用。scripts/patch_linux_asar.py:Linux 下复用 patch_claude_zh_cn.py 的 asar 补丁逻辑(伪造 macOS 目录布局 + 跳过 codesign/完整性),并在补丁后校验标记防止静默失败。scripts/patch_claude_zh_cn.py:真正执行补丁的 Python 脚本。resources/manifest.json / manifest-zh-TW.json / manifest-zh-HK.json:语言包信息。resources/frontend-zh-CN.json / frontend-zh-TW.json / frontend-zh-HK.json:Claude 前端界面中文翻译。resources/frontend-hardcoded-zh-CN.json / frontend-hardcoded-zh-TW.json / frontend-hardcoded-zh-HK.json:未走 i18n key 的前端硬编码文本映射,也用于在线账号页面的 DOM 翻译表。resources/desktop-zh-CN.json / desktop-zh-TW.json / desktop-zh-HK.json:Claude 桌面壳层中文翻译。resources/Localizable.strings / Localizable-zh-TW.strings / Localizable-zh-HK.strings:macOS 原生菜单中文资源。resources/statsig-zh-CN.json / statsig-zh-TW.json / statsig-zh-HK.json:statsig i18n 兜底资源。resources/release.json:安装入口用于检查 GitHub Releases 是否有新版的版本信息。macOS / Windows 安装时,会尝试给本地 SlashCommandMenuPopupBody 中的已知内置命令追加中文说明,例如 model 选择模型、permissions 权限模式。原英文名称与搜索高亮保留,点击后仍执行原命令;自定义技能、第三方插件命令、连接器和未知命令不强行翻译。
resources/slash-command-glosses.json:简体、繁体台湾、繁体香港的说明词表。resources/slash-command-menu-patch.json:两平台共用的组件匹配规则、唯一锚点和显示层补丁。匹配局部变量而不是固定 bundle 文件名。WARNING 并保持该菜单文件不变,其他汉化步骤继续。应用升级后可能需要更新匹配规则,语法匹配不代表兼容所有未来版本。测试只使用合成菜单和临时目录,不启动或修改已安装的 Claude,不需要管理员权限。运行需要 Python 3.10+、Node.js,以及用于检查 Windows 逻辑的 PowerShell 5.1 或 PowerShell 7:
python -I -m unittest discover -s tests -v
powershell -NoProfile -ExecutionPolicy Bypass -File tests/Test-StructuralReplacements.ps1
powershell -NoProfile -ExecutionPolicy Bypass -File tests/Test-SlashCommandMenu.ps1
powershell -NoProfile -ExecutionPolicy Bypass -File tests/Test-AsarFrontend.ps1
powershell -NoProfile -ExecutionPolicy Bypass -File tests/Test-AsarIntegrity.ps1
powershell -NoProfile -ExecutionPolicy Bypass -File tests/Test-AsarFrontendWorkflow.ps1
PowerShell 7 环境可将 powershell 替换为 pwsh。测试覆盖高风险词跳过、三地 i18n、Windows 真实 C# 快速路径与备用路径、菜单点击/高亮、语言切换、幂等、备份顺序和不兼容组件的安全跳过。合成测试不能替代完整客户端的视觉验收。
如需对已安装 Claude 的实际 ion-dist.asar 做逐文件无损往返验证,可传入包路径:
powershell -NoProfile -ExecutionPolicy Bypass -File tests/Test-AsarRoundTrip.ps1 -ArchivePath "C:\Program Files\WindowsApps\Claude_4.29.0.0_x64__pzs8sxrjxfjjc\app\resources\ion-dist.asar"
/Applications/Claude.app 到同目录,名字类似:
Claude.backup-before-zh-CN-20260424-120000.appClaude.backup-before-zh-CN-*.app 恢复为 /Applications/Claude.app,并删除其他备份。Contents/Resources/app.asar:在线账号界面由 Claude 原生提供中文,本项目不再注入 DOM 翻译、语言锁定或模型选择器补丁。4.29+ 的前端改为 Contents/Resources/ion-dist.asar:脚本会先备份原包,解包到临时 ion-dist 目录执行汉化,再按 ASAR 格式重打包并校验结构;重打包后同步 Info.plist 中 ElectronAsarIntegrity 的 Resources/ion-dist.asar 头哈希,避免应用因完整性校验失败无法加载前端。4.29 之前的目录布局保持原有逻辑。en-US.json 和随包中文翻译:
当前版本已有中文翻译的 key 会变中文,新版本新增但本包没有的 key 会保留英文,避免应用缺字段。~/Library/Application Support/Claude/config.json,设置 "locale" 为所选语言代码(zh-CN、zh-TW 或 zh-HK)。com.apple.quarantine 隔离属性。5 用 y/n 控制 Claude Desktop 自动更新:y 禁止自动更新,n 允许自动更新。若当前存在有效的 Claude-3p configLibrary,脚本会写入当前 applied 配置;否则写入 Claude Desktop enterprise policy。6 用 y/n 控制 CC Switch skills 同步:y 会把 ~/.cc-switch/skills 中缺失的 skill 软链接到 Claude Desktop 的本地 skills 目录,并更新对应 manifest.json;n 只删除之前同步产生的 CC Switch 软链接和对应 manifest 记录。该操作不需要管理员权限,不会覆盖同名 skill。resources\.zh-cn-backups 恢复旧备份,清理上一轮汉化;没有旧备份时跳过并继续安装。resources/frontend-zh-CN.json / `f