Two translations

This commit is contained in:
rnicar 2024-05-06 16:17:00 +02:00
parent 68c9dafcbc
commit d8b874ce51
6 changed files with 17 additions and 7 deletions

View File

@ -63,5 +63,7 @@ export const menu: SimpleTranslationEntries = {
"cycleGender": 'G: Cycle Gender', "cycleGender": 'G: Cycle Gender',
"cycleAbility": 'E: Cycle Ability', "cycleAbility": 'E: Cycle Ability',
"cycleNature": 'N: Cycle Nature', "cycleNature": 'N: Cycle Nature',
"cycleVariant": 'V: Cycle Variant' "cycleVariant": 'V: Cycle Variant',
"enablePassive": "Enable Passive",
"disablePassive": "Disable Passive"
} as const; } as const;

View File

@ -63,5 +63,7 @@ export const menu: SimpleTranslationEntries = {
"cycleGender": 'G: Cycle Gender', "cycleGender": 'G: Cycle Gender',
"cycleAbility": 'E: Cycle Ability', "cycleAbility": 'E: Cycle Ability',
"cycleNature": 'N: Cycle Nature', "cycleNature": 'N: Cycle Nature',
"cycleVariant": 'V: Cycle Variant' "cycleVariant": 'V: Cycle Variant',
"enablePassive": "Enable Passive",
"disablePassive": "Disable Passive"
} as const; } as const;

View File

@ -63,5 +63,7 @@ export const menu: SimpleTranslationEntries = {
"cycleGender": 'G: Cambiar Género', "cycleGender": 'G: Cambiar Género',
"cycleAbility": 'E: Cambiar Habilidad', "cycleAbility": 'E: Cambiar Habilidad',
"cycleNature": 'N: Cambiar Naturaleza', "cycleNature": 'N: Cambiar Naturaleza',
"cycleVariant": 'V: Cambiar Variante' "cycleVariant": 'V: Cambiar Variante',
"enablePassive": "Activar Pasiva",
"disablePassive": "Desactivar Pasiva"
} as const; } as const;

View File

@ -58,5 +58,7 @@ export const menu: SimpleTranslationEntries = {
"cycleGender": 'G: Cycle Gender', "cycleGender": 'G: Cycle Gender',
"cycleAbility": 'E: Cycle Ability', "cycleAbility": 'E: Cycle Ability',
"cycleNature": 'N: Cycle Nature', "cycleNature": 'N: Cycle Nature',
"cycleVariant": 'V: Cycle Variant' "cycleVariant": 'V: Cycle Variant',
"enablePassive": "Enable Passive",
"disablePassive": "Disable Passive"
} as const; } as const;

View File

@ -63,5 +63,7 @@ export const menu: SimpleTranslationEntries = {
"cycleGender": 'G: Cycle Gender', "cycleGender": 'G: Cycle Gender',
"cycleAbility": 'E: Cycle Ability', "cycleAbility": 'E: Cycle Ability',
"cycleNature": 'N: Cycle Nature', "cycleNature": 'N: Cycle Nature',
"cycleVariant": 'V: Cycle Variant' "cycleVariant": 'V: Cycle Variant',
"enablePassive": "Enable Passive",
"disablePassive": "Disable Passive"
} as const; } as const;

View File

@ -836,7 +836,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
if (passiveAttr & PassiveAttr.UNLOCKED) { if (passiveAttr & PassiveAttr.UNLOCKED) {
if (!(passiveAttr & PassiveAttr.ENABLED)) { if (!(passiveAttr & PassiveAttr.ENABLED)) {
options.push({ options.push({
label: 'Enable Passive', label: i18next.t("menu:enablePassive"),
handler: () => { handler: () => {
starterData.passiveAttr |= PassiveAttr.ENABLED; starterData.passiveAttr |= PassiveAttr.ENABLED;
ui.setMode(Mode.STARTER_SELECT); ui.setMode(Mode.STARTER_SELECT);
@ -846,7 +846,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
}); });
} else { } else {
options.push({ options.push({
label: 'Disable Passive', label: i18next.t("menu:disablePassive"),
handler: () => { handler: () => {
starterData.passiveAttr ^= PassiveAttr.ENABLED; starterData.passiveAttr ^= PassiveAttr.ENABLED;
ui.setMode(Mode.STARTER_SELECT); ui.setMode(Mode.STARTER_SELECT);