mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-15 12:52:20 +02:00
Natures lang files
This commit is contained in:
parent
bde7620ac0
commit
536605db11
@ -2,6 +2,7 @@ import { Stat, getStatName } from "./pokemon-stat";
|
||||
import * as Utils from "../utils";
|
||||
import { TextStyle, getBBCodeFrag } from "../ui/text";
|
||||
import { UiTheme } from "#app/enums/ui-theme";
|
||||
import i18next from 'i18next';
|
||||
|
||||
export enum Nature {
|
||||
HARDY,
|
||||
@ -33,6 +34,10 @@ export enum Nature {
|
||||
|
||||
export function getNatureName(nature: Nature, includeStatEffects: boolean = false, forStarterSelect: boolean = false, ignoreBBCode: boolean = false, uiTheme: UiTheme = UiTheme.DEFAULT): string {
|
||||
let ret = Utils.toReadableString(Nature[nature]);
|
||||
//Translating nature
|
||||
if(i18next.exists('nature:' + ret)){
|
||||
ret = i18next.t('nature:' + ret as any)
|
||||
}
|
||||
if (includeStatEffects) {
|
||||
const stats = Utils.getEnumValues(Stat).slice(1);
|
||||
let increasedStat: Stat = null;
|
||||
|
29
src/locales/de/nature.ts
Normal file
29
src/locales/de/nature.ts
Normal file
@ -0,0 +1,29 @@
|
||||
import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||
|
||||
export const nature: SimpleTranslationEntries = {
|
||||
"Hardy": "Hardy",
|
||||
"Lonely": "Lonely",
|
||||
"Brave": "Brave",
|
||||
"Adamant": "Adamant",
|
||||
"Naughty": "Naughty",
|
||||
"Bold": "Bold",
|
||||
"Docile": "Docile",
|
||||
"Relaxed": "Relaxed",
|
||||
"Impish": "Impish",
|
||||
"Lax": "Lax",
|
||||
"Timid": "Timid",
|
||||
"Hasty": "Hasty",
|
||||
"Serious": "Serious",
|
||||
"Jolly": "Jolly",
|
||||
"Naive": "Naive",
|
||||
"Modest": "Modest",
|
||||
"Mild": "Mild",
|
||||
"Quiet": "Quiet",
|
||||
"Bashful": "Bashful",
|
||||
"Rash": "Rash",
|
||||
"Calm": "Calm",
|
||||
"Gentle": "Gentle",
|
||||
"Sassy": "Sassy",
|
||||
"Careful": "Careful",
|
||||
"Quirky": "Quirky"
|
||||
} as const;
|
29
src/locales/en/nature.ts
Normal file
29
src/locales/en/nature.ts
Normal file
@ -0,0 +1,29 @@
|
||||
import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||
|
||||
export const nature: SimpleTranslationEntries = {
|
||||
"Hardy": "Hardy",
|
||||
"Lonely": "Lonely",
|
||||
"Brave": "Brave",
|
||||
"Adamant": "Adamant",
|
||||
"Naughty": "Naughty",
|
||||
"Bold": "Bold",
|
||||
"Docile": "Docile",
|
||||
"Relaxed": "Relaxed",
|
||||
"Impish": "Impish",
|
||||
"Lax": "Lax",
|
||||
"Timid": "Timid",
|
||||
"Hasty": "Hasty",
|
||||
"Serious": "Serious",
|
||||
"Jolly": "Jolly",
|
||||
"Naive": "Naive",
|
||||
"Modest": "Modest",
|
||||
"Mild": "Mild",
|
||||
"Quiet": "Quiet",
|
||||
"Bashful": "Bashful",
|
||||
"Rash": "Rash",
|
||||
"Calm": "Calm",
|
||||
"Gentle": "Gentle",
|
||||
"Sassy": "Sassy",
|
||||
"Careful": "Careful",
|
||||
"Quirky": "Quirky"
|
||||
} as const;
|
29
src/locales/es/nature.ts
Normal file
29
src/locales/es/nature.ts
Normal file
@ -0,0 +1,29 @@
|
||||
import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||
|
||||
export const nature: SimpleTranslationEntries = {
|
||||
"Hardy": "Fuerte",
|
||||
"Lonely": "Huraña",
|
||||
"Brave": "Audaz",
|
||||
"Adamant": "Firme",
|
||||
"Naughty": "Pícara",
|
||||
"Bold": "Osada",
|
||||
"Docile": "Dócil",
|
||||
"Relaxed": "Plácida",
|
||||
"Impish": "Agitada",
|
||||
"Lax": "Floja",
|
||||
"Timid": "Miedosa",
|
||||
"Hasty": "Activa",
|
||||
"Serious": "Seria",
|
||||
"Jolly": "Alegre",
|
||||
"Naive": "Ingenua",
|
||||
"Modest": "Modesta",
|
||||
"Mild": "Afable",
|
||||
"Quiet": "Mansa",
|
||||
"Bashful": "Tímida",
|
||||
"Rash": "Alocada",
|
||||
"Calm": "Serena",
|
||||
"Gentle": "Amable",
|
||||
"Sassy": "Grosera",
|
||||
"Careful": "Cauta",
|
||||
"Quirky": "Rara"
|
||||
} as const;
|
29
src/locales/fr/nature.ts
Normal file
29
src/locales/fr/nature.ts
Normal file
@ -0,0 +1,29 @@
|
||||
import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||
|
||||
export const nature: SimpleTranslationEntries = {
|
||||
"Hardy": "Hardy",
|
||||
"Lonely": "Lonely",
|
||||
"Brave": "Brave",
|
||||
"Adamant": "Adamant",
|
||||
"Naughty": "Naughty",
|
||||
"Bold": "Bold",
|
||||
"Docile": "Docile",
|
||||
"Relaxed": "Relaxed",
|
||||
"Impish": "Impish",
|
||||
"Lax": "Lax",
|
||||
"Timid": "Timid",
|
||||
"Hasty": "Hasty",
|
||||
"Serious": "Serious",
|
||||
"Jolly": "Jolly",
|
||||
"Naive": "Naive",
|
||||
"Modest": "Modest",
|
||||
"Mild": "Mild",
|
||||
"Quiet": "Quiet",
|
||||
"Bashful": "Bashful",
|
||||
"Rash": "Rash",
|
||||
"Calm": "Calm",
|
||||
"Gentle": "Gentle",
|
||||
"Sassy": "Sassy",
|
||||
"Careful": "Careful",
|
||||
"Quirky": "Quirky"
|
||||
} as const;
|
29
src/locales/it/nature.ts
Normal file
29
src/locales/it/nature.ts
Normal file
@ -0,0 +1,29 @@
|
||||
import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||
|
||||
export const nature: SimpleTranslationEntries = {
|
||||
"Hardy": "Hardy",
|
||||
"Lonely": "Lonely",
|
||||
"Brave": "Brave",
|
||||
"Adamant": "Adamant",
|
||||
"Naughty": "Naughty",
|
||||
"Bold": "Bold",
|
||||
"Docile": "Docile",
|
||||
"Relaxed": "Relaxed",
|
||||
"Impish": "Impish",
|
||||
"Lax": "Lax",
|
||||
"Timid": "Timid",
|
||||
"Hasty": "Hasty",
|
||||
"Serious": "Serious",
|
||||
"Jolly": "Jolly",
|
||||
"Naive": "Naive",
|
||||
"Modest": "Modest",
|
||||
"Mild": "Mild",
|
||||
"Quiet": "Quiet",
|
||||
"Bashful": "Bashful",
|
||||
"Rash": "Rash",
|
||||
"Calm": "Calm",
|
||||
"Gentle": "Gentle",
|
||||
"Sassy": "Sassy",
|
||||
"Careful": "Careful",
|
||||
"Quirky": "Quirky"
|
||||
} 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 deStarterSelectUiHandler } from '../locales/de/starter-select-ui-handler';
|
||||
|
||||
import { nature as enNature } from '../locales/en/nature';
|
||||
import { nature as esNature } from '../locales/es/nature';
|
||||
import { nature as frNature } from '../locales/fr/nature';
|
||||
import { nature as itNature} from '../locales/it/nature';
|
||||
import { nature as deNature } from '../locales/de/nature';
|
||||
|
||||
export interface SimpleTranslationEntries {
|
||||
[key: string]: string
|
||||
}
|
||||
@ -142,7 +148,8 @@ export function initI18n(): void {
|
||||
commandUiHandler: enCommandUiHandler,
|
||||
fightUiHandler: enFightUiHandler,
|
||||
tutorial: enTutorial,
|
||||
starterSelectUiHandler: enStarterSelectUiHandler
|
||||
starterSelectUiHandler: enStarterSelectUiHandler,
|
||||
nature: enNature
|
||||
},
|
||||
es: {
|
||||
menu: esMenu,
|
||||
@ -156,7 +163,8 @@ export function initI18n(): void {
|
||||
commandUiHandler: esCommandUiHandler,
|
||||
fightUiHandler: esFightUiHandler,
|
||||
tutorial: esTutorial,
|
||||
starterSelectUiHandler: esStarterSelectUiHandler
|
||||
starterSelectUiHandler: esStarterSelectUiHandler,
|
||||
nature: esNature
|
||||
},
|
||||
fr: {
|
||||
menu: frMenu,
|
||||
@ -170,7 +178,8 @@ export function initI18n(): void {
|
||||
commandUiHandler: frCommandUiHandler,
|
||||
fightUiHandler: frFightUiHandler,
|
||||
tutorial: frTutorial,
|
||||
starterSelectUiHandler: frStarterSelectUiHandler
|
||||
starterSelectUiHandler: frStarterSelectUiHandler,
|
||||
nature: frNature
|
||||
},
|
||||
it: {
|
||||
menu: itMenu,
|
||||
@ -184,7 +193,8 @@ export function initI18n(): void {
|
||||
commandUiHandler: itCommandUiHandler,
|
||||
fightUiHandler: itFightUiHandler,
|
||||
tutorial: itTutorial,
|
||||
starterSelectUiHandler: itStarterSelectUiHandler
|
||||
starterSelectUiHandler: itStarterSelectUiHandler,
|
||||
nature: itNature
|
||||
},
|
||||
de: {
|
||||
menu: deMenu,
|
||||
@ -198,7 +208,8 @@ export function initI18n(): void {
|
||||
commandUiHandler: deCommandUiHandler,
|
||||
fightUiHandler: deFightUiHandler,
|
||||
tutorial: deTutorial,
|
||||
starterSelectUiHandler: deStarterSelectUiHandler
|
||||
starterSelectUiHandler: deStarterSelectUiHandler,
|
||||
nature: deNature
|
||||
}
|
||||
},
|
||||
});
|
||||
@ -220,6 +231,7 @@ declare module 'i18next' {
|
||||
fightUiHandler: typeof enFightUiHandler;
|
||||
tutorial: typeof enTutorial;
|
||||
starterSelectUiHandler: typeof enStarterSelectUiHandler;
|
||||
nature: typeof enNature;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user