Skip to content

feat(website): activate zh-CN locale#177

Merged
montfort merged 1 commit into
mainfrom
feat/website-zh-CN-locale-activation
May 19, 2026
Merged

feat(website): activate zh-CN locale#177
montfort merged 1 commit into
mainfrom
feat/website-zh-CN-locale-activation

Conversation

@montfort
Copy link
Copy Markdown
Contributor

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:

  1. This PR — locale activation (config + UI strings + chrome + minimum docs)
  2. Follow-up — 14 blog post translations + excerpts (depends on this)

Changes:

  • `docusaurus.config.ts` — add `'zh-CN'` to `locales` + label `简体中文`
  • `scripts/sync-docs-i18n.ts` — add `'zh-CN'` to the docs mirror
  • `website/i18n/zh-CN/code.json` — translated UI strings (hero, workflow, features, ~420 lines)
  • `website/i18n/zh-CN/docusaurus-theme-classic/{navbar,footer}.json` — chrome overrides
  • `website/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

Test plan

🤖 Generated with Claude Code

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>
@montfort montfort merged commit d89ba4d into main May 19, 2026
1 check passed
@montfort montfort deleted the feat/website-zh-CN-locale-activation branch May 19, 2026 07:20
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant