I18N problem
Hi, i'm having a problem with i18n config in my project.
So, here how it looks like:
And for some reason i keep getting these warnings:
But if i would pass same config not in
i18n.config.ts
, but in nuxt.config.js
just by object, everything works perfectly fine. The only reason i have to use i18n.config.ts but not the main config is because i need to use html inside by locales, which i can only allow with warnHtmlInMessage
key, which doesn't work if you pass it in nuxt.config.ts
6 Replies
I've also made a test project just for that, and it's also not working here. I really don't understand what am i doing wrong
The default folder is
locales
but you're using lang
That's why it's failing. You should move your files into locales
folder or change langDir
to lang
in i18n
optionsCheck twice: i've changed it in options, but anyway it doesn't work with
locales
folder eitherDon’t you need ‘legacy: false’ in the config?
Make a reproduction
Here is my config which is working just fine:
i18n.config.ts
nuxt.config.ts