Messages: Load languages asynchronously.
Reduces the size of the initial app bundle by about half.
This commit is contained in:
parent
acbef1ebdc
commit
99eaec8547
5 changed files with 80 additions and 32 deletions
|
|
@ -47,7 +47,8 @@ export default {
|
|||
}),
|
||||
created () {
|
||||
// Load the locale from the storage
|
||||
this.$i18n.locale = this.$store.getters.mergedConfig.interfaceLanguage
|
||||
const val = this.$store.getters.mergedConfig.interfaceLanguage
|
||||
this.$store.dispatch('setOption', { name: 'interfaceLanguage', value: val })
|
||||
window.addEventListener('resize', this.updateMobileState)
|
||||
},
|
||||
destroyed () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue