Allowing pokemon name translation (#228)

* Allow pokemon name translation

* Improve Pokemon localization

---------

Co-authored-by: Flashfyre <flashfireex@gmail.com>
This commit is contained in:
GwendalandFlashfyre authored and GitHub committed 2024-04-21 19:53:24 -04:00
1 parent 1a53c19e3b
commit 8d7f1ae554
15 files changed
+3300 -1103

No files matched your search

+11 -1
View File
@@ -9,12 +9,19 @@ import { move as frMove } from '../locales/fr/move';
import { pokeball as enPokeball } from '../locales/en/pokeball';
import { pokeball as frPokeball } from '../locales/fr/pokeball';
import { pokemon as enPokemon } from '../locales/en/pokemon';
import { pokemon as frPokemon } from '../locales/fr/pokemon';
export interface SimpleTranslationEntries {
[key: string]: string
}
export interface MoveTranslationEntry {
name: string,
effect: string
}
export interface MoveTranslations {
export interface MoveTranslationEntries {
[key: string]: MoveTranslationEntry
}
@@ -54,6 +61,7 @@ export function initI18n(): void {
menu: enMenu,
move: enMove,
pokeball: enPokeball,
pokemon: enPokemon,
},
it: {
menu: itMenu,
@@ -62,6 +70,7 @@ export function initI18n(): void {
menu: frMenu,
move: frMove,
pokeball: frPokeball,
pokemon: frPokemon,
}
},
});
@@ -74,6 +83,7 @@ declare module 'i18next' {
menu: typeof enMenu;
move: typeof enMove;
pokeball: typeof enPokeball;
pokemon: typeof enPokemon;
};
}
}