Update src/data/pokemon-species.ts

Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
This commit is contained in:
Amatsune 2024-06-24 16:42:13 +02:00 committed by GitHub
parent 78aab4d356
commit c470c1e2e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}`;
}
}