mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-25 08:16:04 +00:00
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>
This commit is contained in:
parent
cfd30f16b2
commit
7bc147166e
2488
src/data/move.ts
2488
src/data/move.ts
File diff suppressed because it is too large
Load Diff
3678
src/locales/en/move.ts
Normal file
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
6
src/locales/fr/move.ts
Normal 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;
|
@ -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;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user