mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-26 00:36:25 +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 enMenu } from '../locales/en/menu';
|
||||||
import { menu as itMenu } from '../locales/it/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 = '';
|
const DEFAULT_LANGUAGE_OVERRIDE = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -26,9 +29,13 @@ i18next.init({
|
|||||||
resources: {
|
resources: {
|
||||||
en: {
|
en: {
|
||||||
menu: enMenu,
|
menu: enMenu,
|
||||||
|
move: enMove,
|
||||||
},
|
},
|
||||||
it: {
|
it: {
|
||||||
menu: itMenu,
|
menu: itMenu,
|
||||||
|
},
|
||||||
|
fr: {
|
||||||
|
move: frMove,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@ -38,6 +45,7 @@ declare module 'i18next' {
|
|||||||
interface CustomTypeOptions {
|
interface CustomTypeOptions {
|
||||||
resources: {
|
resources: {
|
||||||
menu: typeof enMenu;
|
menu: typeof enMenu;
|
||||||
|
move: typeof enMove;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user