chore: more try

This commit is contained in:
Shivam Mishra
2024-10-08 18:14:58 +05:30
parent 412303d1cd
commit 2ba7318817
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -99,6 +99,7 @@ export default {
mql.onchange = e => setColorTheme(e.matches);
},
setLocale(locale) {
console.log('setting locale in dashboard', locale);
this.$i18n.locale = locale;
},
async initializeAccount() {
@@ -29,7 +29,7 @@ const showNewButton = computed(
button-route="new"
:icon="icon"
:header-title="t(headerTitle)"
:button-text="t(headerButtonText)"
:button-text="headerButtonText ? t(headerButtonText) : ''"
:show-back-button="showBackButton"
:back-url="backUrl"
:show-new-button="showNewButton"
+1
View File
@@ -121,6 +121,7 @@ export default {
});
},
setLocale(localeWithVariation) {
console.log('SETTING LOACLE IN WIDGET');
if (!localeWithVariation) return;
const { enabledLanguages } = window.chatwootWebChannel;
const localeWithoutVariation = localeWithVariation.split('_')[0];