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
I've been working on updating some projects from nuxt 2 to 3, and one of them is using this module. Previously when I'd call $i18n.locales I'd get an array of objects that matched what I'd put into the nuxt config, but for some reason now I'm getting an array of strings that are just the code (ie en).
I've got the same config, and it was working briefly during the upgrade, and it's only just started happening as I'm finishing up, and I can't work out what is causing it.
I have a component where I use the locales to show a selector to the user to switch languages as needed, but I was using the name property to show it as part of the object that was returned which now doesn't work since it's a string.
Does anyone have any ideas why this could happen? I'm on rc9, but I've also had it on rc5 that I was using when first upgrading.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi Everyone,
I've been working on updating some projects from nuxt 2 to 3, and one of them is using this module. Previously when I'd call $i18n.locales I'd get an array of objects that matched what I'd put into the nuxt config, but for some reason now I'm getting an array of strings that are just the code (ie en).
I've got the same config, and it was working briefly during the upgrade, and it's only just started happening as I'm finishing up, and I can't work out what is causing it.
In my nuxt.config.js I have:
I have a component where I use the locales to show a selector to the user to switch languages as needed, but I was using the name property to show it as part of the object that was returned which now doesn't work since it's a string.
Does anyone have any ideas why this could happen? I'm on rc9, but I've also had it on rc5 that I was using when first upgrading.
Beta Was this translation helpful? Give feedback.
All reactions