mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-20 16:55:45 +01:00
* Migrate en (English) * Migrate es (Spanish) * fix es/config.ts export * fix ts-compiler with i18n issue * fix battle-stat.test.ts * move `i18n.d.ts` content into `i18next.d.ts` and remove `defaultValue` key
19 lines
537 B
TypeScript
19 lines
537 B
TypeScript
import { type enConfig } from "#app/locales/en/config.js";
|
|
import { TOptions } from "i18next";
|
|
|
|
//TODO: this needs to be type properly in the future
|
|
// Module declared to make referencing keys in the localization files type-safe.
|
|
declare module "i18next" {
|
|
interface CustomTypeOptions {
|
|
defaultNS: "menu", // needed here as well for typedoc
|
|
resources: typeof enConfig
|
|
}
|
|
|
|
interface TFunction {
|
|
(
|
|
key: string | string[],
|
|
options?: TOptions & Record<string, unknown>
|
|
): string;
|
|
}
|
|
}
|