chore: try i18n

This commit is contained in:
Shivam Mishra
2024-10-08 15:20:35 +05:30
parent 47b9399208
commit 412303d1cd
7 changed files with 9 additions and 14 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ export default {
mql.onchange = e => setColorTheme(e.matches);
},
setLocale(locale) {
this.$root.$i18n.locale = locale;
this.$i18n.locale = locale;
},
async initializeAccount() {
await this.$store.dispatch('accounts/get');
@@ -112,7 +112,7 @@ export default {
latest_chatwoot_version: latestChatwootVersion,
} = this.getAccount(this.accountId);
this.$root.$i18n.locale = locale;
this.$i18n.locale = locale;
this.name = name;
this.locale = locale;
this.id = id;
@@ -140,7 +140,7 @@ export default {
support_email: this.supportEmail,
auto_resolve_duration: this.autoResolveDuration,
});
this.$root.$i18n.locale = this.locale;
this.$i18n.locale = this.locale;
this.getAccount(this.id).locale = this.locale;
this.updateDirectionView(this.locale);
useAlert(this.$t('GENERAL_SETTINGS.UPDATE.SUCCESS'));