UNPKG

lr-i18n

Version:

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

14 lines (13 loc) 373 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Context = void 0; const react_1 = require("react"); exports.Context = (0, react_1.createContext)({ t: (key) => '', tChoice: (key) => '', currentLocale: () => '', getLocales: () => [''], isLocale: (locale) => true, loading: true, setLocale: (locale) => { } });