mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-28 01:04:05 +00:00
[lazy load lang] load the language file on create
This commit is contained in:
parent
50593f3edf
commit
c50b2b636a
1 changed files with 6 additions and 0 deletions
|
@ -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 a new issue