Support localization of Pokemon abilities

This commit is contained in:
PabloG02 2024-04-24 20:31:30 +02:00
parent 37266a7a5d
commit 389a347b07
3 changed files with 1729 additions and 360 deletions

File diff suppressed because it is too large Load Diff

1244
src/locales/en/ability.ts Normal file

File diff suppressed because it is too large Load Diff

View File

@ -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;