mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-25 00:06:18 +00:00
[Localization] Localized the statname in the X Item description (#2264)
* Localized the statname in the X Item description * Added french thanks to sangara42 * Changed french by Lugiadrien
This commit is contained in:
parent
eea39843fb
commit
1a8c9d472a
@ -1,3 +1,5 @@
|
|||||||
|
import i18next from "i18next";
|
||||||
|
|
||||||
export enum BattleStat {
|
export enum BattleStat {
|
||||||
ATK,
|
ATK,
|
||||||
DEF,
|
DEF,
|
||||||
@ -12,21 +14,21 @@ export enum BattleStat {
|
|||||||
export function getBattleStatName(stat: BattleStat) {
|
export function getBattleStatName(stat: BattleStat) {
|
||||||
switch (stat) {
|
switch (stat) {
|
||||||
case BattleStat.ATK:
|
case BattleStat.ATK:
|
||||||
return "Attack";
|
return i18next.t("modifierType:TempBattleStatBoosterStatName.ATK");
|
||||||
case BattleStat.DEF:
|
case BattleStat.DEF:
|
||||||
return "Defense";
|
return i18next.t("modifierType:TempBattleStatBoosterStatName.DEF");
|
||||||
case BattleStat.SPATK:
|
case BattleStat.SPATK:
|
||||||
return "Sp. Atk";
|
return i18next.t("modifierType:TempBattleStatBoosterStatName.SPATK");
|
||||||
case BattleStat.SPDEF:
|
case BattleStat.SPDEF:
|
||||||
return "Sp. Def";
|
return i18next.t("modifierType:TempBattleStatBoosterStatName.SPDEF");
|
||||||
case BattleStat.SPD:
|
case BattleStat.SPD:
|
||||||
return "Speed";
|
return i18next.t("modifierType:TempBattleStatBoosterStatName.SPD");
|
||||||
case BattleStat.ACC:
|
case BattleStat.ACC:
|
||||||
return "Accuracy";
|
return i18next.t("modifierType:TempBattleStatBoosterStatName.ACC");
|
||||||
case BattleStat.EVA:
|
case BattleStat.EVA:
|
||||||
return "Evasiveness";
|
return i18next.t("modifierType:TempBattleStatBoosterStatName.EVA");
|
||||||
default:
|
default:
|
||||||
return "???";
|
return i18next.t("modifierType:TempBattleStatBoosterStatName.DEFAULT");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import { BattleStat, getBattleStatName } from "./battle-stat";
|
import { BattleStat, getBattleStatName } from "./battle-stat";
|
||||||
|
import i18next from "i18next";
|
||||||
|
|
||||||
export enum TempBattleStat {
|
export enum TempBattleStat {
|
||||||
ATK,
|
ATK,
|
||||||
@ -12,7 +13,7 @@ export enum TempBattleStat {
|
|||||||
|
|
||||||
export function getTempBattleStatName(tempBattleStat: TempBattleStat) {
|
export function getTempBattleStatName(tempBattleStat: TempBattleStat) {
|
||||||
if (tempBattleStat === TempBattleStat.CRIT) {
|
if (tempBattleStat === TempBattleStat.CRIT) {
|
||||||
return "critical-hit ratio";
|
return i18next.t("modifierType:TempBattleStatBoosterStatName.CRIT");
|
||||||
}
|
}
|
||||||
return getBattleStatName(tempBattleStat as integer as BattleStat);
|
return getBattleStatName(tempBattleStat as integer as BattleStat);
|
||||||
}
|
}
|
||||||
|
@ -249,6 +249,20 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
|||||||
"x_accuracy": "X-Treffer",
|
"x_accuracy": "X-Treffer",
|
||||||
"dire_hit": "X-Volltreffer",
|
"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: {
|
AttackTypeBoosterItem: {
|
||||||
"silk_scarf": "Seidenschal",
|
"silk_scarf": "Seidenschal",
|
||||||
"black_belt": "Schwarzgurt",
|
"black_belt": "Schwarzgurt",
|
||||||
|
@ -248,6 +248,19 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
|||||||
"x_accuracy": "X Accuracy",
|
"x_accuracy": "X Accuracy",
|
||||||
"dire_hit": "Dire Hit",
|
"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: {
|
AttackTypeBoosterItem: {
|
||||||
"silk_scarf": "Silk Scarf",
|
"silk_scarf": "Silk Scarf",
|
||||||
"black_belt": "Black Belt",
|
"black_belt": "Black Belt",
|
||||||
|
@ -248,6 +248,18 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
|||||||
"x_accuracy": "Precisión X",
|
"x_accuracy": "Precisión X",
|
||||||
"dire_hit": "Crítico 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: {
|
AttackTypeBoosterItem: {
|
||||||
"silk_scarf": "Pañuelo Seda",
|
"silk_scarf": "Pañuelo Seda",
|
||||||
"black_belt": "Cinturón Negro",
|
"black_belt": "Cinturón Negro",
|
||||||
|
@ -248,6 +248,19 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
|||||||
"x_accuracy": "Précision +",
|
"x_accuracy": "Précision +",
|
||||||
"dire_hit": "Muscle +",
|
"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: {
|
AttackTypeBoosterItem: {
|
||||||
"silk_scarf": "Mouchoir Soie",
|
"silk_scarf": "Mouchoir Soie",
|
||||||
"black_belt": "Ceinture Noire",
|
"black_belt": "Ceinture Noire",
|
||||||
|
@ -248,6 +248,19 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
|||||||
"x_accuracy": "Precisione X",
|
"x_accuracy": "Precisione X",
|
||||||
"dire_hit": "Supercolpo",
|
"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: {
|
AttackTypeBoosterItem: {
|
||||||
"silk_scarf": "Sciarpa seta",
|
"silk_scarf": "Sciarpa seta",
|
||||||
"black_belt": "Cinturanera",
|
"black_belt": "Cinturanera",
|
||||||
|
@ -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: {
|
AttackTypeBoosterItem: {
|
||||||
"silk_scarf": "실크스카프",
|
"silk_scarf": "실크스카프",
|
||||||
"black_belt": "검은띠",
|
"black_belt": "검은띠",
|
||||||
|
@ -248,6 +248,19 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
|||||||
"x_accuracy": "Precisão X",
|
"x_accuracy": "Precisão X",
|
||||||
"dire_hit": "Direto",
|
"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: {
|
AttackTypeBoosterItem: {
|
||||||
"silk_scarf": "Lenço de Seda",
|
"silk_scarf": "Lenço de Seda",
|
||||||
"black_belt": "Faixa Preta",
|
"black_belt": "Faixa Preta",
|
||||||
|
@ -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: {
|
AttackTypeBoosterItem: {
|
||||||
"silk_scarf": "丝绸围巾",
|
"silk_scarf": "丝绸围巾",
|
||||||
"black_belt": "黑带",
|
"black_belt": "黑带",
|
||||||
|
@ -306,6 +306,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: {
|
AttackTypeBoosterItem: {
|
||||||
silk_scarf: "絲綢圍巾",
|
silk_scarf: "絲綢圍巾",
|
||||||
black_belt: "黑帶",
|
black_belt: "黑帶",
|
||||||
|
@ -44,6 +44,7 @@ export interface ModifierTypeTranslationEntries {
|
|||||||
ModifierType: { [key: string]: ModifierTypeTranslationEntry },
|
ModifierType: { [key: string]: ModifierTypeTranslationEntry },
|
||||||
AttackTypeBoosterItem: SimpleTranslationEntries,
|
AttackTypeBoosterItem: SimpleTranslationEntries,
|
||||||
TempBattleStatBoosterItem: SimpleTranslationEntries,
|
TempBattleStatBoosterItem: SimpleTranslationEntries,
|
||||||
|
TempBattleStatBoosterStatName: SimpleTranslationEntries,
|
||||||
BaseStatBoosterItem: SimpleTranslationEntries,
|
BaseStatBoosterItem: SimpleTranslationEntries,
|
||||||
EvolutionItem: SimpleTranslationEntries,
|
EvolutionItem: SimpleTranslationEntries,
|
||||||
FormChangeItem: SimpleTranslationEntries,
|
FormChangeItem: SimpleTranslationEntries,
|
||||||
|
Loading…
Reference in New Issue
Block a user