mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-11 02:42:19 +02:00
New growth rate lang files
This commit is contained in:
parent
bde7620ac0
commit
9834abc177
10
src/locales/de/growth.ts
Normal file
10
src/locales/de/growth.ts
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||||
|
|
||||||
|
export const growth: SimpleTranslationEntries = {
|
||||||
|
"Erratic": "Erratic",
|
||||||
|
"Fast": "Fast",
|
||||||
|
"Medium_Fast": "Medium Fast",
|
||||||
|
"Medium_Slow": "Medium Slow",
|
||||||
|
"Slow": "Slow",
|
||||||
|
"Fluctuating": "Fluctuating"
|
||||||
|
} as const;
|
10
src/locales/en/growth.ts
Normal file
10
src/locales/en/growth.ts
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||||
|
|
||||||
|
export const growth: SimpleTranslationEntries = {
|
||||||
|
"Erratic": "Erratic",
|
||||||
|
"Fast": "Fast",
|
||||||
|
"Medium_Fast": "Medium Fast",
|
||||||
|
"Medium_Slow": "Medium Slow",
|
||||||
|
"Slow": "Slow",
|
||||||
|
"Fluctuating": "Fluctuating"
|
||||||
|
} as const;
|
10
src/locales/es/growth.ts
Normal file
10
src/locales/es/growth.ts
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||||
|
|
||||||
|
export const growth: SimpleTranslationEntries = {
|
||||||
|
"Erratic": "Errático",
|
||||||
|
"Fast": "Rápido",
|
||||||
|
"Medium_Fast": "Medio Rápido",
|
||||||
|
"Medium_Slow": "Medio Lento",
|
||||||
|
"Slow": "Lento",
|
||||||
|
"Fluctuating": "Fluctuante"
|
||||||
|
} as const;
|
10
src/locales/fr/growth.ts
Normal file
10
src/locales/fr/growth.ts
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||||
|
|
||||||
|
export const growth: SimpleTranslationEntries = {
|
||||||
|
"Erratic": "Erratic",
|
||||||
|
"Fast": "Fast",
|
||||||
|
"Medium_Fast": "Medium Fast",
|
||||||
|
"Medium_Slow": "Medium Slow",
|
||||||
|
"Slow": "Slow",
|
||||||
|
"Fluctuating": "Fluctuating"
|
||||||
|
} as const;
|
10
src/locales/it/growth.ts
Normal file
10
src/locales/it/growth.ts
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||||
|
|
||||||
|
export const growth: SimpleTranslationEntries = {
|
||||||
|
"Erratic": "Erratic",
|
||||||
|
"Fast": "Fast",
|
||||||
|
"Medium_Fast": "Medium Fast",
|
||||||
|
"Medium_Slow": "Medium Slow",
|
||||||
|
"Slow": "Slow",
|
||||||
|
"Fluctuating": "Fluctuating"
|
||||||
|
} as const;
|
@ -73,6 +73,12 @@ import { starterSelectUiHandler as frStarterSelectUiHandler } from '../locales/f
|
|||||||
import { starterSelectUiHandler as itStarterSelectUiHandler} from '../locales/it/starter-select-ui-handler';
|
import { starterSelectUiHandler as itStarterSelectUiHandler} from '../locales/it/starter-select-ui-handler';
|
||||||
import { starterSelectUiHandler as deStarterSelectUiHandler } from '../locales/de/starter-select-ui-handler';
|
import { starterSelectUiHandler as deStarterSelectUiHandler } from '../locales/de/starter-select-ui-handler';
|
||||||
|
|
||||||
|
import { growth as enGrowth } from '../locales/en/growth';
|
||||||
|
import { growth as esGrowth } from '../locales/es/growth';
|
||||||
|
import { growth as frGrowth } from '../locales/fr/growth';
|
||||||
|
import { growth as itGrowth } from '../locales/it/growth';
|
||||||
|
import { growth as deGrowth } from '../locales/de/growth';
|
||||||
|
|
||||||
export interface SimpleTranslationEntries {
|
export interface SimpleTranslationEntries {
|
||||||
[key: string]: string
|
[key: string]: string
|
||||||
}
|
}
|
||||||
@ -142,7 +148,9 @@ export function initI18n(): void {
|
|||||||
commandUiHandler: enCommandUiHandler,
|
commandUiHandler: enCommandUiHandler,
|
||||||
fightUiHandler: enFightUiHandler,
|
fightUiHandler: enFightUiHandler,
|
||||||
tutorial: enTutorial,
|
tutorial: enTutorial,
|
||||||
starterSelectUiHandler: enStarterSelectUiHandler
|
starterSelectUiHandler: enStarterSelectUiHandler,
|
||||||
|
growth: enGrowth
|
||||||
|
|
||||||
},
|
},
|
||||||
es: {
|
es: {
|
||||||
menu: esMenu,
|
menu: esMenu,
|
||||||
@ -156,7 +164,8 @@ export function initI18n(): void {
|
|||||||
commandUiHandler: esCommandUiHandler,
|
commandUiHandler: esCommandUiHandler,
|
||||||
fightUiHandler: esFightUiHandler,
|
fightUiHandler: esFightUiHandler,
|
||||||
tutorial: esTutorial,
|
tutorial: esTutorial,
|
||||||
starterSelectUiHandler: esStarterSelectUiHandler
|
starterSelectUiHandler: esStarterSelectUiHandler,
|
||||||
|
growth: esGrowth
|
||||||
},
|
},
|
||||||
fr: {
|
fr: {
|
||||||
menu: frMenu,
|
menu: frMenu,
|
||||||
@ -170,7 +179,8 @@ export function initI18n(): void {
|
|||||||
commandUiHandler: frCommandUiHandler,
|
commandUiHandler: frCommandUiHandler,
|
||||||
fightUiHandler: frFightUiHandler,
|
fightUiHandler: frFightUiHandler,
|
||||||
tutorial: frTutorial,
|
tutorial: frTutorial,
|
||||||
starterSelectUiHandler: frStarterSelectUiHandler
|
starterSelectUiHandler: frStarterSelectUiHandler,
|
||||||
|
growth: frGrowth
|
||||||
},
|
},
|
||||||
it: {
|
it: {
|
||||||
menu: itMenu,
|
menu: itMenu,
|
||||||
@ -184,7 +194,8 @@ export function initI18n(): void {
|
|||||||
commandUiHandler: itCommandUiHandler,
|
commandUiHandler: itCommandUiHandler,
|
||||||
fightUiHandler: itFightUiHandler,
|
fightUiHandler: itFightUiHandler,
|
||||||
tutorial: itTutorial,
|
tutorial: itTutorial,
|
||||||
starterSelectUiHandler: itStarterSelectUiHandler
|
starterSelectUiHandler: itStarterSelectUiHandler,
|
||||||
|
growth: itGrowth
|
||||||
},
|
},
|
||||||
de: {
|
de: {
|
||||||
menu: deMenu,
|
menu: deMenu,
|
||||||
@ -198,7 +209,8 @@ export function initI18n(): void {
|
|||||||
commandUiHandler: deCommandUiHandler,
|
commandUiHandler: deCommandUiHandler,
|
||||||
fightUiHandler: deFightUiHandler,
|
fightUiHandler: deFightUiHandler,
|
||||||
tutorial: deTutorial,
|
tutorial: deTutorial,
|
||||||
starterSelectUiHandler: deStarterSelectUiHandler
|
starterSelectUiHandler: deStarterSelectUiHandler,
|
||||||
|
growth: deGrowth
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@ -220,6 +232,7 @@ declare module 'i18next' {
|
|||||||
fightUiHandler: typeof enFightUiHandler;
|
fightUiHandler: typeof enFightUiHandler;
|
||||||
tutorial: typeof enTutorial;
|
tutorial: typeof enTutorial;
|
||||||
starterSelectUiHandler: typeof enStarterSelectUiHandler;
|
starterSelectUiHandler: typeof enStarterSelectUiHandler;
|
||||||
|
growth: typeof enGrowth;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1281,7 +1281,14 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
|||||||
this.pokemonLuckText.setTint(getVariantTint(Math.min(luck - 1, 2) as Variant));
|
this.pokemonLuckText.setTint(getVariantTint(Math.min(luck - 1, 2) as Variant));
|
||||||
this.pokemonLuckLabelText.setVisible(this.pokemonLuckText.visible);
|
this.pokemonLuckLabelText.setVisible(this.pokemonLuckText.visible);
|
||||||
|
|
||||||
this.pokemonGrowthRateText.setText(Utils.toReadableString(GrowthRate[species.growthRate]));
|
//Growth translate
|
||||||
|
let growthReadable = Utils.toReadableString(GrowthRate[species.growthRate]);
|
||||||
|
let growthAux = growthReadable.replace(" ", "_")
|
||||||
|
if(i18next.exists("growth:" + growthAux)){
|
||||||
|
growthReadable = i18next.t("growth:"+ growthAux as any)
|
||||||
|
}
|
||||||
|
this.pokemonGrowthRateText.setText(growthReadable);
|
||||||
|
|
||||||
this.pokemonGrowthRateText.setColor(getGrowthRateColor(species.growthRate));
|
this.pokemonGrowthRateText.setColor(getGrowthRateColor(species.growthRate));
|
||||||
this.pokemonGrowthRateText.setShadowColor(getGrowthRateColor(species.growthRate, true));
|
this.pokemonGrowthRateText.setShadowColor(getGrowthRateColor(species.growthRate, true));
|
||||||
this.pokemonGrowthRateLabelText.setVisible(true);
|
this.pokemonGrowthRateLabelText.setVisible(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user