[Localization] Localizable owned money symbol on battle UI (#3646)
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Enoch <enoch.jwsong@gmail.com> Co-authored-by: frutescens <info@laptop>
This commit is contained in:
parent
6ea0f3f18b
commit
61d659d8bb
|
@ -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);
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
import { SimpleTranslationEntries } from "#app/interfaces/locales";
|
||||
|
||||
export const battleScene: SimpleTranslationEntries = {
|
||||
"moneyOwned": "₽{{formattedMoney}}"
|
||||
} as const;
|
|
@ -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";
|
||||
|
@ -60,6 +61,7 @@ export const caESConfig = {
|
|||
arenaFlyout: arenaFlyout,
|
||||
arenaTag: arenaTag,
|
||||
battle: battle,
|
||||
battleScene: battleScene,
|
||||
battleInfo: battleInfo,
|
||||
battleMessageUiHandler: battleMessageUiHandler,
|
||||
battlePokemonForm: battlePokemonForm,
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
import { SimpleTranslationEntries } from "#app/interfaces/locales";
|
||||
|
||||
export const battleScene: SimpleTranslationEntries = {
|
||||
"moneyOwned": "{{formattedMoney}} ₽"
|
||||
|
||||
} as const;
|
|
@ -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";
|
||||
|
@ -60,6 +61,7 @@ export const deConfig = {
|
|||
arenaFlyout: arenaFlyout,
|
||||
arenaTag: arenaTag,
|
||||
battle: battle,
|
||||
battleScene: battleScene,
|
||||
battleInfo: battleInfo,
|
||||
battleMessageUiHandler: battleMessageUiHandler,
|
||||
battlePokemonForm: battlePokemonForm,
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
import { SimpleTranslationEntries } from "#app/interfaces/locales";
|
||||
|
||||
export const battleScene: SimpleTranslationEntries = {
|
||||
"moneyOwned": "₽{{formattedMoney}}"
|
||||
} as const;
|
|
@ -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";
|
||||
|
@ -60,6 +61,7 @@ export const enConfig = {
|
|||
arenaFlyout: arenaFlyout,
|
||||
arenaTag: arenaTag,
|
||||
battle: battle,
|
||||
battleScene: battleScene,
|
||||
battleInfo: battleInfo,
|
||||
battleMessageUiHandler: battleMessageUiHandler,
|
||||
battlePokemonForm: battlePokemonForm,
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
import { SimpleTranslationEntries } from "#app/interfaces/locales";
|
||||
|
||||
export const battleScene: SimpleTranslationEntries = {
|
||||
"moneyOwned": "{{formattedMoney}} ₽"
|
||||
} as const;
|
|
@ -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";
|
||||
|
@ -60,6 +61,7 @@ export const esConfig = {
|
|||
arenaFlyout: arenaFlyout,
|
||||
arenaTag: arenaTag,
|
||||
battle: battle,
|
||||
battleScene: battleScene,
|
||||
battleInfo: battleInfo,
|
||||
battleMessageUiHandler: battleMessageUiHandler,
|
||||
battlePokemonForm: battlePokemonForm,
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
import { SimpleTranslationEntries } from "#app/interfaces/locales";
|
||||
|
||||
export const battleScene: SimpleTranslationEntries = {
|
||||
"moneyOwned": "{{formattedMoney}} ₽"
|
||||
} as const;
|
|
@ -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";
|
||||
|
@ -60,6 +61,7 @@ export const frConfig = {
|
|||
arenaFlyout: arenaFlyout,
|
||||
arenaTag: arenaTag,
|
||||
battle: battle,
|
||||
battleScene: battleScene,
|
||||
battleInfo: battleInfo,
|
||||
battleMessageUiHandler: battleMessageUiHandler,
|
||||
battlePokemonForm: battlePokemonForm,
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
import { SimpleTranslationEntries } from "#app/interfaces/locales";
|
||||
|
||||
export const battleScene: SimpleTranslationEntries = {
|
||||
"moneyOwned": "{{formattedMoney}} ₽"
|
||||
} as const;
|
|
@ -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";
|
||||
|
@ -60,6 +61,7 @@ export const itConfig = {
|
|||
arenaFlyout: arenaFlyout,
|
||||
arenaTag: arenaTag,
|
||||
battle: battle,
|
||||
battleScene: battleScene,
|
||||
battleInfo: battleInfo,
|
||||
battleMessageUiHandler: battleMessageUiHandler,
|
||||
battlePokemonForm: battlePokemonForm,
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
import { SimpleTranslationEntries } from "#app/interfaces/locales";
|
||||
|
||||
export const battleScene: SimpleTranslationEntries = {
|
||||
"moneyOwned": "{{formattedMoney}}円"
|
||||
} as const;
|
|
@ -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";
|
||||
|
@ -61,6 +62,7 @@ export const jaConfig = {
|
|||
arenaFlyout: arenaFlyout,
|
||||
arenaTag: arenaTag,
|
||||
battle: battle,
|
||||
battleScene: battleScene,
|
||||
battleInfo: battleInfo,
|
||||
battleMessageUiHandler: battleMessageUiHandler,
|
||||
battlePokemonForm: battlePokemonForm,
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
import { SimpleTranslationEntries } from "#app/interfaces/locales";
|
||||
|
||||
export const battleScene: SimpleTranslationEntries = {
|
||||
"moneyOwned": "₽{{formattedMoney}}"
|
||||
} as const;
|
|
@ -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";
|
||||
|
@ -60,6 +61,7 @@ export const koConfig = {
|
|||
arenaFlyout: arenaFlyout,
|
||||
arenaTag: arenaTag,
|
||||
battle: battle,
|
||||
battleScene: battleScene,
|
||||
battleInfo: battleInfo,
|
||||
battleMessageUiHandler: battleMessageUiHandler,
|
||||
battlePokemonForm: battlePokemonForm,
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
import { SimpleTranslationEntries } from "#app/interfaces/locales";
|
||||
|
||||
export const battleScene: SimpleTranslationEntries = {
|
||||
"moneyOwned": "₽{{formattedMoney}}"
|
||||
} as const;
|
|
@ -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";
|
||||
|
@ -60,6 +61,7 @@ export const ptBrConfig = {
|
|||
arenaFlyout: arenaFlyout,
|
||||
arenaTag: arenaTag,
|
||||
battle: battle,
|
||||
battleScene: battleScene,
|
||||
battleInfo: battleInfo,
|
||||
battleMessageUiHandler: battleMessageUiHandler,
|
||||
battlePokemonForm: battlePokemonForm,
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
import { SimpleTranslationEntries } from "#app/interfaces/locales";
|
||||
|
||||
export const battleScene: SimpleTranslationEntries = {
|
||||
"moneyOwned": "₽{{formattedMoney}}"
|
||||
} as const;
|
|
@ -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";
|
||||
|
@ -60,6 +61,7 @@ export const zhCnConfig = {
|
|||
arenaFlyout: arenaFlyout,
|
||||
arenaTag: arenaTag,
|
||||
battle: battle,
|
||||
battleScene: battleScene,
|
||||
battleInfo: battleInfo,
|
||||
battleMessageUiHandler: battleMessageUiHandler,
|
||||
battlePokemonForm: battlePokemonForm,
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
import { SimpleTranslationEntries } from "#app/interfaces/locales";
|
||||
|
||||
export const battleScene: SimpleTranslationEntries = {
|
||||
"moneyOwned": "₽{{formattedMoney}}"
|
||||
} as const;
|
|
@ -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";
|
||||
|
@ -60,6 +61,7 @@ export const zhTwConfig = {
|
|||
arenaFlyout: arenaFlyout,
|
||||
arenaTag: arenaTag,
|
||||
battle: battle,
|
||||
battleScene: battleScene,
|
||||
battleInfo: battleInfo,
|
||||
battleMessageUiHandler: battleMessageUiHandler,
|
||||
battlePokemonForm: battlePokemonForm,
|
||||
|
|
Loading…
Reference in New Issue