fix: Use installation locale if configured (#8002)
This commit is contained in:
@@ -15,6 +15,7 @@ export default {
|
|||||||
mounted() {
|
mounted() {
|
||||||
this.setColorTheme();
|
this.setColorTheme();
|
||||||
this.listenToThemeChanges();
|
this.listenToThemeChanges();
|
||||||
|
this.setLocale(window.chatwootConfig.selectedLocale);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
setColorTheme() {
|
setColorTheme() {
|
||||||
@@ -35,6 +36,9 @@ export default {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
setLocale(locale) {
|
||||||
|
this.$root.$i18n.locale = locale;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user