Localized moneyPickedUp message (#2788)
* Localized moneyPickedUp message * Update src/locales/ko/battle.ts Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com> * Update src/locales/fr/battle.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/battle.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/pt_BR/battle.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update battle.ts * Update battle.ts --------- Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
This commit is contained in:
parent
2ccb480930
commit
0d9dd1dfc8
|
@ -13,6 +13,7 @@ import { Moves } from "#enums/moves";
|
|||
import { PlayerGender } from "#enums/player-gender";
|
||||
import { Species } from "#enums/species";
|
||||
import { TrainerType } from "#enums/trainer-type";
|
||||
import i18next from "#app/plugins/i18n";
|
||||
|
||||
export enum BattleType {
|
||||
WILD,
|
||||
|
@ -173,7 +174,10 @@ export default class Battle {
|
|||
|
||||
scene.addMoney(moneyAmount.value);
|
||||
|
||||
scene.queueMessage(`You picked up ₽${moneyAmount.value.toLocaleString("en-US")}!`, null, true);
|
||||
const userLocale = navigator.language || "en-US";
|
||||
const formattedMoneyAmount = moneyAmount.value.toLocaleString(userLocale);
|
||||
const message = i18next.t("battle:moneyPickedUp", { moneyAmount: formattedMoneyAmount });
|
||||
scene.queueMessage(message, null, true);
|
||||
|
||||
scene.currentBattle.moneyScattered = 0;
|
||||
}
|
||||
|
|
|
@ -14,6 +14,7 @@ export const battle: SimpleTranslationEntries = {
|
|||
"switchQuestion": "Möchtest du\n{{pokemonName}} auswechseln?",
|
||||
"trainerDefeated": "{{trainerName}}\nwurde besiegt!",
|
||||
"moneyWon": "Du gewinnst\n{{moneyAmount}} ₽!",
|
||||
"moneyPickedUp": "Du hebst {{moneyAmount}} ₽ auf!",
|
||||
"pokemonCaught": "{{pokemonName}} wurde gefangen!",
|
||||
"addedAsAStarter": "{{pokemonName}} wurde als Starterpokémon hinzugefügt!",
|
||||
"partyFull": "Dein Team ist voll.\nMöchtest du ein Pokémon durch {{pokemonName}} ersetzen?",
|
||||
|
|
|
@ -14,6 +14,7 @@ export const battle: SimpleTranslationEntries = {
|
|||
"switchQuestion": "Will you switch\n{{pokemonName}}?",
|
||||
"trainerDefeated": "You defeated\n{{trainerName}}!",
|
||||
"moneyWon": "You got\n₽{{moneyAmount}} for winning!",
|
||||
"moneyPickedUp": "You picked up ₽{{moneyAmount}}!",
|
||||
"pokemonCaught": "{{pokemonName}} was caught!",
|
||||
"addedAsAStarter": "{{pokemonName}} has been\nadded as a starter!",
|
||||
"partyFull": "Your party is full.\nRelease a Pokémon to make room for {{pokemonName}}?",
|
||||
|
|
|
@ -14,6 +14,7 @@ export const battle: SimpleTranslationEntries = {
|
|||
"switchQuestion": "¿Quieres cambiar a\n{{pokemonName}}?",
|
||||
"trainerDefeated": "¡Has derrotado a\n{{trainerName}}!",
|
||||
"moneyWon": "¡Has ganado\n₽{{moneyAmount}} por vencer!",
|
||||
"moneyPickedUp": "You picked up ₽{{moneyAmount}}!",
|
||||
"pokemonCaught": "¡{{pokemonName}} atrapado!",
|
||||
"addedAsAStarter": "{{pokemonName}} ha sido añadido\na tus iniciales!",
|
||||
"partyFull": "Tu equipo esta completo.\n¿Quieres liberar un Pokémon para meter a {{pokemonName}}?",
|
||||
|
|
|
@ -14,6 +14,7 @@ export const battle: SimpleTranslationEntries = {
|
|||
"switchQuestion": "Voulez-vous changer\nvotre {{pokemonName}} ?",
|
||||
"trainerDefeated": "Vous avez battu\n{{trainerName}} !",
|
||||
"moneyWon": "Vous remportez\n{{moneyAmount}} ₽ !",
|
||||
"moneyPickedUp": "Vous obtenez {{moneyAmount}} ₽ !",
|
||||
"pokemonCaught": "Vous avez attrapé {{pokemonName}} !",
|
||||
"addedAsAStarter": "{{pokemonName}} est ajouté\ncomme starter !",
|
||||
"partyFull": "Votre équipe est pleine.\nRelâcher un Pokémon pour {{pokemonName}} ?",
|
||||
|
|
|
@ -14,6 +14,7 @@ export const battle: SimpleTranslationEntries = {
|
|||
"switchQuestion": "Vuoi cambiare\n{{pokemonName}}?",
|
||||
"trainerDefeated": "Hai sconfitto\n{{trainerName}}!",
|
||||
"moneyWon": "Hai vinto {{moneyAmount}}₽",
|
||||
"moneyPickedUp": "You picked up ₽{{moneyAmount}}!",
|
||||
"pokemonCaught": "Preso! {{pokemonName}} è stato catturato!",
|
||||
"addedAsAStarter": "{{pokemonName}} has been\nadded as a starter!",
|
||||
"partyFull": "La tua squadra è al completo.\nVuoi liberare un Pokémon per far spazio a {{pokemonName}}?",
|
||||
|
|
|
@ -14,6 +14,7 @@ export const battle: SimpleTranslationEntries = {
|
|||
"switchQuestion": "{{pokemonName}}[[를]]\n교체하시겠습니까?",
|
||||
"trainerDefeated": "{{trainerName}}[[와]]의\n승부에서 이겼다!",
|
||||
"moneyWon": "상금으로\n₽{{moneyAmount}}을 손에 넣었다!",
|
||||
"moneyPickedUp": "₽{{moneyAmount}}을 주웠다!",
|
||||
"pokemonCaught": "신난다-!\n{{pokemonName}}[[를]] 잡았다!",
|
||||
"addedAsAStarter": "{{pokemonName}}[[가]]\n스타팅 포켓몬에 추가되었다!",
|
||||
"partyFull": "지닌 포켓몬이 가득 찼습니다. {{pokemonName}}[[를]]\n대신해 포켓몬을 놓아주시겠습니까?",
|
||||
|
|
|
@ -14,6 +14,7 @@ export const battle: SimpleTranslationEntries = {
|
|||
"switchQuestion": "Quer trocar\nde {{pokemonName}}?",
|
||||
"trainerDefeated": "Você derrotou\n{{trainerName}}!",
|
||||
"moneyWon": "Você ganhou\n₽{{moneyAmount}} por ganhar!",
|
||||
"moneyPickedUp": "Você pegou ₽{{moneyAmount}} do chão!",
|
||||
"pokemonCaught": "{{pokemonName}} foi capturado!",
|
||||
"addedAsAStarter": "{{pokemonName}} foi adicionado\naos seus iniciais!",
|
||||
"partyFull": "Sua equipe está cheia.\nSolte um Pokémon para ter espaço para {{pokemonName}}?",
|
||||
|
|
|
@ -14,6 +14,7 @@ export const battle: SimpleTranslationEntries = {
|
|||
"switchQuestion": "要更换\n{{pokemonName}}吗?",
|
||||
"trainerDefeated": "你击败了\n{{trainerName}}!",
|
||||
"moneyWon": "你赢得了\n₽{{moneyAmount}}!",
|
||||
"moneyPickedUp": "捡到了 ₽{{moneyAmount}}!",
|
||||
"pokemonCaught": "{{pokemonName}}被抓住了!",
|
||||
"addedAsAStarter": "增加了{{pokemonName}}作为\n一个新的基础宝可梦!",
|
||||
"partyFull": "你的队伍已满员。是否放生其他宝可梦\n为{{pokemonName}}腾出空间?",
|
||||
|
|
|
@ -12,6 +12,7 @@ export const battle: SimpleTranslationEntries = {
|
|||
"trainerGo": "{{trainerName}} 派出了 {{pokemonName}}!",
|
||||
"switchQuestion": "要更換\n{{pokemonName}}嗎?",
|
||||
"trainerDefeated": "你擊敗了\n{{trainerName}}!",
|
||||
"moneyPickedUp": "撿到了 ₽{{moneyAmount}}!",
|
||||
"pokemonCaught": "{{pokemonName}} 被抓住了!",
|
||||
"addedAsAStarter": "{{pokemonName}} has been\nadded as a starter!",
|
||||
"pokemon": "寶可夢",
|
||||
|
|
Loading…
Reference in New Issue