diff --git a/src/locales/en/move.ts b/src/locales/en/move.ts index 7af9a20bf9c..67e7161dde8 100644 --- a/src/locales/en/move.ts +++ b/src/locales/en/move.ts @@ -1,11 +1,4 @@ -interface MoveTranslationEntry { - name: string, - effect: string -} - -interface MoveTranslations { - [key: string]: MoveTranslationEntry -} +import { MoveTranslations } from "#app/plugins/i18n"; export const move: MoveTranslations = { "pound": { diff --git a/src/locales/fr/move.ts b/src/locales/fr/move.ts index 384f7145b21..31ca5eba024 100644 --- a/src/locales/fr/move.ts +++ b/src/locales/fr/move.ts @@ -1,4 +1,6 @@ -export const move = { +import { MoveTranslations } from "#app/plugins/i18n"; + +export const move: MoveTranslations = { "pound": { name: "Écras'Face", effect: "Le lanceur écrase la cible avec l’un de ses membres, tels qu’une de ses pattes avant ou sa longue queue." diff --git a/src/plugins/i18n.ts b/src/plugins/i18n.ts index fc67c655c15..8e4997f5d8d 100644 --- a/src/plugins/i18n.ts +++ b/src/plugins/i18n.ts @@ -6,6 +6,15 @@ import { menu as frMenu } from '../locales/fr/menu'; import { move as enMove } from '../locales/en/move'; import { move as frMove } from '../locales/fr/move'; +export interface MoveTranslationEntry { + name: string, + effect: string +} + +export interface MoveTranslations { + [key: string]: MoveTranslationEntry +} + const DEFAULT_LANGUAGE_OVERRIDE = ''; /**