nuxt-modules / i18n

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

does not redirect to the saved locale #2277

Closed pmnzt closed 1 year ago

pmnzt commented 1 year ago

Environment

nuxt 3.6.5 i18n v8.beta.13 | npm:@nuxtjs/i18n-edge

Reproduction

https://github.com/pmnzt/nuxt-i18n-repo

Describe the bug

the cookie is set to fr

opening the site does not redirect to 'fr'

switching the lang is done using

<NuxtLink  v-for="locale in availableLocales" :key="locale.code" :to="switchLocalePath(locale.code)">{{
    locale.name
  }}</NuxtLink>

Can be found in pages\index.vue

Additional context

No response

Logs

No response

kazupon commented 1 year ago

Hi! I believe this issue was fixed in #2276.

Your edge version maybe out of date in the package manager cache. Here is the list of edge versions for nuxt i18n. https://www.npmjs.com/package/@nuxtjs/i18n-edge

Could you try the latest version? 🙏

sync42johnny commented 1 year ago

Just wanted to report that I'm still experiencing the same issue with "@nuxtjs/i18n" version "^8.0.0-rc.1". I've tried updating and reinstalling, but the problem persists.

kazupon commented 1 year ago

@iboretskyi

Just wanted to report that I'm still experiencing the same issue with "@nuxtjs/i18n" version "^8.0.0-rc.1". I've tried updating and reinstalling, but the problem persists.

Could you give your minimal reproduction please?

Unless we can get a reproduction that anyone can see, we cannot go throght for good situation. We are efforting to solve the issue, but comments alone are not enough to move us forward.

RomanSkrypnik commented 1 year ago

@iboretskyi

Just wanted to report that I'm still experiencing the same issue with "@nuxtjs/i18n" version "^8.0.0-rc.1". I've tried updating and reinstalling, but the problem persists.

Could you give your minimal reproduction please?

Unless we can get a reproduction that anyone can see, we cannot go throght for good situation. We are efforting to solve the issue, but comments alone are not enough to move us forward.

Facing the same issue, here is my repro: https://monosnap.com/direct/8NeUhLLU1XtxqzerD6W8sc1NoRgGik https://github.com/RomanSkrypnik/nuxt-test-app

kazupon commented 1 year ago

@RomanSkrypnik Thank you for your reproduction!

I'm about to take a little vacation so it may take me some time to check and correct.

franzus5 commented 1 year ago

@kazupon hi there! Faced the same issue like guys mentioned

@iboretskyi

Just wanted to report that I'm still experiencing the same issue with "@nuxtjs/i18n" version "^8.0.0-rc.1". I've tried updating and reinstalling, but the problem persists.

Could you give your minimal reproduction please? Unless we can get a reproduction that anyone can see, we cannot go throght for good situation. We are efforting to solve the issue, but comments alone are not enough to move us forward.

Facing the same issue, here is my repro: https://monosnap.com/direct/8NeUhLLU1XtxqzerD6W8sc1NoRgGik https://github.com/RomanSkrypnik/nuxt-test-app

RomanSkrypnik commented 1 year ago

Any updates?

sync42johnny commented 1 year ago

@kazupon Have there been any changes?

martinszeltins commented 1 year ago

Looks like it has been fixed? Seems to be working for me (latest edge channel version)

BobbieGoede commented 1 year ago

Closing this as I'm unable to replicate this issue using the latest version, let me know if you're still experiencing this issue (with an updated minimal reproduction)!