[Vuejs]-Change locale when the initiliazition is in external file

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.

Leave a comment