daily update

This commit is contained in:
Vick Scarlet
2021-11-27 21:48:47 +08:00
parent 52d6a0ca8f
commit 1d07bdfc46
26 changed files with 1449 additions and 4068 deletions
+5 -2
View File
@@ -69,7 +69,9 @@ class App{
this.#language = App.languages['zh-cn'];
break;
}
Laya.Text.langPacks = (await import(`./i18n/${this.#language}.js`)).default;
globalThis.$lang =
Laya.Text.langPacks =
(await import(`./i18n/${this.#language}.js`)).default;
}
resigterEvent() {
@@ -79,7 +81,8 @@ class App{
}
async start({
language = App.languages['zh-cn']
language = App.languages['zh-cn'],
theme = 'default',
}) {
this.resigterEvent();
this.#initLaya();