You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.
I encountered that error above and read all issue reports at kazupon/vue-i18n repo. The error happens apparently because the Vue instance is loaded before the localization.
One guy pointed to vuex-i18n, another translation lib. I gave it a shot and this worked like a charm. The best thing: I could use the generated localization files from this package with vuex-i18n. Here is my setup:
importstorefrom'./vuex';importvuexI18nfrom'vuex-i18n';Vue.use(vuexI18n.plugin,store);importLocalesfrom'./vue-i18n-locales.generated.js';Vue.i18n.add('en',Locales.en);Vue.i18n.add('de',Locales.de);// set the start locale to useVue.i18n.set(Laravel.locale);constapp=newVue({
store,// inject store into all childrenel: '#app',});
I encountered that error above and read all issue reports at kazupon/vue-i18n repo. The error happens apparently because the Vue instance is loaded before the localization.
One guy pointed to vuex-i18n, another translation lib. I gave it a shot and this worked like a charm. The best thing: I could use the generated localization files from this package with vuex-i18n. Here is my setup:
The
Laravel.locale
comes from my Layout:The text was updated successfully, but these errors were encountered: