# Repository Briefing: taekchef/claude-code-zh-cn
> Source: https://repoforai.com/repo/taekchef/claude-code-zh-cn (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/taekchef/claude-code-zh-cn
- **Official Docs / Website**: https://taekchef.github.io/claude-code-zh-cn/
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: JavaScript
- **License**: MIT
- **Engineering Health**: A (84/100 · Maintenance 35/35 · Adoption 12/25 · Releases 17/20 · License 20/20)
- **Latest Release**: v2.23.0 (2026-10-10) — https://github.com/taekchef/claude-code-zh-cn/releases
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: CLI
- **Momentum**: 871 ★ total (+0 24h / +8 7d) · 42 forks
- **Topics**: `chinese`, `claude-code`, `claude-code-plugin`, `cli`, `developer-tools`, `i18n`, `localization`, `translation`
- **When to Use**: Best for: Claude Code users and teams that want Simplified Chinese menus, permission prompts, and help, and can validate the patch on their deployed builds. Skip if: You must keep vendor executables untouched, require full translation on every upstream release, or only need Chinese replies and configurable spinner text.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Translation catalog: v2.23.0 expanded cli-translations.json from 2,194 to 2,314 entries, separate from spinner verbs and tips.
- Configurable text: 187 spinner verbs and 41 tips are managed separately; the notification hook translates six messages.
- Language switching: /zh and /en are handled locally by a hook without a model call, and the selection persists across sessions.
- Patch safeguards: The patcher starts from a clean backup and uses applicable syntax and launch checks before accepting changes.
- Native compatibility: Verified builds cover macOS arm64, Windows x64, and Linux x64 glibc; the Linux native patch does not cover arm64 or musl.
- Offline dependency delivery: The installer can use a local node-lief-1.3.2.tgz or a path supplied via ZH_CN_NODE_LIEF_TGZ.
```

## Quick Start / Clone
```bash
curl -fsSL https://github.com/taekchef/claude-code-zh-cn/releases/latest/download/install-remote.sh | bash
```
