mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 22:39:31 +02:00
Merge pull request #22 from MokaStitcher/loc-es-es
Missing changes to "es-ES" in some UIS
This commit is contained in:
commit
a5243e4eb3
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
@ -107,7 +107,7 @@ export default class EggGachaUiHandler extends MessageUiHandler {
|
||||
let pokemonIconX = -20;
|
||||
let pokemonIconY = 6;
|
||||
|
||||
if ([ "de", "es", "fr", "ko", "pt-BR" ].includes(currentLanguage)) {
|
||||
if ([ "de", "es-ES", "fr", "ko", "pt-BR" ].includes(currentLanguage)) {
|
||||
gachaTextStyle = TextStyle.SMALLER_WINDOW_ALT;
|
||||
gachaX = 2;
|
||||
gachaY = 2;
|
||||
@ -115,7 +115,7 @@ export default class EggGachaUiHandler extends MessageUiHandler {
|
||||
|
||||
let legendaryLabelX = gachaX;
|
||||
let legendaryLabelY = gachaY;
|
||||
if ([ "de", "es" ].includes(currentLanguage)) {
|
||||
if ([ "de", "es-ES" ].includes(currentLanguage)) {
|
||||
pokemonIconX = -25;
|
||||
pokemonIconY = 10;
|
||||
legendaryLabelX = -6;
|
||||
@ -128,7 +128,7 @@ export default class EggGachaUiHandler extends MessageUiHandler {
|
||||
|
||||
switch (gachaType as GachaType) {
|
||||
case GachaType.LEGENDARY:
|
||||
if ([ "de", "es" ].includes(currentLanguage)) {
|
||||
if ([ "de", "es-ES" ].includes(currentLanguage)) {
|
||||
gachaUpLabel.setAlign("center");
|
||||
gachaUpLabel.setY(0);
|
||||
}
|
||||
@ -149,7 +149,7 @@ export default class EggGachaUiHandler extends MessageUiHandler {
|
||||
gachaInfoContainer.add(pokemonIcon);
|
||||
break;
|
||||
case GachaType.MOVE:
|
||||
if ([ "de", "es", "fr", "pt-BR" ].includes(currentLanguage)) {
|
||||
if ([ "de", "es-ES", "fr", "pt-BR" ].includes(currentLanguage)) {
|
||||
gachaUpLabel.setAlign("center");
|
||||
gachaUpLabel.setY(0);
|
||||
}
|
||||
|
@ -21,24 +21,6 @@ interface LanguageSetting {
|
||||
}
|
||||
|
||||
const languageSettings: { [key: string]: LanguageSetting } = {
|
||||
"en": {
|
||||
infoContainerTextSize: "64px"
|
||||
},
|
||||
"de": {
|
||||
infoContainerTextSize: "64px",
|
||||
},
|
||||
"es": {
|
||||
infoContainerTextSize: "64px"
|
||||
},
|
||||
"fr": {
|
||||
infoContainerTextSize: "64px"
|
||||
},
|
||||
"it": {
|
||||
infoContainerTextSize: "64px"
|
||||
},
|
||||
"zh": {
|
||||
infoContainerTextSize: "64px"
|
||||
},
|
||||
"pt": {
|
||||
infoContainerTextSize: "60px",
|
||||
infoContainerLabelXPos: -15,
|
||||
|
@ -13,7 +13,7 @@ interface LanguageSetting {
|
||||
}
|
||||
|
||||
const languageSettings: { [key: string]: LanguageSetting } = {
|
||||
"es":{
|
||||
"es-ES": {
|
||||
inputFieldFontSize: "50px",
|
||||
errorMessageFontSize: "40px",
|
||||
}
|
||||
|
@ -674,7 +674,7 @@ export default class RunInfoUiHandler extends UiHandler {
|
||||
const def = i18next.t("pokemonInfo:Stat.DEFshortened") + ": " + pStats[2];
|
||||
const spatk = i18next.t("pokemonInfo:Stat.SPATKshortened") + ": " + pStats[3];
|
||||
const spdef = i18next.t("pokemonInfo:Stat.SPDEFshortened") + ": " + pStats[4];
|
||||
const speedLabel = (currentLanguage === "es" || currentLanguage === "pt_BR") ? i18next.t("runHistory:SPDshortened") : i18next.t("pokemonInfo:Stat.SPDshortened");
|
||||
const speedLabel = (currentLanguage === "es-ES" || currentLanguage === "pt_BR") ? i18next.t("runHistory:SPDshortened") : i18next.t("pokemonInfo:Stat.SPDshortened");
|
||||
const speed = speedLabel + ": " + pStats[5];
|
||||
// Column 1: HP Atk Def
|
||||
const pokeStatText1 = addBBCodeTextObject(this.scene, -5, 0, hp, TextStyle.SUMMARY, { fontSize: textContainerFontSize, lineSpacing: lineSpacing });
|
||||
|
Loading…
Reference in New Issue
Block a user