UNPKG

lr-i18n

Version:

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

11 lines (10 loc) 267 B
import { createContext } from 'react'; export const Context = createContext({ t: (key) => '', tChoice: (key) => '', currentLocale: () => '', getLocales: () => [''], isLocale: (locale) => true, loading: true, setLocale: (locale) => { } });