[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 {
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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": "검은띠",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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": "黑带",
|
||||
|
|
|
@ -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: "黑帶",
|
||||
|
|
|
@ -44,6 +44,7 @@ export interface ModifierTypeTranslationEntries {
|
|||
ModifierType: { [key: string]: ModifierTypeTranslationEntry },
|
||||
AttackTypeBoosterItem: SimpleTranslationEntries,
|
||||
TempBattleStatBoosterItem: SimpleTranslationEntries,
|
||||
TempBattleStatBoosterStatName: SimpleTranslationEntries,
|
||||
BaseStatBoosterItem: SimpleTranslationEntries,
|
||||
EvolutionItem: SimpleTranslationEntries,
|
||||
FormChangeItem: SimpleTranslationEntries,
|
||||
|
|
Loading…
Reference in New Issue