mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 07:52:17 +02:00
Support localization of Pokemon abilities
This commit is contained in:
parent
37266a7a5d
commit
389a347b07
File diff suppressed because it is too large
Load Diff
1244
src/locales/en/ability.ts
Normal file
1244
src/locales/en/ability.ts
Normal file
File diff suppressed because it is too large
Load Diff
@ -8,6 +8,8 @@ import { move as enMove } from '../locales/en/move';
|
||||
import { move as esMove } from '../locales/es/move';
|
||||
import { move as frMove } from '../locales/fr/move';
|
||||
|
||||
import { ability as enAbility } from '../locales/en/ability';
|
||||
|
||||
import { pokeball as enPokeball } from '../locales/en/pokeball';
|
||||
import { pokeball as esPokeball } from '../locales/es/pokeball';
|
||||
import { pokeball as frPokeball } from '../locales/fr/pokeball';
|
||||
@ -34,6 +36,15 @@ export interface MoveTranslationEntries {
|
||||
[key: string]: MoveTranslationEntry
|
||||
}
|
||||
|
||||
export interface AbilityTranslationEntry {
|
||||
name: string,
|
||||
description: string
|
||||
}
|
||||
|
||||
export interface AbilityTranslationEntries {
|
||||
[key: string]: AbilityTranslationEntry
|
||||
}
|
||||
|
||||
export interface Localizable {
|
||||
localize(): void;
|
||||
}
|
||||
@ -69,6 +80,7 @@ export function initI18n(): void {
|
||||
en: {
|
||||
menu: enMenu,
|
||||
move: enMove,
|
||||
ability: enAbility,
|
||||
pokeball: enPokeball,
|
||||
pokemon: enPokemon,
|
||||
commandUiHandler: enCommandUiHandler,
|
||||
@ -100,6 +112,7 @@ declare module 'i18next' {
|
||||
resources: {
|
||||
menu: typeof enMenu;
|
||||
move: typeof enMove;
|
||||
ability: typeof enAbility;
|
||||
pokeball: typeof enPokeball;
|
||||
pokemon: typeof enPokemon;
|
||||
commandUiHandler: typeof enCommandUiHandler;
|
||||
|
Loading…
Reference in New Issue
Block a user