Skip to content

Commit

Permalink
[Localization] Localizable owned money symbol on battle UI (pagefault…
Browse files Browse the repository at this point in the history
…games#3646)

Co-authored-by: Jannik Tappert <[email protected]>
Co-authored-by: Enoch <[email protected]>
Co-authored-by: frutescens <info@laptop>
  • Loading branch information
4 people authored Aug 22, 2024
1 parent 6ea0f3f commit 61d659d
Show file tree
Hide file tree
Showing 23 changed files with 79 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/battle-scene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1518,7 +1518,7 @@ export default class BattleScene extends SceneBase {
return;
}
const formattedMoney = Utils.formatMoney(this.moneyFormat, this.money);
this.moneyText.setText(`₽${formattedMoney}`);
this.moneyText.setText(i18next.t("battleScene:moneyOwned", { formattedMoney }));
this.fieldUI.moveAbove(this.moneyText, this.luckText);
if (forceVisible) {
this.moneyText.setVisible(true);
Expand Down
5 changes: 5 additions & 0 deletions src/locales/ca_ES/battle-scene.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { SimpleTranslationEntries } from "#app/interfaces/locales";

export const battleScene: SimpleTranslationEntries = {
"moneyOwned": "₽{{formattedMoney}}"
} as const;
2 changes: 2 additions & 0 deletions src/locales/ca_ES/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { arenaFlyout } from "./arena-flyout";
import { arenaTag } from "./arena-tag";
import { PGFachv, PGMachv } from "./achv";
import { battle } from "./battle";
import { battleScene } from "./battle-scene";
import { battleInfo } from "./battle-info";
import { battleMessageUiHandler } from "./battle-message-ui-handler";
import { battlerTags } from "./battler-tags";
Expand Down Expand Up @@ -60,6 +61,7 @@ export const caESConfig = {
arenaFlyout: arenaFlyout,
arenaTag: arenaTag,
battle: battle,
battleScene: battleScene,
battleInfo: battleInfo,
battleMessageUiHandler: battleMessageUiHandler,
battlePokemonForm: battlePokemonForm,
Expand Down
6 changes: 6 additions & 0 deletions src/locales/de/battle-scene.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { SimpleTranslationEntries } from "#app/interfaces/locales";

export const battleScene: SimpleTranslationEntries = {
"moneyOwned": "{{formattedMoney}} ₽"

} as const;
2 changes: 2 additions & 0 deletions src/locales/de/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { arenaFlyout } from "./arena-flyout";
import { arenaTag } from "./arena-tag";
import { PGFachv, PGMachv } from "./achv";
import { battle } from "./battle";
import { battleScene } from "./battle-scene";
import { battleInfo } from "./battle-info";
import { battleMessageUiHandler } from "./battle-message-ui-handler";
import { battlerTags } from "./battler-tags";
Expand Down Expand Up @@ -60,6 +61,7 @@ export const deConfig = {
arenaFlyout: arenaFlyout,
arenaTag: arenaTag,
battle: battle,
battleScene: battleScene,
battleInfo: battleInfo,
battleMessageUiHandler: battleMessageUiHandler,
battlePokemonForm: battlePokemonForm,
Expand Down
5 changes: 5 additions & 0 deletions src/locales/en/battle-scene.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { SimpleTranslationEntries } from "#app/interfaces/locales";

export const battleScene: SimpleTranslationEntries = {
"moneyOwned": "₽{{formattedMoney}}"
} as const;
2 changes: 2 additions & 0 deletions src/locales/en/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { arenaFlyout } from "./arena-flyout";
import { arenaTag } from "./arena-tag";
import { PGFachv, PGMachv } from "./achv";
import { battle } from "./battle";
import { battleScene } from "./battle-scene";
import { battleInfo } from "./battle-info";
import { battleMessageUiHandler } from "./battle-message-ui-handler";
import { battlerTags } from "./battler-tags";
Expand Down Expand Up @@ -60,6 +61,7 @@ export const enConfig = {
arenaFlyout: arenaFlyout,
arenaTag: arenaTag,
battle: battle,
battleScene: battleScene,
battleInfo: battleInfo,
battleMessageUiHandler: battleMessageUiHandler,
battlePokemonForm: battlePokemonForm,
Expand Down
5 changes: 5 additions & 0 deletions src/locales/es/battle-scene.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { SimpleTranslationEntries } from "#app/interfaces/locales";

export const battleScene: SimpleTranslationEntries = {
"moneyOwned": "{{formattedMoney}} ₽"
} as const;
2 changes: 2 additions & 0 deletions src/locales/es/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { arenaFlyout } from "./arena-flyout";
import { arenaTag } from "./arena-tag";
import { PGFachv, PGMachv } from "./achv";
import { battle } from "./battle";
import { battleScene } from "./battle-scene";
import { battleInfo } from "./battle-info";
import { battleMessageUiHandler } from "./battle-message-ui-handler";
import { battlerTags } from "./battler-tags";
Expand Down Expand Up @@ -60,6 +61,7 @@ export const esConfig = {
arenaFlyout: arenaFlyout,
arenaTag: arenaTag,
battle: battle,
battleScene: battleScene,
battleInfo: battleInfo,
battleMessageUiHandler: battleMessageUiHandler,
battlePokemonForm: battlePokemonForm,
Expand Down
5 changes: 5 additions & 0 deletions src/locales/fr/battle-scene.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { SimpleTranslationEntries } from "#app/interfaces/locales";

export const battleScene: SimpleTranslationEntries = {
"moneyOwned": "{{formattedMoney}} ₽"
} as const;
2 changes: 2 additions & 0 deletions src/locales/fr/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { arenaFlyout } from "./arena-flyout";
import { arenaTag } from "./arena-tag";
import { PGFachv, PGMachv } from "./achv";
import { battle } from "./battle";
import { battleScene } from "./battle-scene";
import { battleInfo } from "./battle-info";
import { battleMessageUiHandler } from "./battle-message-ui-handler";
import { battlerTags } from "./battler-tags";
Expand Down Expand Up @@ -60,6 +61,7 @@ export const frConfig = {
arenaFlyout: arenaFlyout,
arenaTag: arenaTag,
battle: battle,
battleScene: battleScene,
battleInfo: battleInfo,
battleMessageUiHandler: battleMessageUiHandler,
battlePokemonForm: battlePokemonForm,
Expand Down
5 changes: 5 additions & 0 deletions src/locales/it/battle-scene.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { SimpleTranslationEntries } from "#app/interfaces/locales";

export const battleScene: SimpleTranslationEntries = {
"moneyOwned": "{{formattedMoney}} ₽"
} as const;
2 changes: 2 additions & 0 deletions src/locales/it/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { arenaFlyout } from "./arena-flyout";
import { arenaTag } from "./arena-tag";
import { PGFachv, PGMachv } from "./achv";
import { battle } from "./battle";
import { battleScene } from "./battle-scene";
import { battleInfo } from "./battle-info";
import { battleMessageUiHandler } from "./battle-message-ui-handler";
import { battlerTags } from "./battler-tags";
Expand Down Expand Up @@ -60,6 +61,7 @@ export const itConfig = {
arenaFlyout: arenaFlyout,
arenaTag: arenaTag,
battle: battle,
battleScene: battleScene,
battleInfo: battleInfo,
battleMessageUiHandler: battleMessageUiHandler,
battlePokemonForm: battlePokemonForm,
Expand Down
5 changes: 5 additions & 0 deletions src/locales/ja/battle-scene.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { SimpleTranslationEntries } from "#app/interfaces/locales";

export const battleScene: SimpleTranslationEntries = {
"moneyOwned": "{{formattedMoney}}円"
} as const;
2 changes: 2 additions & 0 deletions src/locales/ja/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { arenaFlyout } from "./arena-flyout";
import { arenaTag } from "./arena-tag";
import { PGFachv, PGMachv } from "./achv";
import { battle } from "./battle";
import { battleScene } from "./battle-scene";
import { battleInfo } from "./battle-info";
import { battleMessageUiHandler } from "./battle-message-ui-handler";
import { battlerTags } from "./battler-tags";
Expand Down Expand Up @@ -61,6 +62,7 @@ export const jaConfig = {
arenaFlyout: arenaFlyout,
arenaTag: arenaTag,
battle: battle,
battleScene: battleScene,
battleInfo: battleInfo,
battleMessageUiHandler: battleMessageUiHandler,
battlePokemonForm: battlePokemonForm,
Expand Down
5 changes: 5 additions & 0 deletions src/locales/ko/battle-scene.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { SimpleTranslationEntries } from "#app/interfaces/locales";

export const battleScene: SimpleTranslationEntries = {
"moneyOwned": "₽{{formattedMoney}}"
} as const;
2 changes: 2 additions & 0 deletions src/locales/ko/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { arenaFlyout } from "./arena-flyout";
import { arenaTag } from "./arena-tag";
import { PGFachv, PGMachv } from "./achv";
import { battle } from "./battle";
import { battleScene } from "./battle-scene";
import { battleInfo } from "./battle-info";
import { battleMessageUiHandler } from "./battle-message-ui-handler";
import { battlerTags } from "./battler-tags";
Expand Down Expand Up @@ -60,6 +61,7 @@ export const koConfig = {
arenaFlyout: arenaFlyout,
arenaTag: arenaTag,
battle: battle,
battleScene: battleScene,
battleInfo: battleInfo,
battleMessageUiHandler: battleMessageUiHandler,
battlePokemonForm: battlePokemonForm,
Expand Down
5 changes: 5 additions & 0 deletions src/locales/pt_BR/battle-scene.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { SimpleTranslationEntries } from "#app/interfaces/locales";

export const battleScene: SimpleTranslationEntries = {
"moneyOwned": "₽{{formattedMoney}}"
} as const;
2 changes: 2 additions & 0 deletions src/locales/pt_BR/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { PGFachv, PGMachv } from "./achv";
import { arenaFlyout } from "./arena-flyout";
import { arenaTag } from "./arena-tag";
import { battle } from "./battle";
import { battleScene } from "./battle-scene";
import { battleInfo } from "./battle-info";
import { battleMessageUiHandler } from "./battle-message-ui-handler";
import { battlerTags } from "./battler-tags";
Expand Down Expand Up @@ -60,6 +61,7 @@ export const ptBrConfig = {
arenaFlyout: arenaFlyout,
arenaTag: arenaTag,
battle: battle,
battleScene: battleScene,
battleInfo: battleInfo,
battleMessageUiHandler: battleMessageUiHandler,
battlePokemonForm: battlePokemonForm,
Expand Down
5 changes: 5 additions & 0 deletions src/locales/zh_CN/battle-scene.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { SimpleTranslationEntries } from "#app/interfaces/locales";

export const battleScene: SimpleTranslationEntries = {
"moneyOwned": "₽{{formattedMoney}}"
} as const;
2 changes: 2 additions & 0 deletions src/locales/zh_CN/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { arenaFlyout } from "./arena-flyout";
import { arenaTag } from "./arena-tag";
import { PGFachv, PGMachv } from "./achv";
import { battle } from "./battle";
import { battleScene } from "./battle-scene";
import { battleInfo } from "./battle-info";
import { battleMessageUiHandler } from "./battle-message-ui-handler";
import { battlerTags } from "./battler-tags";
Expand Down Expand Up @@ -60,6 +61,7 @@ export const zhCnConfig = {
arenaFlyout: arenaFlyout,
arenaTag: arenaTag,
battle: battle,
battleScene: battleScene,
battleInfo: battleInfo,
battleMessageUiHandler: battleMessageUiHandler,
battlePokemonForm: battlePokemonForm,
Expand Down
5 changes: 5 additions & 0 deletions src/locales/zh_TW/battle-scene.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { SimpleTranslationEntries } from "#app/interfaces/locales";

export const battleScene: SimpleTranslationEntries = {
"moneyOwned": "₽{{formattedMoney}}"
} as const;
2 changes: 2 additions & 0 deletions src/locales/zh_TW/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { arenaFlyout } from "./arena-flyout";
import { arenaTag } from "./arena-tag";
import { PGFachv, PGMachv } from "./achv";
import { battle } from "./battle";
import { battleScene } from "./battle-scene";
import { battleInfo } from "./battle-info";
import { battleMessageUiHandler } from "./battle-message-ui-handler";
import { battlerTags } from "./battler-tags";
Expand Down Expand Up @@ -60,6 +61,7 @@ export const zhTwConfig = {
arenaFlyout: arenaFlyout,
arenaTag: arenaTag,
battle: battle,
battleScene: battleScene,
battleInfo: battleInfo,
battleMessageUiHandler: battleMessageUiHandler,
battlePokemonForm: battlePokemonForm,
Expand Down

0 comments on commit 61d659d

Please sign in to comment.