[Localization] Localizing "Loading..." text (#1822)

* localized "Loading..." texts

* fixes
This commit is contained in:
José Ricardo Fleury Oliveira 2024-06-10 14:33:48 -03:00 committed by GitHub
parent c2375a0f5d
commit 36f3cc6b47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
import i18next from "i18next";
import BattleScene from "../battle-scene";
import { ModalUiHandler } from "./modal-ui-handler";
import { addTextObject, TextStyle } from "./text";
@ -31,7 +32,7 @@ export default class LoadingModalUiHandler extends ModalUiHandler {
setup(): void {
super.setup();
const label = addTextObject(this.scene, this.getWidth() / 2, this.getHeight() / 2, "Loading…", TextStyle.WINDOW);
const label = addTextObject(this.scene, this.getWidth() / 2, this.getHeight() / 2, i18next.t("menu:loading"), TextStyle.WINDOW);
label.setOrigin(0.5, 0.5);
this.modalContainer.add(label);