taekchef/claude-code-zh-cn
Simplified Chinese for Claude Code CLI through settings, hooks, and local patches.
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
This is an unofficial, local extension of the Claude Code CLI, not an MCP server or an API proxy. Its four layers separate what Claude Code already exposes from what must be changed on disk. The settings overlay configures language: Chinese, spinner verbs, and tips in settings.json. Hooks handle session startup, notifications, and local language-switch commands. The .claude-plugin/ manifest and plugin/ follow Claude Code's plugin model.
For hard-coded strings, the Node.js patcher uses cli-translations.json and a string-literal scanner to target display text rather than blindly replacing text in minified JavaScript. Native builds take a separate executable-processing path using node-lief. The launcher can reapply the patch after an upstream update. Starting from a clean backup and checking syntax and launch behavior keeps patch failure isolated from the settings and hook layers.
Key Capabilities & Differentiators
The configurable layer supplies 187 spinner verbs, 41 tips, a Chinese reply preference, and hook-based translations for six notification messages. /chinese and /english (or /zh and /en) are handled locally without a model request, and the selection persists across sessions. The patch layer also localizes elapsed-time text and portions of the menus, permissions UI, and help, depending on the installed build.
The v2.23.0 catalog contains 2,314 UI translation entries, up from 2,194. That is a catalog size, not coverage per executable: Claude Code 2.1.112 had 1,777 effective patch sites in a representative test. The release adds text for authorization, project permissions, background sessions, plugins, and MCP help. Targeted changes to selected macOS arm64 builds preserve skill names, directories, command arguments, MCP examples, and internal confirmation values.
Trade-offs & Limitations
Stock Claude Code avoids executable modification; native settings alone offer Chinese reply preferences and configurable waiting text without taking on binary compatibility. The full patch is useful when developers need to read menus, help, and permission prompts in Chinese. It is most mature on the older npm JavaScript build, with 2.1.112 offering the most complete coverage. Pinning that build buys coverage at the cost of staying on an older upstream release. The npm package moved to native binaries starting at 2.1.113, so npm installation alone no longer implies a cli.js patch path.
Treat native support as build-specific. Verified windows include selected macOS arm64 builds through 2.1.295 and Windows x64 builds through 2.1.289, plus Linux x64 glibc builds from 2.1.220 to 2.1.285. Linux arm64 and musl are outside native patch support. Startup checks can catch a broken patched build, but they cannot prove that every dialog is translated or behaves correctly. New builds can retain English text or skip patching altogether, and Windows needs the running executable closed before it can be replaced.
Hardware & Deployment Guide
The prerequisite is an existing Claude Code CLI. The project provides shell installers for macOS, Linux, and WSL; Windows uses install.ps1 with PowerShell 5.1+. User-scoped installation through the Claude Code plugin marketplace is another option and requires a CLI restart. For managed systems, review a local installer before running it and use doctor.sh or doctor.ps1 to diagnose the installed setup.
For native patching, v2.22.0 added automatic global installation of node-lief@1.3.2 when missing. The installer can use node-lief-1.3.2.tgz beside the script, in deps/, or at a path set by ZH_CN_NODE_LIEF_TGZ. This makes dependency installation possible offline; it does not make Claude Code inference offline. Claude Code 2.1.296 on macOS arm64 requires Node.js 24+ to validate a display module containing using syntax. v2.21.3 added targeted Windows x64 2.1.289 support and unified patch fingerprints across the installer, hooks, and doctor; v2.23.0 expanded translation coverage.
Claude Code users and teams that want Simplified Chinese menus, permission prompts, and help, and can validate the patch on their deployed builds.
You must keep vendor executables untouched, require full translation on every upstream release, or only need Chinese replies and configurable spinner text.
Quick Start & Installation
curl -fsSL https://github.com/taekchef/claude-code-zh-cn/releases/latest/download/install-remote.sh | bash
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| claude-code-zh-cn ★ | 871 | +8 | JavaScript | MIT | Simplified Chinese for Claude Code CLI through settings, hooks, and local patche |
| ponytail | 204.4k | +4.1k | JavaScript | MIT | A prompt-driven coding-agent plugin for smaller changes and focused tests. |
| rtk | 88.7k | +684 | Rust | Apache-2.0 | A local Rust CLI wrapper that trims command output before coding agents read it. |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/taekchef/claude-code-zh-cn.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about claude-code-zh-cn
Does installing through the Claude Code plugin marketplace translate the whole interface?
What hardware and runtime does the localization layer need?
Can a company deploy it internally or redistribute a localized Claude Code executable?
When is this preferable to stock Claude Code or settings-only customization?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy