language fix

This commit is contained in:
2025-09-10 14:24:52 +08:00
parent ea0e3e1409
commit 6b3176ed39
3 changed files with 21 additions and 31 deletions
-1
View File
@@ -65,7 +65,6 @@ export class PreloadUI extends Component {
this.preloadFiles();
LanguageUtils.setLanguage(LanguageType.CN);
}
protected onDestroy(): void {
@@ -44,11 +44,6 @@ export class SimpleLanguagePanel extends li_BaseView {
@property(Button)
private btnHindi: Button = null;
@property(Button)
private btnFrench: Button = null;
@property(Button)
private btnGerman: Button = null;
@property(Node)
private panelBg: Node = null;
@@ -78,8 +73,6 @@ export class SimpleLanguagePanel extends li_BaseView {
this.initLanguageButton(this.btnEnglish, LanguageType.EN, "English");
this.initLanguageButton(this.btnChinese, LanguageType.CN, "中文");
this.initLanguageButton(this.btnHindi, LanguageType.HI, "हिंदी");
this.initLanguageButton(this.btnFrench, LanguageType.FR, "Français");
this.initLanguageButton(this.btnGerman, LanguageType.DE, "Deutsch");
}
private initLanguageButton(