You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor i18n, translation, and MDX config for multi-language support
Reworks translation file handling in the CLI to use a dot-suffix convention and dynamic language configuration from docs.site.json. Adds a translations utility for UI strings, updates layouts to use dynamic translations, and improves the root proxy to redirect based on Accept-Language. Adds remark-directive and admonition plugins to MDX config for enhanced markdown support. Cleans up MDX component injection and updates dependencies accordingly.
The `translate` command reads English documentation from `content/docs` and generates Chinese translations in `content/docs-cn`.
42
+
The `translate` command reads English documentation from `content/docs/*.mdx` and generates Chinese translations as `*.cn.mdx` files in the same directory using the dot parser convention.
43
43
44
44
**Prerequisites:**
45
45
You must set the following environment variables (in `.env` or your shell):
0 commit comments