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
parent
cfd30f16b2
commit
7bc147166e
2488
src/data/move.ts
2488
src/data/move.ts
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -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