From c470c1e2e25146552ec49c2342cdfb6931b9de5e Mon Sep 17 00:00:00 2001 From: Amatsune <48121978+amatsune@users.noreply.github.com> Date: Mon, 24 Jun 2024 16:42:13 +0200 Subject: [PATCH] Update src/data/pokemon-species.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> --- src/data/pokemon-species.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/data/pokemon-species.ts b/src/data/pokemon-species.ts index 20de2c5baf2..044e0015ecc 100644 --- a/src/data/pokemon-species.ts +++ b/src/data/pokemon-species.ts @@ -51,9 +51,11 @@ export function getPokemonSpeciesForm(species: Species, formIndex: integer): Pok } export function getFusedSpeciesName(speciesA: PokemonSpecies, speciesB: PokemonSpecies): string { -//I WAS HERE, DON'T KNOW HOW TO MAKE THIS WORK -// Basically the only thing missing is now to get the non local species name in lowercase -return i18next.t(fusionAffixes:${speciesA}.fusionPrefix)+i18next.t(fusionAffixes:${speciesB}.fusionSuffix) + const prefix = i18next.t(`fusionAffixes:${Species[speciesA.speciesId].toLowerCase()}.fusionPrefix`); + const suffix = i18next.t(`fusionAffixes:${Species[speciesB.speciesId].toLowerCase()}.fusionSuffix`); + + return `${prefix}${suffix}`; +} }