DuxtLocale
The language switcher.
Nothing at all when the site serves one language, a dropdown when it serves several.
Usage
<DuxtLocale />
API
No props. Reads locales.
Notes
Built like DuxtVersion beside it,
so a single-locale consumer never sees that duxt speaks seven languages.
It uses switchLocalePath rather than a link to the locale's root: switching
language on a page about deploying should land on that same page in the new
language, not throw the reader back to the front door.
Was this page helpful?