A2UI
A2UI copied to clipboard
docs: support i18n and add Simplified Chinese (zh-CN) translation for A2UI documentation
Description
This PR adds full Simplified Chinese (zh-CN) translation support for the A2UI documentation.
Changes
-
Translation: Added translated markdown files in
docs/zh/mirroring the structure of the originaldocs/. -
Configuration: Updated
mkdocs.yamlto enable thezhlocale usingmkdocs-static-i18nplugin and added a localized navigation bar (nav_translations). -
Specification Sourcing: The translated specification files (
docs/zh/specification/*.md) directly reference the original English specification files (e.g., inspecification/v0_8/docs/) using the snippet inclusion syntax (--8<--). This ensures the technical specification remains a single source of truth while the wrapper content is localized.
Pre-launch Checklist
- [x] I signed the CLA.
- [x] I read the Contributors Guide.
- [x] I read the Style Guide.
- [x] I have added updates to the CHANGELOG.
- [x] I updated/added relevant documentation.
- [x] My code changes (if any) have tests.
If you need help, consider asking for advice on the discussion board.