docs(zh): translate all 81 documentation pages into Simplified Chinese
Merged
KA
14d ago+25380+25380+01234567890123456789012345678901234567890123456789-18-18-01234567890123456789
Adds a Simplified Chinese translation of the docs: docs/zh/, one page for each of the 81 English pages at the same path, next to the Japanese translation in docs/ja/.
- Pages.
docs/zh/<path>.mdxtranslatesdocs/<path>.mdx. Prose, frontmatter, and component titles are translated; code blocks, inline code, URLs, link targets, and anchors stay as on the English page. The tab and group labels are indocs/zh/navigation.json. - Style and glossary.
docs/zh/README.mdholds the rules, the style (你, full-width punctuation, a space between Chinese and Latin text, where a line may wrap), and the glossary. Error categories, API names, and literals such astestorconfigurationstay in English. - Checks.
scripts/check-docs-translations.tsandscripts/check-docs-anchors.tsnow coverzhas well asja, so every Chinese page keeps its English page's outline, ids, and code blocks byte for byte. - Kept out. The npm package (
packages/e2e/scripts/prepare-build.ts), Context7 (context7.json), and the skill wording test (packages/e2e/tests/unit/skill.test.ts) skipdocs/zh/as they skipdocs/ja/. - Contributor docs.
AGENTS.mdand theauthoring-docsskill's "Translations" section now cover both languages.
The pages were translated with GPT-6 Astra (the glossary and quickstart first, then the remaining pages in parallel against that glossary), then reviewed in a fresh context. The review fixes kept the error categories in English and aligned three terms (setup test 准备测试, blocked 受阻, schema).
Verified
Ran it locally: yes
pnpm checkpasses, includingdocs translations: 162 translated pages match their English outline and code,docs anchors: 3561 anchor links across 243 pages resolveanddocs mdx: 243 pages compile as standard MDX.- Built the docs site in production with this branch's
docs/and opened/docs/zh. Every page renders, including/docs/zh/reference/configand/docs/zh/reference/errors,/docs/zh/quickstart.mdserves the Chinese markdown, and the pages carryhreflang="zh-Hans"alternates. The language menu opens the same section in Chinese, Japanese, and English.
| Desktop, language menu open | Mobile, 390px |
|---|---|