Open dungsil opened 2 years ago
@dungsil seems you are missing vueI18n.locales
with translations
@razbakov The file locales/en-US.yml
exists.
@dungsil what's the content of that file? Does it have key "meta.title"
? Try to rename that file to en.yml
@razbakov If I do that, it works, but not i want that's solution. In the README it is marked as mutable and I want this config to work.
@dungsil Concerning en-US.yml
and en.yml
check languages of your browser. I guess i18n module takes the preferred language of your browser.
Please elaborate on your last question. I don't understand the problem. I thought your initial question was about error [intlify] Not found 'meta.title' key in 'en' locale messages.
.
How is mutable
connected to that context?
@razbakov
A value of ko
or ko-KR
must be used to work as the browser's default locale. (in my case)
My guess is that this value is probably used as is, not overwritten.
I am submitting an issue in the nature of a bug report and not a question.
As the title suggests, the vueI18n.locale option does not work.
The option key localeDir
should be outside vueI18n
, at the root of intlify
actually.
export default defineNuxtConfig({
buildModules: ['@intlify/nuxt3'],
intlify: {
localeDir: 'locales',
vueI18n: {
locale: 'en-US',
fallbackLocale: 'en-US',
}
}
})
Project info:
Config:
Console log:
[intlify] Not found 'meta.title' key in 'en' locale messages.