mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-22 09:01:11 +08:00
[lazy load lang] load the language file on create
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user