lr-i18n
Version:
Allows to connect your `Laravel` Framework localization files with `React`.
14 lines (13 loc) • 373 B
JavaScript
;
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) => { }
});