mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-15 12:52:20 +02:00
Type localization, now type-boosting items descriptions are fully translated
This commit is contained in:
parent
ff086ca492
commit
1accda8c39
@ -385,7 +385,7 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
||||
"CHILL_DRIVE": "Gefriermodul",
|
||||
"DOUSE_DRIVE": "Aquamodul",
|
||||
},
|
||||
TeraType: {
|
||||
Type: {
|
||||
"UNKNOWN": "Unbekannt",
|
||||
"NORMAL": "Normal",
|
||||
"FIGHTING": "Kampf",
|
||||
|
@ -384,7 +384,7 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
||||
"CHILL_DRIVE": "Chill Drive",
|
||||
"DOUSE_DRIVE": "Douse Drive",
|
||||
},
|
||||
TeraType: {
|
||||
Type: {
|
||||
"UNKNOWN": "Unknown",
|
||||
"NORMAL": "Normal",
|
||||
"FIGHTING": "Fighting",
|
||||
|
@ -384,7 +384,7 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
||||
"CHILL_DRIVE": "Chill Drive",
|
||||
"DOUSE_DRIVE": "Douse Drive",
|
||||
},
|
||||
TeraType: {
|
||||
Type: {
|
||||
"UNKNOWN": "Unknown",
|
||||
"NORMAL": "Normal",
|
||||
"FIGHTING": "Fighting",
|
||||
|
@ -384,7 +384,7 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
||||
"CHILL_DRIVE": "Chill Drive",
|
||||
"DOUSE_DRIVE": "Douse Drive",
|
||||
},
|
||||
TeraType: {
|
||||
Type: {
|
||||
"UNKNOWN": "Unknown",
|
||||
"NORMAL": "Normal",
|
||||
"FIGHTING": "Fighting",
|
||||
|
@ -384,7 +384,7 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
||||
"CHILL_DRIVE": "Chill Drive",
|
||||
"DOUSE_DRIVE": "Douse Drive",
|
||||
},
|
||||
TeraType: {
|
||||
Type: {
|
||||
"UNKNOWN": "Unknown",
|
||||
"NORMAL": "Normal",
|
||||
"FIGHTING": "Fighting",
|
||||
|
@ -384,26 +384,26 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
||||
"CHILL_DRIVE": "Chill Drive",
|
||||
"DOUSE_DRIVE": "Douse Drive",
|
||||
},
|
||||
TeraType: {
|
||||
"UNKNOWN": "Unknown",
|
||||
Type: {
|
||||
"UNKNOWN": "Desconhecido",
|
||||
"NORMAL": "Normal",
|
||||
"FIGHTING": "Fighting",
|
||||
"FLYING": "Flying",
|
||||
"POISON": "Poison",
|
||||
"GROUND": "Ground",
|
||||
"ROCK": "Rock",
|
||||
"BUG": "Bug",
|
||||
"GHOST": "Ghost",
|
||||
"STEEL": "Steel",
|
||||
"FIRE": "Fire",
|
||||
"WATER": "Water",
|
||||
"GRASS": "Grass",
|
||||
"ELECTRIC": "Electric",
|
||||
"PSYCHIC": "Psychic",
|
||||
"ICE": "Ice",
|
||||
"DRAGON": "Dragon",
|
||||
"DARK": "Dark",
|
||||
"FAIRY": "Fairy",
|
||||
"STELLAR": "Stellar",
|
||||
"FIGHTING": "Lutador",
|
||||
"FLYING": "Voador",
|
||||
"POISON": "Veneno",
|
||||
"GROUND": "Terra",
|
||||
"ROCK": "Pedra",
|
||||
"BUG": "Inseto",
|
||||
"GHOST": "Fantasma",
|
||||
"STEEL": "Aço",
|
||||
"FIRE": "Fogo",
|
||||
"WATER": "Água",
|
||||
"GRASS": "Grama",
|
||||
"ELECTRIC": "Elétrico",
|
||||
"PSYCHIC": "Psíquico",
|
||||
"ICE": "Gelo",
|
||||
"DRAGON": "Dragão",
|
||||
"DARK": "Sombrio",
|
||||
"FAIRY": "Fada",
|
||||
"STELLAR": "Estelar"
|
||||
},
|
||||
} as const;
|
@ -384,7 +384,7 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
||||
"CHILL_DRIVE": "冰冻卡带",
|
||||
"DOUSE_DRIVE": "水流卡带",
|
||||
},
|
||||
TeraType: {
|
||||
Type: {
|
||||
"UNKNOWN": "Unknown",
|
||||
"NORMAL": "一般",
|
||||
"FIGHTING": "格斗",
|
||||
|
@ -1,26 +1,26 @@
|
||||
import * as Modifiers from './modifier';
|
||||
import { AttackMove, allMoves } from '../data/move';
|
||||
import { Moves } from "../data/enums/moves";
|
||||
import { PokeballType, getPokeballCatchMultiplier, getPokeballName } from '../data/pokeball';
|
||||
import Pokemon, { EnemyPokemon, PlayerPokemon, PokemonMove } from '../field/pokemon';
|
||||
import { EvolutionItem, pokemonEvolutions } from '../data/pokemon-evolutions';
|
||||
import { Stat, getStatName } from '../data/pokemon-stat';
|
||||
import { tmPoolTiers, tmSpecies } from '../data/tms';
|
||||
import { Type } from '../data/type';
|
||||
import PartyUiHandler, { PokemonMoveSelectFilter, PokemonSelectFilter } from '../ui/party-ui-handler';
|
||||
import * as Utils from '../utils';
|
||||
import { TempBattleStat, getTempBattleStatBoosterItemName, getTempBattleStatName } from '../data/temp-battle-stat';
|
||||
import { BerryType, getBerryEffectDescription, getBerryName } from '../data/berry';
|
||||
import { Unlockables } from '../system/unlockables';
|
||||
import { StatusEffect, getStatusEffectDescriptor } from '../data/status-effect';
|
||||
import { SpeciesFormKey } from '../data/pokemon-species';
|
||||
import BattleScene from '../battle-scene';
|
||||
import { VoucherType, getVoucherTypeIcon, getVoucherTypeName } from '../system/voucher';
|
||||
import { FormChangeItem, SpeciesFormChangeItemTrigger, pokemonFormChanges } from '../data/pokemon-forms';
|
||||
import { ModifierTier } from './modifier-tier';
|
||||
import { Nature, getNatureName, getNatureStatMultiplier } from '#app/data/nature';
|
||||
import i18next from '#app/plugins/i18n';
|
||||
import { getModifierTierTextTint } from '#app/ui/text';
|
||||
import BattleScene from '../battle-scene';
|
||||
import { BerryType, getBerryEffectDescription, getBerryName } from '../data/berry';
|
||||
import { Moves } from "../data/enums/moves";
|
||||
import { AttackMove, allMoves } from '../data/move';
|
||||
import { PokeballType, getPokeballCatchMultiplier, getPokeballName } from '../data/pokeball';
|
||||
import { EvolutionItem, pokemonEvolutions } from '../data/pokemon-evolutions';
|
||||
import { FormChangeItem, SpeciesFormChangeItemTrigger, pokemonFormChanges } from '../data/pokemon-forms';
|
||||
import { SpeciesFormKey } from '../data/pokemon-species';
|
||||
import { Stat, getStatName } from '../data/pokemon-stat';
|
||||
import { StatusEffect, getStatusEffectDescriptor } from '../data/status-effect';
|
||||
import { TempBattleStat, getTempBattleStatBoosterItemName, getTempBattleStatName } from '../data/temp-battle-stat';
|
||||
import { tmPoolTiers, tmSpecies } from '../data/tms';
|
||||
import { Type } from '../data/type';
|
||||
import Pokemon, { EnemyPokemon, PlayerPokemon, PokemonMove } from '../field/pokemon';
|
||||
import { Unlockables } from '../system/unlockables';
|
||||
import { VoucherType, getVoucherTypeIcon, getVoucherTypeName } from '../system/voucher';
|
||||
import PartyUiHandler, { PokemonMoveSelectFilter, PokemonSelectFilter } from '../ui/party-ui-handler';
|
||||
import * as Utils from '../utils';
|
||||
import * as Modifiers from './modifier';
|
||||
import { ModifierTier } from './modifier-tier';
|
||||
|
||||
const outputModifierData = false;
|
||||
const useMaxWeightForOutput = false;
|
||||
@ -511,7 +511,7 @@ export class AttackTypeBoosterModifierType extends PokemonHeldItemModifierType i
|
||||
|
||||
getDescription(scene: BattleScene): string {
|
||||
// TODO: Need getTypeName?
|
||||
return i18next.t(`modifierType:ModifierType.AttackTypeBoosterModifierType.description`, { moveType: Utils.toReadableString(Type[this.moveType]) });
|
||||
return i18next.t(`modifierType:ModifierType.AttackTypeBoosterModifierType.description`, { moveType: i18next.t(`modifierType:Type.${Type[this.moveType]}`) });
|
||||
}
|
||||
|
||||
getPregenArgs(): any[] {
|
||||
@ -898,11 +898,11 @@ export class TerastallizeModifierType extends PokemonHeldItemModifierType implem
|
||||
}
|
||||
|
||||
get name(): string {
|
||||
return i18next.t(`modifierType:ModifierType.TerastallizeModifierType.name`, { teraType: i18next.t(`modifierType:TeraType.${Type[this.teraType]}`) });
|
||||
return i18next.t(`modifierType:ModifierType.TerastallizeModifierType.name`, { teraType: i18next.t(`modifierType:Type.${Type[this.teraType]}`) });
|
||||
}
|
||||
|
||||
getDescription(scene: BattleScene): string {
|
||||
return i18next.t(`modifierType:ModifierType.TerastallizeModifierType.description`, { teraType: i18next.t(`modifierType:TeraType.${Type[this.teraType]}`) });
|
||||
return i18next.t(`modifierType:ModifierType.TerastallizeModifierType.description`, { teraType: i18next.t(`modifierType:Type.${Type[this.teraType]}`) });
|
||||
}
|
||||
|
||||
getPregenArgs(): any[] {
|
||||
|
@ -43,7 +43,7 @@ export interface ModifierTypeTranslationEntries {
|
||||
BaseStatBoosterItem: SimpleTranslationEntries,
|
||||
EvolutionItem: SimpleTranslationEntries,
|
||||
FormChangeItem: SimpleTranslationEntries,
|
||||
TeraType: SimpleTranslationEntries,
|
||||
Type: SimpleTranslationEntries,
|
||||
}
|
||||
|
||||
export interface Localizable {
|
||||
|
Loading…
Reference in New Issue
Block a user