From 3cc9c93643a496f35e9333a43b5776e4f4d27531 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Ricardo=20Fleury=20Oliveira?= Date: Fri, 17 May 2024 11:43:11 -0300 Subject: [PATCH] Type localization instead of TeraType (#981) * Type localization, now type-boosting items descriptions are fully translated * pokemon-stat refactoration * reverted import changes --- src/data/pokemon-stat.ts | 12 ++++----- src/locales/de/config.ts | 4 +-- src/locales/de/modifier-type.ts | 22 ---------------- src/locales/de/pokemon-info.ts | 41 ++++++++++++++++++++++++++++++ src/locales/de/pokemon-stat.ts | 16 ------------ src/locales/en/config.ts | 4 +-- src/locales/en/modifier-type.ts | 22 ---------------- src/locales/en/pokemon-info.ts | 41 ++++++++++++++++++++++++++++++ src/locales/en/pokemon-stat.ts | 16 ------------ src/locales/es/config.ts | 4 +-- src/locales/es/modifier-type.ts | 22 ---------------- src/locales/es/pokemon-info.ts | 41 ++++++++++++++++++++++++++++++ src/locales/es/pokemon-stat.ts | 16 ------------ src/locales/fr/config.ts | 4 +-- src/locales/fr/modifier-type.ts | 22 ---------------- src/locales/fr/pokemon-info.ts | 41 ++++++++++++++++++++++++++++++ src/locales/fr/pokemon-stat.ts | 16 ------------ src/locales/it/config.ts | 4 +-- src/locales/it/modifier-type.ts | 22 ---------------- src/locales/it/pokemon-info.ts | 41 ++++++++++++++++++++++++++++++ src/locales/it/pokemon-stat.ts | 16 ------------ src/locales/pt_BR/config.ts | 4 +-- src/locales/pt_BR/modifier-type.ts | 22 ---------------- src/locales/pt_BR/pokemon-info.ts | 41 ++++++++++++++++++++++++++++++ src/locales/pt_BR/pokemon-stat.ts | 16 ------------ src/locales/zh_CN/config.ts | 4 +-- src/locales/zh_CN/modifier-type.ts | 22 ---------------- src/locales/zh_CN/pokemon-info.ts | 41 ++++++++++++++++++++++++++++++ src/locales/zh_CN/pokemon-stat.ts | 16 ------------ src/modifier/modifier-type.ts | 6 ++--- src/plugins/i18n.ts | 7 +++-- 31 files changed, 315 insertions(+), 291 deletions(-) create mode 100644 src/locales/de/pokemon-info.ts delete mode 100644 src/locales/de/pokemon-stat.ts create mode 100644 src/locales/en/pokemon-info.ts delete mode 100644 src/locales/en/pokemon-stat.ts create mode 100644 src/locales/es/pokemon-info.ts delete mode 100644 src/locales/es/pokemon-stat.ts create mode 100644 src/locales/fr/pokemon-info.ts delete mode 100644 src/locales/fr/pokemon-stat.ts create mode 100644 src/locales/it/pokemon-info.ts delete mode 100644 src/locales/it/pokemon-stat.ts create mode 100644 src/locales/pt_BR/pokemon-info.ts delete mode 100644 src/locales/pt_BR/pokemon-stat.ts create mode 100644 src/locales/zh_CN/pokemon-info.ts delete mode 100644 src/locales/zh_CN/pokemon-stat.ts diff --git a/src/data/pokemon-stat.ts b/src/data/pokemon-stat.ts index b22eaefe876..94e710c981b 100644 --- a/src/data/pokemon-stat.ts +++ b/src/data/pokemon-stat.ts @@ -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; diff --git a/src/locales/de/config.ts b/src/locales/de/config.ts index 7aeeeb7a925..af52d8bc51b 100644 --- a/src/locales/de/config.ts +++ b/src/locales/de/config.ts @@ -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, diff --git a/src/locales/de/modifier-type.ts b/src/locales/de/modifier-type.ts index dea1421ac20..95346548c44 100644 --- a/src/locales/de/modifier-type.ts +++ b/src/locales/de/modifier-type.ts @@ -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; \ No newline at end of file diff --git a/src/locales/de/pokemon-info.ts b/src/locales/de/pokemon-info.ts new file mode 100644 index 00000000000..772a09cb656 --- /dev/null +++ b/src/locales/de/pokemon-info.ts @@ -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; \ No newline at end of file diff --git a/src/locales/de/pokemon-stat.ts b/src/locales/de/pokemon-stat.ts deleted file mode 100644 index 531b5022b68..00000000000 --- a/src/locales/de/pokemon-stat.ts +++ /dev/null @@ -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; \ No newline at end of file diff --git a/src/locales/en/config.ts b/src/locales/en/config.ts index 6b23d2f2983..984b0fa239f 100644 --- a/src/locales/en/config.ts +++ b/src/locales/en/config.ts @@ -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, diff --git a/src/locales/en/modifier-type.ts b/src/locales/en/modifier-type.ts index 043d7a705d5..31d4abbce29 100644 --- a/src/locales/en/modifier-type.ts +++ b/src/locales/en/modifier-type.ts @@ -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; \ No newline at end of file diff --git a/src/locales/en/pokemon-info.ts b/src/locales/en/pokemon-info.ts new file mode 100644 index 00000000000..2c7ee78f07a --- /dev/null +++ b/src/locales/en/pokemon-info.ts @@ -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; \ No newline at end of file diff --git a/src/locales/en/pokemon-stat.ts b/src/locales/en/pokemon-stat.ts deleted file mode 100644 index 7a209461b11..00000000000 --- a/src/locales/en/pokemon-stat.ts +++ /dev/null @@ -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; \ No newline at end of file diff --git a/src/locales/es/config.ts b/src/locales/es/config.ts index a3b06982d33..92349028899 100644 --- a/src/locales/es/config.ts +++ b/src/locales/es/config.ts @@ -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, diff --git a/src/locales/es/modifier-type.ts b/src/locales/es/modifier-type.ts index 043d7a705d5..31d4abbce29 100644 --- a/src/locales/es/modifier-type.ts +++ b/src/locales/es/modifier-type.ts @@ -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; \ No newline at end of file diff --git a/src/locales/es/pokemon-info.ts b/src/locales/es/pokemon-info.ts new file mode 100644 index 00000000000..fabc7220f3c --- /dev/null +++ b/src/locales/es/pokemon-info.ts @@ -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; \ No newline at end of file diff --git a/src/locales/es/pokemon-stat.ts b/src/locales/es/pokemon-stat.ts deleted file mode 100644 index 514ef19891b..00000000000 --- a/src/locales/es/pokemon-stat.ts +++ /dev/null @@ -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; \ No newline at end of file diff --git a/src/locales/fr/config.ts b/src/locales/fr/config.ts index 867a08621bb..ecec8de6cb0 100644 --- a/src/locales/fr/config.ts +++ b/src/locales/fr/config.ts @@ -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, diff --git a/src/locales/fr/modifier-type.ts b/src/locales/fr/modifier-type.ts index 95daf50f9b1..f8697c04259 100644 --- a/src/locales/fr/modifier-type.ts +++ b/src/locales/fr/modifier-type.ts @@ -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; diff --git a/src/locales/fr/pokemon-info.ts b/src/locales/fr/pokemon-info.ts new file mode 100644 index 00000000000..0c246bd96a4 --- /dev/null +++ b/src/locales/fr/pokemon-info.ts @@ -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; diff --git a/src/locales/fr/pokemon-stat.ts b/src/locales/fr/pokemon-stat.ts deleted file mode 100644 index 62aa97fc1fd..00000000000 --- a/src/locales/fr/pokemon-stat.ts +++ /dev/null @@ -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; diff --git a/src/locales/it/config.ts b/src/locales/it/config.ts index 89d78304120..a9c80dc673d 100644 --- a/src/locales/it/config.ts +++ b/src/locales/it/config.ts @@ -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, diff --git a/src/locales/it/modifier-type.ts b/src/locales/it/modifier-type.ts index 7f342309acf..87deece71fe 100644 --- a/src/locales/it/modifier-type.ts +++ b/src/locales/it/modifier-type.ts @@ -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; \ No newline at end of file diff --git a/src/locales/it/pokemon-info.ts b/src/locales/it/pokemon-info.ts new file mode 100644 index 00000000000..617b2157da2 --- /dev/null +++ b/src/locales/it/pokemon-info.ts @@ -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; diff --git a/src/locales/it/pokemon-stat.ts b/src/locales/it/pokemon-stat.ts deleted file mode 100644 index b2c023aa383..00000000000 --- a/src/locales/it/pokemon-stat.ts +++ /dev/null @@ -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; diff --git a/src/locales/pt_BR/config.ts b/src/locales/pt_BR/config.ts index 157df19a80b..29d3c8b4195 100644 --- a/src/locales/pt_BR/config.ts +++ b/src/locales/pt_BR/config.ts @@ -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, diff --git a/src/locales/pt_BR/modifier-type.ts b/src/locales/pt_BR/modifier-type.ts index 043d7a705d5..31d4abbce29 100644 --- a/src/locales/pt_BR/modifier-type.ts +++ b/src/locales/pt_BR/modifier-type.ts @@ -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; \ No newline at end of file diff --git a/src/locales/pt_BR/pokemon-info.ts b/src/locales/pt_BR/pokemon-info.ts new file mode 100644 index 00000000000..99cef266c6f --- /dev/null +++ b/src/locales/pt_BR/pokemon-info.ts @@ -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; \ No newline at end of file diff --git a/src/locales/pt_BR/pokemon-stat.ts b/src/locales/pt_BR/pokemon-stat.ts deleted file mode 100644 index 5f5e2c23584..00000000000 --- a/src/locales/pt_BR/pokemon-stat.ts +++ /dev/null @@ -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; \ No newline at end of file diff --git a/src/locales/zh_CN/config.ts b/src/locales/zh_CN/config.ts index 9c3a62f59f0..cfdc7ab0d18 100644 --- a/src/locales/zh_CN/config.ts +++ b/src/locales/zh_CN/config.ts @@ -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, diff --git a/src/locales/zh_CN/modifier-type.ts b/src/locales/zh_CN/modifier-type.ts index 80ddc1f92dd..9555eb3ce7d 100644 --- a/src/locales/zh_CN/modifier-type.ts +++ b/src/locales/zh_CN/modifier-type.ts @@ -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; \ No newline at end of file diff --git a/src/locales/zh_CN/pokemon-info.ts b/src/locales/zh_CN/pokemon-info.ts new file mode 100644 index 00000000000..d99d8edfd76 --- /dev/null +++ b/src/locales/zh_CN/pokemon-info.ts @@ -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; \ No newline at end of file diff --git a/src/locales/zh_CN/pokemon-stat.ts b/src/locales/zh_CN/pokemon-stat.ts deleted file mode 100644 index d30922c46a0..00000000000 --- a/src/locales/zh_CN/pokemon-stat.ts +++ /dev/null @@ -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; \ No newline at end of file diff --git a/src/modifier/modifier-type.ts b/src/modifier/modifier-type.ts index 1e21af58564..278de2f18e8 100644 --- a/src/modifier/modifier-type.ts +++ b/src/modifier/modifier-type.ts @@ -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[] { diff --git a/src/plugins/i18n.ts b/src/plugins/i18n.ts index 5c9de28fe82..790a3c729c8 100644 --- a/src/plugins/i18n.ts +++ b/src/plugins/i18n.ts @@ -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;