i18n for Pokemon moves (#155)

* i18n for moves

* Remove extra comma from merge

* Fixed some missing moves description

* Infer move i18n keys

---------

Co-authored-by: Samuel H <flashfireex@gmail.com>
pull/160/head^2
Miguel S 2024-04-16 20:29:32 +02:00 committed by GitHub
parent cfd30f16b2
commit 7bc147166e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5076 additions and 1104 deletions

File diff suppressed because it is too large Load Diff

3678
src/locales/en/move.ts Normal file

File diff suppressed because it is too large Load Diff

6
src/locales/fr/move.ts Normal file
View File

@ -0,0 +1,6 @@
export const move = {
"ember": {
name: "Flammèche",
effect: "Flammèche inflige des dégâts et a des chances de brûler le Pokémon adverse."
},
} as const;

View File

@ -2,6 +2,9 @@ import i18next from 'i18next';
import { menu as enMenu } from '../locales/en/menu';
import { menu as itMenu } from '../locales/it/menu';
import { move as enMove } from '../locales/en/move';
import { move as frMove } from '../locales/fr/move';
const DEFAULT_LANGUAGE_OVERRIDE = '';
/**
@ -26,9 +29,13 @@ i18next.init({
resources: {
en: {
menu: enMenu,
move: enMove,
},
it: {
menu: itMenu,
},
fr: {
move: frMove,
}
},
});
@ -38,6 +45,7 @@ declare module 'i18next' {
interface CustomTypeOptions {
resources: {
menu: typeof enMenu;
move: typeof enMove;
};
}
}