From ffc2d98fb87de9ae7224ce96306ef9ce08fe83ce Mon Sep 17 00:00:00 2001 From: Pranav Raj S Date: Wed, 27 Sep 2023 06:36:36 -0700 Subject: [PATCH] fix: Use installation locale if configured (#8002) --- app/javascript/v3/App.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/javascript/v3/App.vue b/app/javascript/v3/App.vue index 398495f98..c645ce5a4 100644 --- a/app/javascript/v3/App.vue +++ b/app/javascript/v3/App.vue @@ -15,6 +15,7 @@ export default { mounted() { this.setColorTheme(); this.listenToThemeChanges(); + this.setLocale(window.chatwootConfig.selectedLocale); }, methods: { setColorTheme() { @@ -35,6 +36,9 @@ export default { } }; }, + setLocale(locale) { + this.$root.$i18n.locale = locale; + }, }, };