[Localization] Spanish modification form es to es-ES (#4753)
* Update and rename statuses_es.json to statuses_es-ES.json * Rename statuses_es.png to statuses_es-ES.png * Update and rename types_es.json to types_es-ES.json * Rename types_es.png to types_es-ES.png * Update i18n.ts * Update settings.ts * Update settings-display-ui-handler.ts * Update starter-select-ui-handler.ts * Update utils.ts * Update settings-display-ui-handler.ts * Update loading-scene.ts * Update timed-event-manager.ts * change remaining 'es' to 'es-ES' in various UIs * change halloween event banner from es to es-ES * update to latest locale commit --------- Co-authored-by: Moka <54149968+MokaStitcher@users.noreply.github.com>
This commit is contained in:
parent
5755180279
commit
abc9264b3d
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"textures": [
|
||||
{
|
||||
"image": "statuses_es.png",
|
||||
"image": "statuses_es-ES.png",
|
||||
"format": "RGBA8888",
|
||||
"size": {
|
||||
"w": 22,
|
Before Width: | Height: | Size: 441 B After Width: | Height: | Size: 441 B |
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"textures": [
|
||||
{
|
||||
"image": "types_es.png",
|
||||
"image": "types_es-ES.png",
|
||||
"format": "RGBA8888",
|
||||
"size": {
|
||||
"w": 32,
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
|
@ -1 +1 @@
|
|||
Subproject commit 71390cba88f4103d0d2273d59a6dd8340a4fa54f
|
||||
Subproject commit 3cf6d553541d79ba165387bc73fb06544d00f1f9
|
|
@ -244,7 +244,7 @@ export class LoadingScene extends SceneBase {
|
|||
this.loadAtlas("statuses", "");
|
||||
this.loadAtlas("types", "");
|
||||
}
|
||||
const availableLangs = [ "en", "de", "it", "fr", "ja", "ko", "es", "pt-BR", "zh-CN" ];
|
||||
const availableLangs = [ "en", "de", "it", "fr", "ja", "ko", "es-ES", "pt-BR", "zh-CN" ];
|
||||
if (lang && availableLangs.includes(lang)) {
|
||||
this.loadImage("halloween2024-event-" + lang, "events");
|
||||
} else {
|
||||
|
|
|
@ -153,7 +153,7 @@ export async function initI18n(): Promise<void> {
|
|||
i18next.use(new KoreanPostpositionProcessor());
|
||||
await i18next.init({
|
||||
fallbackLng: "en",
|
||||
supportedLngs: [ "en", "es", "fr", "it", "de", "zh-CN", "zh-TW", "pt-BR", "ko", "ja", "ca-ES" ],
|
||||
supportedLngs: [ "en", "es-ES", "fr", "it", "de", "zh-CN", "zh-TW", "pt-BR", "ko", "ja", "ca-ES" ],
|
||||
backend: {
|
||||
loadPath(lng: string, [ ns ]: string[]) {
|
||||
let fileName: string;
|
||||
|
|
|
@ -866,8 +866,8 @@ export function setSetting(scene: BattleScene, setting: string, value: integer):
|
|||
handler: () => changeLocaleHandler("en")
|
||||
},
|
||||
{
|
||||
label: "Español",
|
||||
handler: () => changeLocaleHandler("es")
|
||||
label: "Español (ES)",
|
||||
handler: () => changeLocaleHandler("es-ES")
|
||||
},
|
||||
{
|
||||
label: "Italiano",
|
||||
|
|
|
@ -35,7 +35,7 @@ const timedEvents: TimedEvent[] = [
|
|||
endDate: new Date(Date.UTC(2024, 10, 4, 0)),
|
||||
bannerKey: "halloween2024-event-",
|
||||
scale: 0.21,
|
||||
availableLangs: [ "en", "de", "it", "fr", "ja", "ko", "es", "pt-BR", "zh-CN" ]
|
||||
availableLangs: [ "en", "de", "it", "fr", "ja", "ko", "es-ES", "pt-BR", "zh-CN" ]
|
||||
}
|
||||
];
|
||||
|
||||
|
|
|
@ -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 });
|
||||
|
|
|
@ -29,10 +29,10 @@ export default class SettingsDisplayUiHandler extends AbstractSettingsUiHandler
|
|||
label: "English",
|
||||
};
|
||||
break;
|
||||
case "es":
|
||||
case "es-ES":
|
||||
this.settings[languageIndex].options[0] = {
|
||||
value: "Español",
|
||||
label: "Español",
|
||||
value: "Español (ES)",
|
||||
label: "Español (ES)",
|
||||
};
|
||||
break;
|
||||
case "it":
|
||||
|
|
|
@ -81,7 +81,7 @@ const languageSettings: { [key: string]: LanguageSetting } = {
|
|||
instructionTextSize: "35px",
|
||||
starterInfoXPos: 33,
|
||||
},
|
||||
"es":{
|
||||
"es-ES":{
|
||||
starterInfoTextSize: "56px",
|
||||
instructionTextSize: "35px",
|
||||
},
|
||||
|
|
|
@ -487,7 +487,7 @@ export function verifyLang(lang?: string): boolean {
|
|||
}
|
||||
|
||||
switch (lang) {
|
||||
case "es":
|
||||
case "es-ES":
|
||||
case "fr":
|
||||
case "de":
|
||||
case "it":
|
||||
|
|
Loading…
Reference in New Issue