From c93f17051a4fd4d3650067f5a87a4dfd6704cc16 Mon Sep 17 00:00:00 2001 From: advplyr Date: Fri, 3 Feb 2023 14:50:48 -0600 Subject: [PATCH] Fix:Event sent when changing languages to rehydrate page --- client/plugins/i18n.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }