vue-cli-plugin-i18n
vue-cli-plugin-i18n copied to clipboard
Double configuration for `locale`, `fallbackLocale` & `localeDir`
The locale, the fallbackLocale and the localeDir is defined in i18n.js as well as in the pluginOptions of vue.config.js. How come? What's the benefit?
I've now removed those properties from vue.config.js and it still works as expected. I generated the project with SFC enabled.
Having the same question. Also in the Vue UI there is seemingly another definition. I set everything to locale de and fallback en (vue.config.js and .env file and also the fallbacks in i18n.js) and in the Vue UI under the Localizations tab the default language is still en, but de is also available there.
And it seems changing pluginOptions.i18n.locale or pluginOptions.i18n.fallbackLocale in vue.config.js has no effect. The value always refers to i18n.js.
But removing pluginOptions.i18n completely from vue.config.js yields TypeError: Cannot read property 'i18n' of undefined error..
I've tried pluginOptions.i18n.locale and pluginOptions.i18n.fallbackLocale in v2.3.1. It still has no effect for the locale of the project or vue ui.