NuxtN
Nuxt12mo ago
dine

Set @nuxtjs/i18n options from module

I'm trying to use the latest @nuxtjs/i18n on a module and I'd like it to already set the default i18n options and locales for the project using this module.

Is there a way to make it work without declaring locales again in the playground nuxt.config.ts?

I created an reproduction here:
https://stackblitz.com/edit/github-5akuzomv?file=playground%2Fapp.vue,playground%2Fnuxt.config.ts%3AL3

#i18n
StackBlitz
Create a new Nuxt project, module, layer or start from a theme with our collection of starters.
Was this page helpful?