laravel-i18n-react
Version:
A Vite plugin to load Laravel localization files and provide them to React applications.
15 lines (14 loc) • 469 B
TypeScript
/**
*
* @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;
};