VitePress i18n
A VitePress plugin that translates the default theme and its search box. One short configuration covers every language a documentation site serves.
About this project
VitePress i18n translates the parts of a VitePress site the default theme writes itself — the navigation labels, the outline heading, the previous and next links, the last-updated line and the search interface — so a multilingual documentation site does not begin with a block of theme configuration copied once per language.
One wrapper function takes the locales a site supports and returns the configuration VitePress expects, with every locale filled in. Thirteen languages are carried today, English, Korean, Chinese, Japanese, Spanish, Portuguese, Russian, German and French among them, and any string can still be overridden where a project words something its own way.
The package has zero dependencies, ships TypeScript declarations, tracks the current VitePress release, and can be dropped into as many documentation sites as an organisation keeps without the same translation table being maintained in each of them.
Features
Documentation site
TypeScript types
Multiple languages
Verified by tests
No dependencies
