[Localization] Add localization of message when pokemon fainted in battle phase. (#1934)

* [Localization] Add localization of message when pokemon fainted in battle phase.

* Correction of Deutsch localization

* [Localization] Add localization of message when pokemon fainted in battle phase.

* Correction of Deutsch localization
This commit is contained in:
Lee ByungHoon 2024-06-12 10:41:24 +09:00 committed by GitHub
parent f57798fd1d
commit 7fe5962d28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 19 additions and 10 deletions

View File

@ -60,5 +60,6 @@ export const battle: SimpleTranslationEntries = {
"foePokemonWithAffix": "{{pokemonName}} (Gegner)",
"useMove": "{{pokemonNameWithAffix}} setzt {{moveName}} ein!",
"drainMessage": "{{pokemonName}} wurde Energie abgesaugt",
"regainHealth": "KP von {{pokemonName}} wurden wieder aufgefrischt!"
"regainHealth": "KP von {{pokemonName}} wurden wieder aufgefrischt!",
"fainted": "{{pokemonNameWithAffix}} wurde besiegt!"
} as const;

View File

@ -60,5 +60,6 @@ export const battle: SimpleTranslationEntries = {
"foePokemonWithAffix": "Foe {{pokemonName}}",
"useMove": "{{pokemonNameWithAffix}} used {{moveName}}!",
"drainMessage": "{{pokemonName}} had its\nenergy drained!",
"regainHealth": "{{pokemonName}} regained\nhealth!"
"regainHealth": "{{pokemonName}} regained\nhealth!",
"fainted": "{{pokemonNameWithAffix}} fainted!"
} as const;

View File

@ -60,5 +60,6 @@ export const battle: SimpleTranslationEntries = {
"foePokemonWithAffix": "El {{pokemonName}} enemigo",
"useMove": "¡{{pokemonNameWithAffix}} usó {{moveName}}!",
"drainMessage": "¡{{pokemonName}} tuvo su\nenergía absorbida!",
"regainHealth": "¡{{pokemonName}} recuperó\nPS!"
"regainHealth": "¡{{pokemonName}} recuperó\nPS!",
"fainted": "{{pokemonNameWithAffix}} fainted!"
} as const;

View File

@ -60,5 +60,6 @@ export const battle: SimpleTranslationEntries = {
"foePokemonWithAffix": "{{pokemonName}} ennemi",
"useMove": "{{pokemonNameWithAffix}} utilise\n{{moveName}} !",
"drainMessage": "{{pokemonName}} had its\nenergy drained!",
"regainHealth": "{{pokemonName}} regained\nhealth!"
"regainHealth": "{{pokemonName}} regained\nhealth!",
"fainted": "{{pokemonNameWithAffix}} fainted!"
} as const;

View File

@ -60,5 +60,6 @@ export const battle: SimpleTranslationEntries = {
"foePokemonWithAffix": "Foe {{pokemonName}}",
"useMove": "{{pokemonNameWithAffix}} used {{moveName}}!",
"drainMessage": "{{pokemonName}} had its\nenergy drained!",
"regainHealth": "{{pokemonName}} regained\nhealth!"
"regainHealth": "{{pokemonName}} regained\nhealth!",
"fainted": "{{pokemonNameWithAffix}} fainted!"
} as const;

View File

@ -60,5 +60,6 @@ export const battle: SimpleTranslationEntries = {
"foePokemonWithAffix": "상대 {{pokemonName}}",
"useMove": "{{pokemonNameWithAffix}}의 {{moveName}}!",
"drainMessage": "{{pokemonName}}[[로]]부터\n체력을 흡수했다!",
"regainHealth": "{{pokemonName}}[[는]]\n기력을 회복했다!"
"regainHealth": "{{pokemonName}}[[는]]\n기력을 회복했다!",
"fainted": "{{pokemonNameWithAffix}}[[는]] 쓰러졌다!",
} as const;

View File

@ -60,5 +60,6 @@ export const battle: SimpleTranslationEntries = {
"foePokemonWithAffix": "{{pokemonName}} adversário",
"useMove": "{{pokemonNameWithAffix}} usou {{moveName}}!",
"drainMessage": "{{pokemonName}} teve sua\nenergia drenada!",
"regainHealth": "{{pokemonName}} recuperou\npontos de saúde!"
"regainHealth": "{{pokemonName}} recuperou\npontos de saúde!",
"fainted": "{{pokemonNameWithAffix}} fainted!"
} as const;

View File

@ -60,5 +60,6 @@ export const battle: SimpleTranslationEntries = {
"foePokemonWithAffix": "Foe {{pokemonName}}",
"useMove": "{{pokemonNameWithAffix}} used {{moveName}}!",
"drainMessage": "{{pokemonName}} had its\nenergy drained!",
"regainHealth": "{{pokemonName}} regained\nhealth!"
"regainHealth": "{{pokemonName}} regained\nhealth!",
"fainted": "{{pokemonNameWithAffix}} fainted!"
} as const;

View File

@ -57,5 +57,6 @@ export const battle: SimpleTranslationEntries = {
"foePokemonWithAffix": "Foe {{pokemonName}}",
"useMove": "{{pokemonNameWithAffix}} used {{moveName}}!",
"drainMessage": "{{pokemonName}} had its\nenergy drained!",
"regainHealth": "{{pokemonName}} regained\nhealth!"
"regainHealth": "{{pokemonName}} regained\nhealth!",
"fainted": "{{pokemonNameWithAffix}} fainted!"
} as const;

View File

@ -3639,7 +3639,7 @@ export class FaintPhase extends PokemonPhase {
this.scene.currentBattle.enemyFaints += 1;
}
this.scene.queueMessage(getPokemonMessage(pokemon, " fainted!"), null, true);
this.scene.queueMessage(i18next.t("battle:fainted", { pokemonNameWithAffix: getPokemonNameWithAffix(pokemon) }), null, true);
if (pokemon.turnData?.attacksReceived?.length) {
const lastAttack = pokemon.turnData.attacksReceived[0];