diff --git a/src/webpage/i18n.ts b/src/webpage/i18n.ts index 8af5f10..742ba32 100644 --- a/src/webpage/i18n.ts +++ b/src/webpage/i18n.ts @@ -25,6 +25,7 @@ class I18n{ } this.lang=lang; this.translations=translations; + res(); } static getTranslation(msg:string,...params:string[]):string{ @@ -118,4 +119,4 @@ if(storage){ } I18n.create(userLocale); -export{I18n}; +export{I18n,langmap}; diff --git a/src/webpage/index.html b/src/webpage/index.html index d2aa1c2..f4ac781 100644 --- a/src/webpage/index.html +++ b/src/webpage/index.html @@ -16,7 +16,7 @@
- +