mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-25 08:16:04 +00:00
Type localization instead of TeraType (#981)
* Type localization, now type-boosting items descriptions are fully translated * pokemon-stat refactoration * reverted import changes
This commit is contained in:
parent
03c4b1b821
commit
3cc9c93643
@ -13,22 +13,22 @@ export function getStatName(stat: Stat, shorten: boolean = false) {
|
||||
let ret: string;
|
||||
switch (stat) {
|
||||
case Stat.HP:
|
||||
ret = !shorten ? i18next.t('pokemonStat:HP') : i18next.t('pokemonStat:HPshortened');
|
||||
ret = !shorten ? i18next.t('pokemonInfo:Stat.HP') : i18next.t('pokemonInfo:Stat.HPshortened');
|
||||
break;
|
||||
case Stat.ATK:
|
||||
ret = !shorten ? i18next.t('pokemonStat:ATK') : i18next.t('pokemonStat:ATKshortened');
|
||||
ret = !shorten ? i18next.t('pokemonInfo:Stat.ATK') : i18next.t('pokemonInfo:Stat.ATKshortened');
|
||||
break;
|
||||
case Stat.DEF:
|
||||
ret = !shorten ? i18next.t('pokemonStat:DEF') : i18next.t('pokemonStat:DEFshortened');
|
||||
ret = !shorten ? i18next.t('pokemonInfo:Stat.DEF') : i18next.t('pokemonInfo:Stat.DEFshortened');
|
||||
break;
|
||||
case Stat.SPATK:
|
||||
ret = !shorten ? i18next.t('pokemonStat:SPATK') : i18next.t('pokemonStat:SPATKshortened');
|
||||
ret = !shorten ? i18next.t('pokemonInfo:Stat.SPATK') : i18next.t('pokemonInfo:Stat.SPATKshortened');
|
||||
break;
|
||||
case Stat.SPDEF:
|
||||
ret = !shorten ? i18next.t('pokemonStat:SPDEF') : i18next.t('pokemonStat:SPDEFshortened');
|
||||
ret = !shorten ? i18next.t('pokemonInfo:Stat.SPDEF') : i18next.t('pokemonInfo:Stat.SPDEFshortened');
|
||||
break;
|
||||
case Stat.SPD:
|
||||
ret = !shorten ? i18next.t('pokemonStat:SPD') : i18next.t('pokemonStat:SPDshortened');
|
||||
ret = !shorten ? i18next.t('pokemonInfo:Stat.SPD') : i18next.t('pokemonInfo:Stat.SPDshortened');
|
||||
break;
|
||||
}
|
||||
return ret;
|
||||
|
@ -12,7 +12,7 @@ import { move } from "./move";
|
||||
import { nature } from "./nature";
|
||||
import { pokeball } from "./pokeball";
|
||||
import { pokemon } from "./pokemon";
|
||||
import { pokemonStat } from "./pokemon-stat";
|
||||
import { pokemonInfo } from "./pokemon-info";
|
||||
import { splashMessages } from "./splash-messages";
|
||||
import { starterSelectUiHandler } from "./starter-select-ui-handler";
|
||||
import { titles, trainerClasses, trainerNames } from "./trainers";
|
||||
@ -36,7 +36,7 @@ export const deConfig = {
|
||||
nature: nature,
|
||||
pokeball: pokeball,
|
||||
pokemon: pokemon,
|
||||
pokemonStat: pokemonStat,
|
||||
pokemonInfo: pokemonInfo,
|
||||
splashMessages: splashMessages,
|
||||
starterSelectUiHandler: starterSelectUiHandler,
|
||||
titles: titles,
|
||||
|
@ -385,26 +385,4 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
||||
"CHILL_DRIVE": "Gefriermodul",
|
||||
"DOUSE_DRIVE": "Aquamodul",
|
||||
},
|
||||
TeraType: {
|
||||
"UNKNOWN": "Unbekannt",
|
||||
"NORMAL": "Normal",
|
||||
"FIGHTING": "Kampf",
|
||||
"FLYING": "Flug",
|
||||
"POISON": "Gift",
|
||||
"GROUND": "Boden",
|
||||
"ROCK": "Gestein",
|
||||
"BUG": "Käfer",
|
||||
"GHOST": "Geist",
|
||||
"STEEL": "Stahl",
|
||||
"FIRE": "Feuer",
|
||||
"WATER": "Wasser",
|
||||
"GRASS": "Pflanze",
|
||||
"ELECTRIC": "Elektro",
|
||||
"PSYCHIC": "Psycho",
|
||||
"ICE": "Eis",
|
||||
"DRAGON": "Drache",
|
||||
"DARK": "Unlicht",
|
||||
"FAIRY": "Fee",
|
||||
"STELLAR": "Stellar",
|
||||
},
|
||||
} as const;
|
41
src/locales/de/pokemon-info.ts
Normal file
41
src/locales/de/pokemon-info.ts
Normal file
@ -0,0 +1,41 @@
|
||||
import { PokemonInfoTranslationEntries } from "#app/plugins/i18n";
|
||||
|
||||
export const pokemonInfo: PokemonInfoTranslationEntries = {
|
||||
Stat: {
|
||||
"HP": "Max. KP",
|
||||
"HPshortened": "MaxKP",
|
||||
"ATK": "Angriff",
|
||||
"ATKshortened": "Ang",
|
||||
"DEF": "Verteidigung",
|
||||
"DEFshortened": "Vert",
|
||||
"SPATK": "Sp. Ang",
|
||||
"SPATKshortened": "SpAng",
|
||||
"SPDEF": "Sp. Vert",
|
||||
"SPDEFshortened": "SpVert",
|
||||
"SPD": "Initiative",
|
||||
"SPDshortened": "Init",
|
||||
},
|
||||
|
||||
Type: {
|
||||
"UNKNOWN": "Unbekannt",
|
||||
"NORMAL": "Normal",
|
||||
"FIGHTING": "Kampf",
|
||||
"FLYING": "Flug",
|
||||
"POISON": "Gift",
|
||||
"GROUND": "Boden",
|
||||
"ROCK": "Gestein",
|
||||
"BUG": "Käfer",
|
||||
"GHOST": "Geist",
|
||||
"STEEL": "Stahl",
|
||||
"FIRE": "Feuer",
|
||||
"WATER": "Wasser",
|
||||
"GRASS": "Pflanze",
|
||||
"ELECTRIC": "Elektro",
|
||||
"PSYCHIC": "Psycho",
|
||||
"ICE": "Eis",
|
||||
"DRAGON": "Drache",
|
||||
"DARK": "Unlicht",
|
||||
"FAIRY": "Fee",
|
||||
"STELLAR": "Stellar",
|
||||
},
|
||||
} as const;
|
@ -1,16 +0,0 @@
|
||||
import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||
|
||||
export const pokemonStat: SimpleTranslationEntries = {
|
||||
"HP": "Max. KP",
|
||||
"HPshortened": "MaxKP",
|
||||
"ATK": "Angriff",
|
||||
"ATKshortened": "Ang",
|
||||
"DEF": "Verteidigung",
|
||||
"DEFshortened": "Vert",
|
||||
"SPATK": "Sp. Ang",
|
||||
"SPATKshortened": "SpAng",
|
||||
"SPDEF": "Sp. Vert",
|
||||
"SPDEFshortened": "SpVert",
|
||||
"SPD": "Initiative",
|
||||
"SPDshortened": "Init"
|
||||
} as const;
|
@ -12,7 +12,7 @@ import { move } from "./move";
|
||||
import { nature } from "./nature";
|
||||
import { pokeball } from "./pokeball";
|
||||
import { pokemon } from "./pokemon";
|
||||
import { pokemonStat } from "./pokemon-stat";
|
||||
import { pokemonInfo } from "./pokemon-info";
|
||||
import { splashMessages } from "./splash-messages";
|
||||
import { starterSelectUiHandler } from "./starter-select-ui-handler";
|
||||
import { titles, trainerClasses, trainerNames } from "./trainers";
|
||||
@ -36,7 +36,7 @@ export const enConfig = {
|
||||
nature: nature,
|
||||
pokeball: pokeball,
|
||||
pokemon: pokemon,
|
||||
pokemonStat: pokemonStat,
|
||||
pokemonInfo: pokemonInfo,
|
||||
splashMessages: splashMessages,
|
||||
starterSelectUiHandler: starterSelectUiHandler,
|
||||
titles: titles,
|
||||
|
@ -384,26 +384,4 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
||||
"CHILL_DRIVE": "Chill Drive",
|
||||
"DOUSE_DRIVE": "Douse Drive",
|
||||
},
|
||||
TeraType: {
|
||||
"UNKNOWN": "Unknown",
|
||||
"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",
|
||||
},
|
||||
} as const;
|
41
src/locales/en/pokemon-info.ts
Normal file
41
src/locales/en/pokemon-info.ts
Normal file
@ -0,0 +1,41 @@
|
||||
import { PokemonInfoTranslationEntries } from "#app/plugins/i18n";
|
||||
|
||||
export const pokemonInfo: PokemonInfoTranslationEntries = {
|
||||
Stat: {
|
||||
"HP": "Max. HP",
|
||||
"HPshortened": "MaxHP",
|
||||
"ATK": "Attack",
|
||||
"ATKshortened": "Atk",
|
||||
"DEF": "Defense",
|
||||
"DEFshortened": "Def",
|
||||
"SPATK": "Sp. Atk",
|
||||
"SPATKshortened": "SpAtk",
|
||||
"SPDEF": "Sp. Def",
|
||||
"SPDEFshortened": "SpDef",
|
||||
"SPD": "Speed",
|
||||
"SPDshortened": "Spd"
|
||||
},
|
||||
|
||||
Type: {
|
||||
"UNKNOWN": "Unknown",
|
||||
"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",
|
||||
},
|
||||
} as const;
|
@ -1,16 +0,0 @@
|
||||
import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||
|
||||
export const pokemonStat: SimpleTranslationEntries = {
|
||||
"HP": "Max. HP",
|
||||
"HPshortened": "MaxHP",
|
||||
"ATK": "Attack",
|
||||
"ATKshortened": "Atk",
|
||||
"DEF": "Defense",
|
||||
"DEFshortened": "Def",
|
||||
"SPATK": "Sp. Atk",
|
||||
"SPATKshortened": "SpAtk",
|
||||
"SPDEF": "Sp. Def",
|
||||
"SPDEFshortened": "SpDef",
|
||||
"SPD": "Speed",
|
||||
"SPDshortened": "Spd"
|
||||
} as const;
|
@ -12,7 +12,7 @@ import { move } from "./move";
|
||||
import { nature } from "./nature";
|
||||
import { pokeball } from "./pokeball";
|
||||
import { pokemon } from "./pokemon";
|
||||
import { pokemonStat } from "./pokemon-stat";
|
||||
import { pokemonInfo } from "./pokemon-info";
|
||||
import { splashMessages } from "./splash-messages";
|
||||
import { starterSelectUiHandler } from "./starter-select-ui-handler";
|
||||
import { titles, trainerClasses, trainerNames } from "./trainers";
|
||||
@ -36,7 +36,7 @@ export const esConfig = {
|
||||
nature: nature,
|
||||
pokeball: pokeball,
|
||||
pokemon: pokemon,
|
||||
pokemonStat: pokemonStat,
|
||||
pokemonInfo: pokemonInfo,
|
||||
splashMessages: splashMessages,
|
||||
starterSelectUiHandler: starterSelectUiHandler,
|
||||
titles: titles,
|
||||
|
@ -384,26 +384,4 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
||||
"CHILL_DRIVE": "Chill Drive",
|
||||
"DOUSE_DRIVE": "Douse Drive",
|
||||
},
|
||||
TeraType: {
|
||||
"UNKNOWN": "Unknown",
|
||||
"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",
|
||||
},
|
||||
} as const;
|
41
src/locales/es/pokemon-info.ts
Normal file
41
src/locales/es/pokemon-info.ts
Normal file
@ -0,0 +1,41 @@
|
||||
import { PokemonInfoTranslationEntries } from "#app/plugins/i18n";
|
||||
|
||||
export const pokemonInfo: PokemonInfoTranslationEntries = {
|
||||
Stat: {
|
||||
"HP": "PV",
|
||||
"HPshortened": "PV",
|
||||
"ATK": "Ataque",
|
||||
"ATKshortened": "Ata",
|
||||
"DEF": "Defensa",
|
||||
"DEFshortened": "Def",
|
||||
"SPATK": "At. Esp.",
|
||||
"SPATKshortened": "AtEsp",
|
||||
"SPDEF": "Def. Esp.",
|
||||
"SPDEFshortened": "DefEsp",
|
||||
"SPD": "Velocidad",
|
||||
"SPDshortened": "Veloc."
|
||||
},
|
||||
|
||||
Type: {
|
||||
"UNKNOWN": "Unknown",
|
||||
"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",
|
||||
},
|
||||
} as const;
|
@ -1,16 +0,0 @@
|
||||
import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||
|
||||
export const pokemonStat: SimpleTranslationEntries = {
|
||||
"HP": "PV",
|
||||
"HPshortened": "PV",
|
||||
"ATK": "Ataque",
|
||||
"ATKshortened": "Ata",
|
||||
"DEF": "Defensa",
|
||||
"DEFshortened": "Def",
|
||||
"SPATK": "At. Esp.",
|
||||
"SPATKshortened": "AtEsp",
|
||||
"SPDEF": "Def. Esp.",
|
||||
"SPDEFshortened": "DefEsp",
|
||||
"SPD": "Velocidad",
|
||||
"SPDshortened": "Veloc."
|
||||
} as const;
|
@ -12,7 +12,7 @@ import { move } from "./move";
|
||||
import { nature } from "./nature";
|
||||
import { pokeball } from "./pokeball";
|
||||
import { pokemon } from "./pokemon";
|
||||
import { pokemonStat } from "./pokemon-stat";
|
||||
import { pokemonInfo } from "./pokemon-info";
|
||||
import { splashMessages } from "./splash-messages";
|
||||
import { starterSelectUiHandler } from "./starter-select-ui-handler";
|
||||
import { titles, trainerClasses, trainerNames } from "./trainers";
|
||||
@ -36,7 +36,7 @@ export const frConfig = {
|
||||
nature: nature,
|
||||
pokeball: pokeball,
|
||||
pokemon: pokemon,
|
||||
pokemonStat: pokemonStat,
|
||||
pokemonInfo: pokemonInfo,
|
||||
splashMessages: splashMessages,
|
||||
starterSelectUiHandler: starterSelectUiHandler,
|
||||
titles: titles,
|
||||
|
@ -384,26 +384,4 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
||||
"CHILL_DRIVE": "Module Aqua",
|
||||
"DOUSE_DRIVE": "Module Choc",
|
||||
},
|
||||
TeraType: {
|
||||
"UNKNOWN": "Inconnu",
|
||||
"NORMAL": "Normal",
|
||||
"FIGHTING": "Combat",
|
||||
"FLYING": "Vol",
|
||||
"POISON": "Poison",
|
||||
"GROUND": "Sol",
|
||||
"ROCK": "Roche",
|
||||
"BUG": "Insecte",
|
||||
"GHOST": "Spectre",
|
||||
"STEEL": "Acier",
|
||||
"FIRE": "Feu",
|
||||
"WATER": "Eau",
|
||||
"GRASS": "Plante",
|
||||
"ELECTRIC": "Électrik",
|
||||
"PSYCHIC": "Psy",
|
||||
"ICE": "Glace",
|
||||
"DRAGON": "Dragon",
|
||||
"DARK": "Ténèbres",
|
||||
"FAIRY": "Fée",
|
||||
"STELLAR": "Stellaire",
|
||||
},
|
||||
} as const;
|
||||
|
41
src/locales/fr/pokemon-info.ts
Normal file
41
src/locales/fr/pokemon-info.ts
Normal file
@ -0,0 +1,41 @@
|
||||
import { PokemonInfoTranslationEntries } from "#app/plugins/i18n";
|
||||
|
||||
export const pokemonInfo: PokemonInfoTranslationEntries = {
|
||||
Stat: {
|
||||
"HP": "PV",
|
||||
"HPshortened": "PV",
|
||||
"ATK": "Attaque",
|
||||
"ATKshortened": "Atq",
|
||||
"DEF": "Défense",
|
||||
"DEFshortened": "Déf",
|
||||
"SPATK": "Atq. Spé.",
|
||||
"SPATKshortened": "AtqSp",
|
||||
"SPDEF": "Déf. Spé.",
|
||||
"SPDEFshortened": "DéfSp",
|
||||
"SPD": "Vitesse",
|
||||
"SPDshortened": "Vit"
|
||||
},
|
||||
|
||||
Type: {
|
||||
"UNKNOWN": "Inconnu",
|
||||
"NORMAL": "Normal",
|
||||
"FIGHTING": "Combat",
|
||||
"FLYING": "Vol",
|
||||
"POISON": "Poison",
|
||||
"GROUND": "Sol",
|
||||
"ROCK": "Roche",
|
||||
"BUG": "Insecte",
|
||||
"GHOST": "Spectre",
|
||||
"STEEL": "Acier",
|
||||
"FIRE": "Feu",
|
||||
"WATER": "Eau",
|
||||
"GRASS": "Plante",
|
||||
"ELECTRIC": "Électrik",
|
||||
"PSYCHIC": "Psy",
|
||||
"ICE": "Glace",
|
||||
"DRAGON": "Dragon",
|
||||
"DARK": "Ténèbres",
|
||||
"FAIRY": "Fée",
|
||||
"STELLAR": "Stellaire",
|
||||
},
|
||||
} as const;
|
@ -1,16 +0,0 @@
|
||||
import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||
|
||||
export const pokemonStat: SimpleTranslationEntries = {
|
||||
"HP": "PV",
|
||||
"HPshortened": "PV",
|
||||
"ATK": "Attaque",
|
||||
"ATKshortened": "Atq",
|
||||
"DEF": "Défense",
|
||||
"DEFshortened": "Déf",
|
||||
"SPATK": "Atq. Spé.",
|
||||
"SPATKshortened": "AtqSp",
|
||||
"SPDEF": "Déf. Spé.",
|
||||
"SPDEFshortened": "DéfSp",
|
||||
"SPD": "Vitesse",
|
||||
"SPDshortened": "Vit"
|
||||
} as const;
|
@ -12,7 +12,7 @@ import { move } from "./move";
|
||||
import { nature } from "./nature";
|
||||
import { pokeball } from "./pokeball";
|
||||
import { pokemon } from "./pokemon";
|
||||
import { pokemonStat } from "./pokemon-stat";
|
||||
import { pokemonInfo } from "./pokemon-info";
|
||||
import { splashMessages } from "./splash-messages";
|
||||
import { starterSelectUiHandler } from "./starter-select-ui-handler";
|
||||
import { titles, trainerClasses, trainerNames } from "./trainers";
|
||||
@ -36,7 +36,7 @@ export const itConfig = {
|
||||
nature: nature,
|
||||
pokeball: pokeball,
|
||||
pokemon: pokemon,
|
||||
pokemonStat: pokemonStat,
|
||||
pokemonInfo: pokemonInfo,
|
||||
splashMessages: splashMessages,
|
||||
starterSelectUiHandler: starterSelectUiHandler,
|
||||
titles: titles,
|
||||
|
@ -384,26 +384,4 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
||||
"CHILL_DRIVE": "Gelomodulo",
|
||||
"DOUSE_DRIVE": "Idromodulo",
|
||||
},
|
||||
TeraType: {
|
||||
"UNKNOWN": "Sconosciuto",
|
||||
"NORMAL": "Normale",
|
||||
"FIGHTING": "Lotta",
|
||||
"FLYING": "Volante",
|
||||
"POISON": "Veleno",
|
||||
"GROUND": "Terra",
|
||||
"ROCK": "Roccia",
|
||||
"BUG": "Coleottero",
|
||||
"GHOST": "Spettro",
|
||||
"STEEL": "Acciaio",
|
||||
"FIRE": "Fuoco",
|
||||
"WATER": "Acqua",
|
||||
"GRASS": "Erba",
|
||||
"ELECTRIC": "Elettro",
|
||||
"PSYCHIC": "Psico",
|
||||
"ICE": "Ghiaccio",
|
||||
"DRAGON": "Drago",
|
||||
"DARK": "Buio",
|
||||
"FAIRY": "Folletto",
|
||||
"STELLAR": "Astrale",
|
||||
},
|
||||
} as const;
|
41
src/locales/it/pokemon-info.ts
Normal file
41
src/locales/it/pokemon-info.ts
Normal file
@ -0,0 +1,41 @@
|
||||
import { PokemonInfoTranslationEntries } from "#app/plugins/i18n";
|
||||
|
||||
export const pokemonInfo: PokemonInfoTranslationEntries = {
|
||||
Stat: {
|
||||
"HP": "PS Max",
|
||||
"HPshortened": "PS",
|
||||
"ATK": "Attacco",
|
||||
"ATKshortened": "Att",
|
||||
"DEF": "Difesa",
|
||||
"DEFshortened": "Dif",
|
||||
"SPATK": "Att. Sp.",
|
||||
"SPATKshortened": "AttSp",
|
||||
"SPDEF": "Dif. Sp.",
|
||||
"SPDEFshortened": "DifSp",
|
||||
"SPD": "Velocità",
|
||||
"SPDshortened": "Vel"
|
||||
},
|
||||
|
||||
Type: {
|
||||
"UNKNOWN": "Sconosciuto",
|
||||
"NORMAL": "Normale",
|
||||
"FIGHTING": "Lotta",
|
||||
"FLYING": "Volante",
|
||||
"POISON": "Veleno",
|
||||
"GROUND": "Terra",
|
||||
"ROCK": "Roccia",
|
||||
"BUG": "Coleottero",
|
||||
"GHOST": "Spettro",
|
||||
"STEEL": "Acciaio",
|
||||
"FIRE": "Fuoco",
|
||||
"WATER": "Acqua",
|
||||
"GRASS": "Erba",
|
||||
"ELECTRIC": "Elettro",
|
||||
"PSYCHIC": "Psico",
|
||||
"ICE": "Ghiaccio",
|
||||
"DRAGON": "Drago",
|
||||
"DARK": "Buio",
|
||||
"FAIRY": "Folletto",
|
||||
"STELLAR": "Astrale",
|
||||
},
|
||||
} as const;
|
@ -1,16 +0,0 @@
|
||||
import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||
|
||||
export const pokemonStat: SimpleTranslationEntries = {
|
||||
"HP": "PS Max",
|
||||
"HPshortened": "PS",
|
||||
"ATK": "Attacco",
|
||||
"ATKshortened": "Att",
|
||||
"DEF": "Difesa",
|
||||
"DEFshortened": "Dif",
|
||||
"SPATK": "Att. Sp.",
|
||||
"SPATKshortened": "AttSp",
|
||||
"SPDEF": "Dif. Sp.",
|
||||
"SPDEFshortened": "DifSp",
|
||||
"SPD": "Velocità",
|
||||
"SPDshortened": "Vel"
|
||||
} as const;
|
@ -10,7 +10,7 @@ import { move } from "./move";
|
||||
import { nature } from "./nature";
|
||||
import { pokeball } from "./pokeball";
|
||||
import { pokemon } from "./pokemon";
|
||||
import { pokemonStat } from "./pokemon-stat";
|
||||
import { pokemonInfo } from "./pokemon-info";
|
||||
import { starterSelectUiHandler } from "./starter-select-ui-handler";
|
||||
import { tutorial } from "./tutorial";
|
||||
import { weather } from "./weather";
|
||||
@ -26,7 +26,7 @@ export const ptBrConfig = {
|
||||
menu: menu,
|
||||
move: move,
|
||||
pokeball: pokeball,
|
||||
pokemonStat: pokemonStat,
|
||||
pokemonInfo: pokemonInfo,
|
||||
pokemon: pokemon,
|
||||
starterSelectUiHandler: starterSelectUiHandler,
|
||||
tutorial: tutorial,
|
||||
|
@ -384,26 +384,4 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
||||
"CHILL_DRIVE": "Chill Drive",
|
||||
"DOUSE_DRIVE": "Douse Drive",
|
||||
},
|
||||
TeraType: {
|
||||
"UNKNOWN": "Unknown",
|
||||
"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",
|
||||
},
|
||||
} as const;
|
41
src/locales/pt_BR/pokemon-info.ts
Normal file
41
src/locales/pt_BR/pokemon-info.ts
Normal file
@ -0,0 +1,41 @@
|
||||
import { PokemonInfoTranslationEntries } from "#app/plugins/i18n";
|
||||
|
||||
export const pokemonInfo: PokemonInfoTranslationEntries = {
|
||||
Stat: {
|
||||
"HP": "PS",
|
||||
"HPshortened": "PS",
|
||||
"ATK": "Ataque",
|
||||
"ATKshortened": "Ata",
|
||||
"DEF": "Defesa",
|
||||
"DEFshortened": "Def",
|
||||
"SPATK": "At. Esp.",
|
||||
"SPATKshortened": "AtEsp",
|
||||
"SPDEF": "Def. Esp.",
|
||||
"SPDEFshortened": "DefEsp",
|
||||
"SPD": "Veloc.",
|
||||
"SPDshortened": "Veloc."
|
||||
},
|
||||
|
||||
Type: {
|
||||
"UNKNOWN": "Desconhecido",
|
||||
"NORMAL": "Normal",
|
||||
"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;
|
@ -1,16 +0,0 @@
|
||||
import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||
|
||||
export const pokemonStat: SimpleTranslationEntries = {
|
||||
"HP": "PS",
|
||||
"HPshortened": "PS",
|
||||
"ATK": "Ataque",
|
||||
"ATKshortened": "Ata",
|
||||
"DEF": "Defesa",
|
||||
"DEFshortened": "Def",
|
||||
"SPATK": "At. Esp.",
|
||||
"SPATKshortened": "AtEsp",
|
||||
"SPDEF": "Def. Esp.",
|
||||
"SPDEFshortened": "DefEsp",
|
||||
"SPD": "Veloc.",
|
||||
"SPDshortened": "Veloc."
|
||||
} as const;
|
@ -12,7 +12,7 @@ import { move } from "./move";
|
||||
import { nature } from "./nature";
|
||||
import { pokeball } from "./pokeball";
|
||||
import { pokemon } from "./pokemon";
|
||||
import { pokemonStat } from "./pokemon-stat";
|
||||
import { pokemonInfo } from "./pokemon-info";
|
||||
// import { splashMessages } from "./splash-messages";
|
||||
import { starterSelectUiHandler } from "./starter-select-ui-handler";
|
||||
import { titles, trainerClasses, trainerNames } from "./trainers";
|
||||
@ -36,7 +36,7 @@ export const zhCnConfig = {
|
||||
nature: nature,
|
||||
pokeball: pokeball,
|
||||
pokemon: pokemon,
|
||||
pokemonStat: pokemonStat,
|
||||
pokemonInfo: pokemonInfo,
|
||||
// splashMessages: splashMessages,
|
||||
starterSelectUiHandler: starterSelectUiHandler,
|
||||
titles: titles,
|
||||
|
@ -384,26 +384,4 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
||||
"CHILL_DRIVE": "冰冻卡带",
|
||||
"DOUSE_DRIVE": "水流卡带",
|
||||
},
|
||||
TeraType: {
|
||||
"UNKNOWN": "Unknown",
|
||||
"NORMAL": "一般",
|
||||
"FIGHTING": "格斗",
|
||||
"FLYING": "飞行",
|
||||
"POISON": "毒",
|
||||
"GROUND": "地面",
|
||||
"ROCK": "岩石",
|
||||
"BUG": "虫",
|
||||
"GHOST": "幽灵",
|
||||
"STEEL": "钢",
|
||||
"FIRE": "火",
|
||||
"WATER": "水",
|
||||
"GRASS": "草",
|
||||
"ELECTRIC": "电",
|
||||
"PSYCHIC": "超能力",
|
||||
"ICE": "冰",
|
||||
"DRAGON": "龙",
|
||||
"DARK": "恶",
|
||||
"FAIRY": "妖精",
|
||||
"STELLAR": "星晶",
|
||||
},
|
||||
} as const;
|
41
src/locales/zh_CN/pokemon-info.ts
Normal file
41
src/locales/zh_CN/pokemon-info.ts
Normal file
@ -0,0 +1,41 @@
|
||||
import { PokemonInfoTranslationEntries } from "#app/plugins/i18n";
|
||||
|
||||
export const pokemonInfo: PokemonInfoTranslationEntries = {
|
||||
Stat: {
|
||||
"HP": "最大HP",
|
||||
"HPshortened": "最大HP",
|
||||
"ATK": "攻击",
|
||||
"ATKshortened": "攻击",
|
||||
"DEF": "防御",
|
||||
"DEFshortened": "防御",
|
||||
"SPATK": "特攻",
|
||||
"SPATKshortened": "特攻",
|
||||
"SPDEF": "特防",
|
||||
"SPDEFshortened": "特防",
|
||||
"SPD": "速度",
|
||||
"SPDshortened": "速度"
|
||||
},
|
||||
|
||||
Type: {
|
||||
"UNKNOWN": "Unknown",
|
||||
"NORMAL": "一般",
|
||||
"FIGHTING": "格斗",
|
||||
"FLYING": "飞行",
|
||||
"POISON": "毒",
|
||||
"GROUND": "地面",
|
||||
"ROCK": "岩石",
|
||||
"BUG": "虫",
|
||||
"GHOST": "幽灵",
|
||||
"STEEL": "钢",
|
||||
"FIRE": "火",
|
||||
"WATER": "水",
|
||||
"GRASS": "草",
|
||||
"ELECTRIC": "电",
|
||||
"PSYCHIC": "超能力",
|
||||
"ICE": "冰",
|
||||
"DRAGON": "龙",
|
||||
"DARK": "恶",
|
||||
"FAIRY": "妖精",
|
||||
"STELLAR": "星晶",
|
||||
},
|
||||
} as const;
|
@ -1,16 +0,0 @@
|
||||
import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||
|
||||
export const pokemonStat: SimpleTranslationEntries = {
|
||||
"HP": "最大HP",
|
||||
"HPshortened": "最大HP",
|
||||
"ATK": "攻击",
|
||||
"ATKshortened": "攻击",
|
||||
"DEF": "防御",
|
||||
"DEFshortened": "防御",
|
||||
"SPATK": "特攻",
|
||||
"SPATKshortened": "特攻",
|
||||
"SPDEF": "特防",
|
||||
"SPDEFshortened": "特防",
|
||||
"SPD": "速度",
|
||||
"SPDshortened": "速度"
|
||||
} as const;
|
@ -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(`pokemonInfo: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(`pokemonInfo: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(`pokemonInfo:Type.${Type[this.teraType]}`) });
|
||||
}
|
||||
|
||||
getPregenArgs(): any[] {
|
||||
|
@ -43,7 +43,10 @@ export interface ModifierTypeTranslationEntries {
|
||||
BaseStatBoosterItem: SimpleTranslationEntries,
|
||||
EvolutionItem: SimpleTranslationEntries,
|
||||
FormChangeItem: SimpleTranslationEntries,
|
||||
TeraType: SimpleTranslationEntries,
|
||||
}
|
||||
export interface PokemonInfoTranslationEntries {
|
||||
Stat: SimpleTranslationEntries,
|
||||
Type: SimpleTranslationEntries,
|
||||
}
|
||||
|
||||
export interface BerryTranslationEntry {
|
||||
@ -134,7 +137,7 @@ declare module 'i18next' {
|
||||
ability: AbilityTranslationEntries;
|
||||
pokeball: SimpleTranslationEntries;
|
||||
pokemon: SimpleTranslationEntries;
|
||||
pokemonStat: SimpleTranslationEntries;
|
||||
pokemonInfo: PokemonInfoTranslationEntries;
|
||||
commandUiHandler: SimpleTranslationEntries;
|
||||
fightUiHandler: SimpleTranslationEntries;
|
||||
titles: SimpleTranslationEntries;
|
||||
|
Loading…
Reference in New Issue
Block a user