feat: Make Uproar translatable

This commit is contained in:
3ae3ae 2024-07-05 09:25:19 +09:00
parent cd5a0ef2ff
commit 1154baf04e
2 changed files with 5 additions and 2 deletions

View File

@ -3916,7 +3916,9 @@ export class UproarMessage extends MoveEffectAttr {
super();
}
apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean {
user.scene.queueMessage(getPokemonMessage(user, " caused\nan uproar!"));
user.scene.queueMessage(i18next.t("battle:battlerTagsUproar", {
pokemonNameWithAffix: getPokemonNameWithAffix(user),
}));
return true;
}
}

View File

@ -132,5 +132,6 @@ export const battle: SimpleTranslationEntries = {
"battlerTagsSaltCuredOnAdd": "{{pokemonNameWithAffix}} is being salt cured!",
"battlerTagsSaltCuredLapse": "{{pokemonNameWithAffix}} is hurt by {{moveName}}!",
"battlerTagsCursedOnAdd": "{{pokemonNameWithAffix}} cut its own HP and put a curse on the {{pokemonName}}!",
"battlerTagsCursedLapse": "{{pokemonNameWithAffix}} is afflicted by the Curse!"
"battlerTagsCursedLapse": "{{pokemonNameWithAffix}} is afflicted by the Curse!",
"battlerTagsUproar": "{{pokemonNameWithAffix}} caused\nan uproar!",
} as const;