fix: Use installation locale if configured (#8002)

This commit is contained in:
Pranav Raj S 2023-09-27 06:36:36 -07:00 committed by GitHub
parent f7f04f788e
commit ffc2d98fb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
},
},
};
</script>