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

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>