Skip to content

Commit 33059e4

Browse files
authored
i18n: Translatable "Score" label (#7137)
1 parent 5b1a183 commit 33059e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/battle-scene.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2009,9 +2009,9 @@ export class BattleScene extends SceneBase {
20092009
}
20102010

20112011
updateScoreText(): void {
2012-
// TODO: Localize this
2013-
this.scoreText //
2014-
.setText(`Score: ${this.score.toString()}`)
2012+
const { score } = this;
2013+
this.scoreText // formatting
2014+
.setText(i18next.t("battleScene:score", { score }))
20152015
.setVisible(this.gameMode.isDaily);
20162016
}
20172017

0 commit comments

Comments
 (0)