One of the locales messages not loading with lazy load #2284
-
I've been using the lib since the v8 beta. It has been working great with I have a scaffolding tool to create the nuxt app templates, so each time the configuration is the same. Today I decided trying it to help someone who had a different issue. And I noticed the messages from So I started to play with the config in Then I decided setting So I'm wondering now if the lazy loading logic is failing in this version, or if I have to "force it" to load now. Checked the methods in It works under 2 circumstances:
I18n Nuxt Configi18n: {
langDir: 'lang',
lazy: true,
defaultLocale: 'en-US',
locales: [
{
code: 'en-US',
name: 'English (United States)',
file: 'en-US.json',
},
{
code: 'es-ES',
name: 'Español (España)',
file: 'es-ES.json',
}
]
} Locale Files
{
"message": "Hello Locale"
}
{
"message": "Hola Localización"
} EnvironmentOS: Windows 11 Home latest Final WordsAny information will be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Solved?Apparently the solution was to set Makes no sense because I'm already defining the locales by code and filename... But my |
Beta Was this translation helpful? Give feedback.
related issue #2192