Type Icons are now also localized when learning a new move (#1557)
This commit is contained in:
parent
b10102b52a
commit
9e0fd33510
|
@ -897,7 +897,7 @@ export default class SummaryUiHandler extends UiHandler {
|
||||||
|
|
||||||
if (this.summaryUiMode === SummaryUiMode.LEARN_MOVE) {
|
if (this.summaryUiMode === SummaryUiMode.LEARN_MOVE) {
|
||||||
this.extraMoveRowContainer.setVisible(true);
|
this.extraMoveRowContainer.setVisible(true);
|
||||||
const newMoveTypeIcon = this.scene.add.sprite(0, 0, "types", Type[this.newMove.type].toLowerCase());
|
const newMoveTypeIcon = this.scene.add.sprite(0, 0, `types${Utils.verifyLang(i18next.language) ? `_${i18next.language}` : ""}`, Type[this.newMove.type].toLowerCase());
|
||||||
newMoveTypeIcon.setOrigin(0, 1);
|
newMoveTypeIcon.setOrigin(0, 1);
|
||||||
this.extraMoveRowContainer.add(newMoveTypeIcon);
|
this.extraMoveRowContainer.add(newMoveTypeIcon);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue