diff --git a/src/data/battle-stat.ts b/src/data/battle-stat.ts index 46e5a7dac8b..fd4d55aeb7b 100644 --- a/src/data/battle-stat.ts +++ b/src/data/battle-stat.ts @@ -1,3 +1,5 @@ +import i18next from "i18next"; + export enum BattleStat { ATK, DEF, @@ -12,21 +14,21 @@ export enum BattleStat { export function getBattleStatName(stat: BattleStat) { switch (stat) { case BattleStat.ATK: - return "Attack"; + return i18next.t("modifierType:TempBattleStatBoosterStatName.ATK"); case BattleStat.DEF: - return "Defense"; + return i18next.t("modifierType:TempBattleStatBoosterStatName.DEF"); case BattleStat.SPATK: - return "Sp. Atk"; + return i18next.t("modifierType:TempBattleStatBoosterStatName.SPATK"); case BattleStat.SPDEF: - return "Sp. Def"; + return i18next.t("modifierType:TempBattleStatBoosterStatName.SPDEF"); case BattleStat.SPD: - return "Speed"; + return i18next.t("modifierType:TempBattleStatBoosterStatName.SPD"); case BattleStat.ACC: - return "Accuracy"; + return i18next.t("modifierType:TempBattleStatBoosterStatName.ACC"); case BattleStat.EVA: - return "Evasiveness"; + return i18next.t("modifierType:TempBattleStatBoosterStatName.EVA"); default: - return "???"; + return i18next.t("modifierType:TempBattleStatBoosterStatName.DEFAULT"); } } diff --git a/src/data/temp-battle-stat.ts b/src/data/temp-battle-stat.ts index 35653bfd75a..2d461a1d647 100644 --- a/src/data/temp-battle-stat.ts +++ b/src/data/temp-battle-stat.ts @@ -1,4 +1,5 @@ import { BattleStat, getBattleStatName } from "./battle-stat"; +import i18next from "i18next"; export enum TempBattleStat { ATK, @@ -12,7 +13,7 @@ export enum TempBattleStat { export function getTempBattleStatName(tempBattleStat: TempBattleStat) { if (tempBattleStat === TempBattleStat.CRIT) { - return "critical-hit ratio"; + return i18next.t("modifierType:TempBattleStatBoosterStatName.CRIT"); } return getBattleStatName(tempBattleStat as integer as BattleStat); } diff --git a/src/locales/de/modifier-type.ts b/src/locales/de/modifier-type.ts index 175c426143b..8f0f7aded5c 100644 --- a/src/locales/de/modifier-type.ts +++ b/src/locales/de/modifier-type.ts @@ -249,6 +249,20 @@ export const modifierType: ModifierTypeTranslationEntries = { "x_accuracy": "X-Treffer", "dire_hit": "X-Volltreffer", }, + + TempBattleStatBoosterStatName: { + "ATK": "Angriff", + "DEF": "Verteidigung", + "SPATK": "Sp. Ang", + "SPDEF": "Sp. Vert", + "SPD": "Initiative", + "ACC": "Genauigkeit", + "CRIT": "Volltrefferquote", + "EVA": "Fluchtwert", + "DEFAULT": "???", + }, + + AttackTypeBoosterItem: { "silk_scarf": "Seidenschal", "black_belt": "Schwarzgurt", diff --git a/src/locales/en/modifier-type.ts b/src/locales/en/modifier-type.ts index 87d4a0ccf4f..3899e73dcac 100644 --- a/src/locales/en/modifier-type.ts +++ b/src/locales/en/modifier-type.ts @@ -248,6 +248,19 @@ export const modifierType: ModifierTypeTranslationEntries = { "x_accuracy": "X Accuracy", "dire_hit": "Dire Hit", }, + + TempBattleStatBoosterStatName: { + "ATK": "Attack", + "DEF": "Defense", + "SPATK": "Sp. Atk", + "SPDEF": "Sp. Def", + "SPD": "Speed", + "ACC": "Accuracy", + "CRIT": "Critical Hit Ratio", + "EVA": "Evasiveness", + "DEFAULT": "???", + }, + AttackTypeBoosterItem: { "silk_scarf": "Silk Scarf", "black_belt": "Black Belt", diff --git a/src/locales/es/modifier-type.ts b/src/locales/es/modifier-type.ts index 3c1925eaa67..5689f039f5c 100644 --- a/src/locales/es/modifier-type.ts +++ b/src/locales/es/modifier-type.ts @@ -248,6 +248,18 @@ export const modifierType: ModifierTypeTranslationEntries = { "x_accuracy": "Precisión X", "dire_hit": "Crítico X", }, + + TempBattleStatBoosterStatName: { + "ATK": "Attack", + "DEF": "Defense", + "SPATK": "Sp. Atk", + "SPDEF": "Sp. Def", + "SPD": "Speed", + "ACC": "Accuracy", + "CRIT": "Critical Hit Ratio", + "EVA": "Evasiveness", + "DEFAULT": "???", + }, AttackTypeBoosterItem: { "silk_scarf": "Pañuelo Seda", "black_belt": "Cinturón Negro", diff --git a/src/locales/fr/modifier-type.ts b/src/locales/fr/modifier-type.ts index 766629b88d8..9ef99f49330 100644 --- a/src/locales/fr/modifier-type.ts +++ b/src/locales/fr/modifier-type.ts @@ -248,6 +248,19 @@ export const modifierType: ModifierTypeTranslationEntries = { "x_accuracy": "Précision +", "dire_hit": "Muscle +", }, + + TempBattleStatBoosterStatName: { + "ATK": "Attaque", + "DEF": "Défense", + "SPATK": "Atq. Spé.", + "SPDEF": "Déf. Spé.", + "SPD": "Vitesse", + "ACC": "Précision", + "CRIT": "Taux de critique", + "EVA": "Esquive", + "DEFAULT": "???", + }, + AttackTypeBoosterItem: { "silk_scarf": "Mouchoir Soie", "black_belt": "Ceinture Noire", diff --git a/src/locales/it/modifier-type.ts b/src/locales/it/modifier-type.ts index b16604200f8..44006a3f76a 100644 --- a/src/locales/it/modifier-type.ts +++ b/src/locales/it/modifier-type.ts @@ -248,6 +248,19 @@ export const modifierType: ModifierTypeTranslationEntries = { "x_accuracy": "Precisione X", "dire_hit": "Supercolpo", }, + + TempBattleStatBoosterStatName: { + "ATK": "Attack", + "DEF": "Defense", + "SPATK": "Sp. Atk", + "SPDEF": "Sp. Def", + "SPD": "Speed", + "ACC": "Accuracy", + "CRIT": "Critical Hit Ratio", + "EVA": "Evasiveness", + "DEFAULT": "???", + }, + AttackTypeBoosterItem: { "silk_scarf": "Sciarpa seta", "black_belt": "Cinturanera", diff --git a/src/locales/ko/modifier-type.ts b/src/locales/ko/modifier-type.ts index d181ca55a25..29b4cd08f32 100644 --- a/src/locales/ko/modifier-type.ts +++ b/src/locales/ko/modifier-type.ts @@ -248,6 +248,19 @@ export const modifierType: ModifierTypeTranslationEntries = { "x_accuracy": "잘-맞히기", "dire_hit": "크리티컬커터", }, + + TempBattleStatBoosterStatName: { + "ATK": "Attack", + "DEF": "Defense", + "SPATK": "Sp. Atk", + "SPDEF": "Sp. Def", + "SPD": "Speed", + "ACC": "Accuracy", + "CRIT": "Critical Hit Ratio", + "EVA": "Evasiveness", + "DEFAULT": "???", + }, + AttackTypeBoosterItem: { "silk_scarf": "실크스카프", "black_belt": "검은띠", diff --git a/src/locales/pt_BR/modifier-type.ts b/src/locales/pt_BR/modifier-type.ts index b0df31d5f65..bf70ae18eb9 100644 --- a/src/locales/pt_BR/modifier-type.ts +++ b/src/locales/pt_BR/modifier-type.ts @@ -248,6 +248,19 @@ export const modifierType: ModifierTypeTranslationEntries = { "x_accuracy": "Precisão X", "dire_hit": "Direto", }, + + TempBattleStatBoosterStatName: { + "ATK": "Attack", + "DEF": "Defense", + "SPATK": "Sp. Atk", + "SPDEF": "Sp. Def", + "SPD": "Speed", + "ACC": "Accuracy", + "CRIT": "Critical Hit Ratio", + "EVA": "Evasiveness", + "DEFAULT": "???", + }, + AttackTypeBoosterItem: { "silk_scarf": "Lenço de Seda", "black_belt": "Faixa Preta", diff --git a/src/locales/zh_CN/modifier-type.ts b/src/locales/zh_CN/modifier-type.ts index 92617e39741..c94c8e4b04f 100644 --- a/src/locales/zh_CN/modifier-type.ts +++ b/src/locales/zh_CN/modifier-type.ts @@ -248,6 +248,19 @@ export const modifierType: ModifierTypeTranslationEntries = { "x_accuracy": "命中强化", "dire_hit": "要害攻击", }, + + TempBattleStatBoosterStatName: { + "ATK": "Attack", + "DEF": "Defense", + "SPATK": "Sp. Atk", + "SPDEF": "Sp. Def", + "SPD": "Speed", + "ACC": "Accuracy", + "CRIT": "Critical Hit Ratio", + "EVA": "Evasiveness", + "DEFAULT": "???", + }, + AttackTypeBoosterItem: { "silk_scarf": "丝绸围巾", "black_belt": "黑带", diff --git a/src/locales/zh_TW/modifier-type.ts b/src/locales/zh_TW/modifier-type.ts index 2577db69d65..f44c6efef84 100644 --- a/src/locales/zh_TW/modifier-type.ts +++ b/src/locales/zh_TW/modifier-type.ts @@ -306,6 +306,19 @@ export const modifierType: ModifierTypeTranslationEntries = { x_accuracy: "命中強化", dire_hit: "要害攻擊", }, + + TempBattleStatBoosterStatName: { + "ATK": "Attack", + "DEF": "Defense", + "SPATK": "Sp. Atk", + "SPDEF": "Sp. Def", + "SPD": "Speed", + "ACC": "Accuracy", + "CRIT": "Critical Hit Ratio", + "EVA": "Evasiveness", + "DEFAULT": "???", + }, + AttackTypeBoosterItem: { silk_scarf: "絲綢圍巾", black_belt: "黑帶", diff --git a/src/plugins/i18n.ts b/src/plugins/i18n.ts index a9a610693a1..d091f91b84d 100644 --- a/src/plugins/i18n.ts +++ b/src/plugins/i18n.ts @@ -44,6 +44,7 @@ export interface ModifierTypeTranslationEntries { ModifierType: { [key: string]: ModifierTypeTranslationEntry }, AttackTypeBoosterItem: SimpleTranslationEntries, TempBattleStatBoosterItem: SimpleTranslationEntries, + TempBattleStatBoosterStatName: SimpleTranslationEntries, BaseStatBoosterItem: SimpleTranslationEntries, EvolutionItem: SimpleTranslationEntries, FormChangeItem: SimpleTranslationEntries,