Skip to content

Comments

feat: add Simplified Chinese (zh-Hans) i18n support#12

Open
ZacharyZcR wants to merge 1 commit intoTermix-SSH:mainfrom
ZacharyZcR:feat/i18n-zh-hans
Open

feat: add Simplified Chinese (zh-Hans) i18n support#12
ZacharyZcR wants to merge 1 commit intoTermix-SSH:mainfrom
ZacharyZcR:feat/i18n-zh-hans

Conversation

@ZacharyZcR
Copy link
Member

Summary

  • Add Simplified Chinese (zh-Hans) locale with locale dropdown switcher in navbar
  • Translate all 25 documentation pages (17 root-level + 8 install subdocs), excluding auto-generated API docs
  • Translate UI strings: navbar, footer, sidebar labels, and homepage component text
  • Internationalize homepage React components using Docusaurus <Translate> and translate()
  • Fix duplicate sidebar translation keys in auto-generated API sidebar (docs/api/sidebar.ts)

Test plan

  • Run npm run build to verify both English and Chinese locales build without errors
  • Run npm run serve and verify locale dropdown switches between English and Chinese
  • Verify all 25 translated doc pages render correctly under /zh-Hans/
  • Verify English docs remain unaffected
  • Verify API docs are accessible in both locales (untranslated, fallback to English)
  • Verify homepage hero text and feature cards display Chinese translations

- Add zh-Hans locale to docusaurus.config.ts with locale dropdown
- Translate all 25 documentation pages (17 root + 8 install subdocs)
- Translate navbar, footer, sidebar labels, and homepage component strings
- Internationalize homepage components with <Translate> and translate()
- Fix duplicate sidebar translation keys in API sidebar
- API docs (auto-generated) intentionally excluded from translation
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