chore: more try
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user