Closed mir1198yusuf closed 2 months ago
This is a path to a file.
add a i18n.config.ts
file next to your nuxt config with your content:
export default {
... your config
};
and adjust your nuxt config like this if you want to use a custom name for the config file:
i18n: {
vueI18n: './my-crazy-i18n-config.ts'
....
}
@steffenstolze is right, configuring vue-i18n specific options was changed in v8, please refer to https://i18n.nuxtjs.org/docs/guide/migrating#deprecated-vuei18n-option-to-not-accept-createi18n-options for more details.
Environment
Build Modules: -
Reproduction
This error does not come on StackBlitz or CodeSandbox
Describe the bug
When I add i18n config to defineNuxtConfig, I get this error while adding below i18n object
nuxt.config.ts
Error on hovering
vueI18n
:Additional context
No response
Logs
No response