diff --git a/client/plugins/i18n.js b/client/plugins/i18n.js index d92ddb22..bb4131ce 100644 --- a/client/plugins/i18n.js +++ b/client/plugins/i18n.js @@ -78,7 +78,7 @@ async function loadi18n(code) { Vue.prototype.$setDateFnsLocale(languageCodeMap[code].dateFnsLocale) console.log('i18n strings=', Vue.prototype.$strings) - Vue.prototype.$eventBus.$emit('change-lang', code) + this.$eventBus.$emit('change-lang', code) return true }