UNPKG

lareact-i18n

Version:

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

9 lines (8 loc) 350 B
import LocaleFileInterface from '../interfaces/locale-file'; /** * Resolves the language files for a given locale. * * @param files - The available translation files. * @param locale - The target locale. */ export default function resolver(files: Record<string, any> | Record<string, () => Promise<any>>, locale: string): LocaleFileInterface[];