Chore: Add translated languages to account settings (#826)

* Add available languages in account settings

Co-authored-by: Sojan <sojan@pepalo.com>
This commit is contained in:
Pranav Raj S 2020-05-06 13:38:36 +05:30 committed by GitHub
parent d6d15c8c3c
commit c7120e9637
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
37 changed files with 473 additions and 250 deletions

View file

@ -8,6 +8,7 @@
import { mapActions } from 'vuex';
import { setHeader } from 'widget/helpers/axios';
import { IFrameHelper } from 'widget/helpers/utils';
import Vue from 'vue';
export default {
name: 'App',
@ -17,7 +18,9 @@ export default {
};
},
mounted() {
const { websiteToken } = window.chatwootWebChannel;
const { websiteToken, locale } = window.chatwootWebChannel;
Vue.config.lang = locale;
if (IFrameHelper.isIFrame()) {
IFrameHelper.sendMessage({
event: 'loaded',