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
Have lazy loading enabled and then switch between locales on frontend using the switchLocalePath helper.
What is expected ?
The vuex store locale value should update
What is actually happening?
It uses the previous locale value instead which means it lags by one locale as you switch between multiple locales
Additional comments?
I have tracked in down to the generated code in .nuxt/nuxt-i18n/middleware.js in the if statement checking if lazy loading is enabled the generated code has syncVuex(locale, messages) but it should be syncVuex(newLocale, messages)
Ace plugin btw :)
This bug report is available on Nuxt community (#c205)
The text was updated successfully, but these errors were encountered:
Version
v5.3.0
Reproduction link
https://github.com/nuxt-community/nuxt-i18n
Steps to reproduce
Have lazy loading enabled and then switch between locales on frontend using the switchLocalePath helper.
What is expected ?
The vuex store locale value should update
What is actually happening?
It uses the previous locale value instead which means it lags by one locale as you switch between multiple locales
Additional comments?
I have tracked in down to the generated code in .nuxt/nuxt-i18n/middleware.js in the if statement checking if lazy loading is enabled the generated code has syncVuex(locale, messages) but it should be syncVuex(newLocale, messages)
Ace plugin btw :)
The text was updated successfully, but these errors were encountered: