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
As per the current draft of the v3, to create a multi-locale website one needs to build corresponding folders as follows:
en
ru
etc.
Also, as far as I can see, the default locale is retrieved from the NEXTRA_DEFAULT_LOCALE env variable.
It looks like there is no way to have a default locale without a locale prefix in the route, so, if "en" is the default locale, the path will still be prefixed with /en/ and the locale is just guessed from the first segment of the path.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi Nextra Team,
As per the current draft of the v3, to create a multi-locale website one needs to build corresponding folders as follows:
Also, as far as I can see, the default locale is retrieved from the NEXTRA_DEFAULT_LOCALE env variable.
It looks like there is no way to have a default locale without a locale prefix in the route, so, if "en" is the default locale, the path will still be prefixed with /en/ and the locale is just guessed from the first segment of the path.
Is that the plan moving forward?
Beta Was this translation helpful? Give feedback.
All reactions