Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the setLocale method to switch languages, the refresh will fall back #3355

Closed
sooooooooooooooooootheby opened this issue Feb 14, 2025 · 0 comments

Comments

@sooooooooooooooooootheby

Environment

  • Operating System: Linux
  • Node Version: v18.20.3
  • Nuxt Version: 3.15.4
  • CLI Version: 3.21.1
  • Nitro Version: 2.10.4
  • Package Manager: [email protected]
  • Builder: -
  • User Config: modules, i18n, compatibilityDate
  • Runtime Modules: @nuxtjs/[email protected]
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/nuxt-starter-vjjmwcvt?file=nuxt.config.ts

Describe the bug

"I followed the method in the docs and used the setLocale method to change the language to fr, but after refreshing, the language reverts to en.

I checked the developer tools and found that the setLocale method successfully changed the i18n_redirected value in the cookie to fr, but after refreshing, it switches back to en."

Additional context

No response

Logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant