chore: Upgrade vue-i18n to 8.x (#1383)
Co-authored-by: Pranav Raj S <pranav@thoughtwoot.com>
This commit is contained in:
parent
7f2f984bea
commit
f9bd447912
15 changed files with 75 additions and 38 deletions
|
@ -16,7 +16,6 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import Vue from 'vue';
|
||||
import { mapGetters, mapActions } from 'vuex';
|
||||
import { setHeader } from 'widget/helpers/axios';
|
||||
import { IFrameHelper } from 'widget/helpers/utils';
|
||||
|
@ -91,7 +90,7 @@ export default {
|
|||
setLocale(locale) {
|
||||
const { enabledLanguages } = window.chatwootWebChannel;
|
||||
if (enabledLanguages.some(lang => lang.iso_639_1_code === locale)) {
|
||||
Vue.config.lang = locale;
|
||||
this.$root.$i18n.locale = locale;
|
||||
}
|
||||
},
|
||||
setPosition(position) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue