Implementation:
- use
prefix_except_default
orprefix_and_default
- add locale switcher outside of
<NuxtPage>
- build SSG (
nuxt generate
/pnpm run generate
)
Steps to reproduce the issue:
- Change browser locale to
de-DE
and open the page. - It should redirect to
de
version of the page (http://localhost:3000/de
). - Click on
EN
to switch to English version of the page. - The error: See that
EN
is disappears (it should not) and also in the console you will see an error:TypeError: t is null