0👍
Based on your syntax it looks like you’re still using Options API. Simply set legacy
option to true
const i18n = createI18n({
legacy: true,
...
});
Assigning to this.$i18n.locale
will work. Here’s a codesandbox if you’d like to see a full working example.
- [Vuejs]-V-model keeps showing the same data in vuejs
- [Vuejs]-How to reset Nuxt app's states upon logout?
Source:stackexchange.com