mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 16:02:20 +02:00
Import new localization files into i18n plugin
This commit is contained in:
parent
7db45b63bb
commit
b77c2a35e1
@ -45,6 +45,19 @@ import { commandUiHandler as deCommandUiHandler } from '../locales/de/command-ui
|
|||||||
import { fightUiHandler as enFightUiHandler } from '../locales/en/fight-ui-handler';
|
import { fightUiHandler as enFightUiHandler } from '../locales/en/fight-ui-handler';
|
||||||
import { fightUiHandler as frFightUiHandler } from '../locales/fr/fight-ui-handler';
|
import { fightUiHandler as frFightUiHandler } from '../locales/fr/fight-ui-handler';
|
||||||
|
|
||||||
|
import { modifierType as enModifierType } from '../locales/en/modifier-type';
|
||||||
|
import { modifierType as esModifierType } from '../locales/es/modifier-type';
|
||||||
|
|
||||||
|
import { modifier as enModifier } from '../locales/en/modifier';
|
||||||
|
import { modifier as esModifier } from '../locales/es/modifier';
|
||||||
|
|
||||||
|
import { type as enType } from '../locales/en/type';
|
||||||
|
|
||||||
|
import { nature as enNature } from '../locales/en/nature';
|
||||||
|
import { nature as esNature } from '../locales/es/nature';
|
||||||
|
|
||||||
|
import { berry as enBerry } from '../locales/en/berry';
|
||||||
|
|
||||||
export interface SimpleTranslationEntries {
|
export interface SimpleTranslationEntries {
|
||||||
[key: string]: string
|
[key: string]: string
|
||||||
}
|
}
|
||||||
@ -68,6 +81,24 @@ export interface AbilityTranslationEntries {
|
|||||||
[key: string]: AbilityTranslationEntry
|
[key: string]: AbilityTranslationEntry
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface ModifierTypeTranslationEntry {
|
||||||
|
name: string,
|
||||||
|
description: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ModifierTypeTranslationEntries {
|
||||||
|
[key: string]: ModifierTypeTranslationEntry
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface BerryTranslationEntry {
|
||||||
|
name: string,
|
||||||
|
description: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface BerryTranslationEntries {
|
||||||
|
[key: string]: BerryTranslationEntry
|
||||||
|
}
|
||||||
|
|
||||||
export interface Localizable {
|
export interface Localizable {
|
||||||
localize(): void;
|
localize(): void;
|
||||||
}
|
}
|
||||||
@ -113,6 +144,11 @@ export function initI18n(): void {
|
|||||||
pokemonStat: enPokemonStat,
|
pokemonStat: enPokemonStat,
|
||||||
commandUiHandler: enCommandUiHandler,
|
commandUiHandler: enCommandUiHandler,
|
||||||
fightUiHandler: enFightUiHandler,
|
fightUiHandler: enFightUiHandler,
|
||||||
|
modifierType: enModifierType,
|
||||||
|
modifier: enModifier,
|
||||||
|
type: enType,
|
||||||
|
nature: enNature,
|
||||||
|
berry: enBerry
|
||||||
},
|
},
|
||||||
es: {
|
es: {
|
||||||
menu: esMenu,
|
menu: esMenu,
|
||||||
@ -123,6 +159,9 @@ export function initI18n(): void {
|
|||||||
pokemon: esPokemon,
|
pokemon: esPokemon,
|
||||||
pokemonStat: esPokemonStat,
|
pokemonStat: esPokemonStat,
|
||||||
commandUiHandler: esCommandUiHandler,
|
commandUiHandler: esCommandUiHandler,
|
||||||
|
modifierType: esModifierType,
|
||||||
|
modifier: esModifier,
|
||||||
|
nature: esNature
|
||||||
},
|
},
|
||||||
fr: {
|
fr: {
|
||||||
menu: frMenu,
|
menu: frMenu,
|
||||||
@ -167,6 +206,11 @@ declare module 'i18next' {
|
|||||||
pokemonStat: typeof enPokemonStat;
|
pokemonStat: typeof enPokemonStat;
|
||||||
commandUiHandler: typeof enCommandUiHandler;
|
commandUiHandler: typeof enCommandUiHandler;
|
||||||
fightUiHandler: typeof enFightUiHandler;
|
fightUiHandler: typeof enFightUiHandler;
|
||||||
|
modifierType: typeof enModifierType;
|
||||||
|
modifier: typeof enModifier;
|
||||||
|
type: typeof enType;
|
||||||
|
nature: typeof enNature;
|
||||||
|
berry: typeof enBerry;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user