UNPKG

lr-i18n

Version:

Allows to connect your `Laravel` Framework localization files with `React`.

15 lines (14 loc) 469 B
/** * * @param files */ export default function recognizer(files: Record<string, unknown> | Record<string, () => Promise<unknown>>): { isLocale: (locale: string) => boolean; getLocales: () => string[]; isJsonLocale: (locale: string) => boolean; getJsonLocales: () => string[]; isPhpLocale: (locale: string) => boolean; getPhpLocales: () => string[]; getJsonFile: (locale: string) => string; getPhpFile: (locale: string) => string; };