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
Alternatively, to avoid the need for multiple builds, the locale domains can be overridden via runtime environment variables. The variable name should follow the format NUXT_PUBLIC_I18N_LOCALES_{locale code}_DOMAIN
However, based on my testing, this doesn't seem to work. The domains provided through .envdo appear in the lang switcher (result of switchLocalePath() call), however, they don't switch the locale.
I'm not sure if I'm just doing something wrong or if this is a bug, but regardless, this issue either needs fixing or the documentation needs to be updated. I'd be happy to update the docs if necessary.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
Darwin
v20.9.0
3.11.2
3.11.1
2.9.6
[email protected]
-
devtools
,modules
,i18n
@nuxtjs/[email protected]
-
Reproduction
https://stackblitz.com/edit/nuxt-starter-dx8kkg?file=nuxt.config.ts
The reproduction will not work on stackblitz due to using the custom domains. Please clone it & test locally.
Describe the bug
The documentation says:
However, based on my testing, this doesn't seem to work. The domains provided through
.env
do appear in the lang switcher (result ofswitchLocalePath()
call), however, they don't switch the locale.I'm not sure if I'm just doing something wrong or if this is a bug, but regardless, this issue either needs fixing or the documentation needs to be updated. I'd be happy to update the docs if necessary.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: