Language Switch
Updated: 4/24/2026 Words: 0 words Reading time: 0 min
This site uses the built-in VitePress locales configuration.
Current setup
rootlocale: Simplified Chineseenlocale: English- Root docs path:
/ - English docs path:
/en/
How switching works
After enabling locales in docs/.vitepress/config.mts, VitePress shows a language switcher in the top navigation.
To make a page available in English, add the translated file under docs/en/ with the same purpose as the Chinese page.
Suggested structure
docs/index.mddocs/getting-started.mddocs/en/index.mddocs/en/getting-started.md