[lazy load lang] load the language file on create
This commit is contained in:
parent
50593f3edf
commit
c50b2b636a
|
@ -9,6 +9,12 @@ export default {
|
|||
};
|
||||
},
|
||||
|
||||
async created() {
|
||||
if (this.language !== "en") {
|
||||
await this.changeLang(this.language);
|
||||
}
|
||||
},
|
||||
|
||||
watch: {
|
||||
async language(lang) {
|
||||
await this.changeLang(lang);
|
||||
|
|
Loading…
Reference in New Issue