feat(website): activate zh-CN locale#177
Merged
Merged
Conversation
Add zh-CN as a third site locale. The locale is wired up but ships
empty for blog content; posts will fallback to English until the
companion translations PR lands.
Changes:
- docusaurus.config.ts — add 'zh-CN' to locales + label 简体中文
- scripts/sync-docs-i18n.ts — add 'zh-CN' to the docs mirror
- i18n/zh-CN/code.json — translated UI strings
- i18n/zh-CN/docusaurus-theme-classic/{navbar,footer}.json — chrome overrides
- i18n/zh-CN/docusaurus-plugin-content-blog/{authors,options}.json — blog plugin config (author 'jose' only; claude-opus-47 deliberately omitted from this locale)
- docs/i18n/zh-CN/intro.md — minimum docs landing so the locale renders
Verified with `npm run build`: exit 0, build/zh-CN/index.html generated.
Remaining warnings are pre-existing cross-tree links (tracked
separately) and one anchor fixed in a parallel PR.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
3 tasks
4 tasks
montfort
added a commit
that referenced
this pull request
May 20, 2026
When the es locale was activated (PR #163) only code.json was translated. The navbar items (Docs, Blog, GitHub), footer columns and links (Adoption Guide, CLI Reference, Workflows, Organization, ...), copyright, and blog plugin SEO/sidebar fell through to English fallbacks. zh-CN already shipped these (PR #177); this brings es to parity. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds `zh-CN` (简体中文) as a third site locale, wired end-to-end but shipping with no translated blog posts yet — posts fall back to English until the companion translations PR lands.
This is the first of two PRs splitting the long-lived `wip-zh-CN` branch:
Changes:
Test plan
🤖 Generated with Claude Code