nuxt-modules / i18n

I18n module for Nuxt
https://i18n.nuxtjs.org
MIT License
1.71k stars 478 forks source link

Locale is back to default upon navigating #2981

Closed J43fura closed 3 months ago

J43fura commented 3 months ago

Environment

"nuxt": "^3.10.3",
"nuxt-primevue": "^0.3.1"

Reproduction

Set the local in app.vue and then navigate to another page E.g.:

const { setLocale, getBrowserLocale } = useI18n();
onNuxtReady(() => {
  setLocale(getBrowserLocale() || 'en');
  }

Describe the bug

Locale is back to default upon navigating

Additional context

No response

Logs

No response

J43fura commented 3 months ago