LifeActor/Claude_zh-CN_LanguagePack
À propos
Claude Code 中文语言包/Claude Code Desktop中文语言包/Claude Code App中文语言包/Claude Code Windows中文语言包/Claude Code macOS中文语言包/Claude Code Desktop App中文语言包
Outils de développementProgression mesurée des étoiles
- in 24h
- +1
- in 7 days
- +3
- in 15 days
- +5
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalClaude Desktop 简体中文语言包
应该是全网深度校验独一份 - 2026-07-05 Claude Desktop 1.18286.0.0
为 Claude Desktop(Windows / macOS)界面添加简体中文支持。
本仓库由 LifeActor 在 Pheo Hu 的派生版本基础上迭代维护,原始语言包由 RICK 创建(原帖)。新增了基于 AI 的翻译工具链,支持对全量界面文案进行增量翻译、质量检查与安装前废弃 key 清理。
前提
- Claude Desktop 已安装
- Windows 10/11 或 macOS
- macOS 需要 Python 3
安装
Windows
- 下载本仓库(git clone 或 zip)
- 完全关闭 Claude Desktop
- 双击
安装中文语言包.bat,在管理员权限弹窗中点击「是」 - 安装完成后,在 Claude 设置中将语言切换为「中文(简体)」
macOS
- 下载本仓库
- 完全关闭 Claude Desktop
- 双击
安装中文语言包.command,输入登录密码 - 脚本会自动备份、补丁、重签名并拉起 Claude
.command 无法双击时先执行:
chmod +x ./安装中文语言包.command ./卸载中文语言包.command
卸载
- Windows:双击
卸载中文语言包.bat - macOS:双击
卸载中文语言包.command(恢复最近一次完整备份)
Cowork 3P 模式
官方订阅账号不支持直接登录,需使用 3P 模式:
- 打开 Claude Desktop,不要登录账号
帮助 → 故障排除 → 启用开发者模式开发者 → 配置第三方推理- 填写 Gateway base URL(结尾不带
/v1)、API key 和模型列表 - 点击「本地应用」,Claude 重启后即可使用
命令行用法
Windows(PowerShell,需管理员)
powershell -ExecutionPolicy Bypass -File .\LanguagePack.ps1 # 安装
powershell -ExecutionPolicy Bypass -File .\LanguagePack.ps1 -Uninstall # 卸载
powershell -ExecutionPolicy Bypass -File .\LanguagePack.ps1 -Extract # 提取英文原文
macOS
sudo python3 ./LanguagePack.mac.py --user-home "$HOME" --launch # 安装
sudo python3 ./LanguagePack.mac.py --uninstall --user-home "$HOME" --launch # 卸载
sudo python3 ./LanguagePack.mac.py --extract --app /Applications/Claude.app # 提取英文原文
AI 翻译工具链
由 LifeActor 新增,用于在 Claude Desktop 更新后增量补全新增文案。
环境准备
pip install openai python-dotenv
在项目根目录创建 .env:
OPENAI_BASE_URL=https://api.openai.com/v1
OPENAI_API_KEY=sk-xxxxxxxx
OPENAI_MODEL=gpt-4o
兼容任何 OpenAI 协议的推理端点(DeepSeek、阿里云百炼、OpenRouter 等)。
翻译流程
# 1. 从当前安装的 Claude 提取英文原文和翻译模板
powershell -ExecutionPolicy Bypass -File .\LanguagePack.ps1 -Extract # Windows
sudo python3 ./LanguagePack.mac.py --extract --app /Applications/Claude.app # macOS
# 2. 拆分 ion-dist 大文件(首次或模板更新后执行)
python split_template.py
# 3. AI 翻译
python translate_ai.py desktop-shell
python translate_ai.py statsig
python translate_ai.py ion-dist all # 全部分片,--workers N 控制并发数
# 4. 质量检查(可选)
python translate_ai.py check all # 检查所有目标,日志写入 check-reports/
python translate_ai.py check all --fix # 删除问题条目,下次翻译时重新生成
python translate_ai.py check all --no-log # 不写日志
python translate_ai.py check all --log-dir ./reports # 自定义日志目录
# 5. 安装前清理旧版本残留 key
python translate_ai.py clean all
# 6. 重新运行安装脚本使更改生效
check 检测项:回退(译文==原文)、缺失、纯英文、译文膨胀、ICU 结构不一致、占位符丢失/多余、HTML 标签丢失/多余、转义序列不匹配。品牌名、URL、路径、纯技术词等不需要翻译的条目会自动跳过,不计入问题。每次检查结果自动写入 check-reports/ 目录(JSON 格式,含完整原文/译文对照)。
clean all 会删除 translated-zh-CN 中存在、但当前 translation-template 已不存在的旧 key,避免把 Claude 旧版本已经弃用的文案安装到目标环境。
常见问题
安装后界面没变中文:确认 Claude 已重启,并在设置中手动切换语言为「中文(简体)」。
脚本报权限错误:Windows 需管理员权限;macOS 需要 sudo、codesign、xattr。
Claude 更新后中文消失:更新会覆盖资源文件,重新运行安装脚本即可。
macOS 提示「已损坏,无法打开」:权限问题,参考解决方案。
许可
CC BY-NC-SA 4.0。仅供个人学习使用,本项目与 Anthropic 无关。
致谢
- 原始语言包:RICK(原帖)
- 基础派生版本:Pheo Hu
- 3P 模式教程:开启 Claude 3P 模式、自定义模型映射
- Linux Do 社区
Explorer des projets similaires
Chargement…