mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-03-06 18:09:10 +00:00
[UI/UX] Pokédex - New locales keys for standalone battle forms (#5386)
This commit is contained in:
parent
905fec92e9
commit
13373a6391
@ -1 +1 @@
|
|||||||
Subproject commit ef43efffe5fe454862c350f1b9393c3ad755bcc2
|
Subproject commit 5e7fc5ef1968652f2335b17c354db62d8cbec314
|
@ -749,7 +749,7 @@ export default class PokemonSpecies extends PokemonSpeciesForm implements Locali
|
|||||||
if (this.speciesId === Species.ARCEUS) {
|
if (this.speciesId === Species.ARCEUS) {
|
||||||
ret = i18next.t(`pokemonInfo:Type.${formText?.toUpperCase()}`);
|
ret = i18next.t(`pokemonInfo:Type.${formText?.toUpperCase()}`);
|
||||||
} else if ([ SpeciesFormKey.MEGA, SpeciesFormKey.MEGA_X, SpeciesFormKey.MEGA_Y, SpeciesFormKey.PRIMAL, SpeciesFormKey.GIGANTAMAX, SpeciesFormKey.GIGANTAMAX_RAPID, SpeciesFormKey.GIGANTAMAX_SINGLE, SpeciesFormKey.ETERNAMAX ].includes(formKey as SpeciesFormKey)) {
|
} else if ([ SpeciesFormKey.MEGA, SpeciesFormKey.MEGA_X, SpeciesFormKey.MEGA_Y, SpeciesFormKey.PRIMAL, SpeciesFormKey.GIGANTAMAX, SpeciesFormKey.GIGANTAMAX_RAPID, SpeciesFormKey.GIGANTAMAX_SINGLE, SpeciesFormKey.ETERNAMAX ].includes(formKey as SpeciesFormKey)) {
|
||||||
return i18next.t(`battlePokemonForm:${formKey}`, { pokemonName: (append ? this.name : "") });
|
return append ? i18next.t(`battlePokemonForm:${formKey}`, { pokemonName: this.name }) : i18next.t(`pokemonForm:battleForm.${formKey}`);
|
||||||
} else if (region === Region.NORMAL || (this.speciesId === Species.GALAR_DARMANITAN && formIndex > 0) || this.speciesId === Species.PALDEA_TAUROS) { // More special cases can be added here
|
} else if (region === Region.NORMAL || (this.speciesId === Species.GALAR_DARMANITAN && formIndex > 0) || this.speciesId === Species.PALDEA_TAUROS) { // More special cases can be added here
|
||||||
const i18key = `pokemonForm:${speciesName}${formText}`;
|
const i18key = `pokemonForm:${speciesName}${formText}`;
|
||||||
if (i18next.exists(i18key)) {
|
if (i18next.exists(i18key)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user