'use strict';

var jsxRuntime = require('react/jsx-runtime');
var React = require('react');

const fallback = (_key, defaultValue) => defaultValue;
const NiceI18nContext = React.createContext(fallback);
const NiceI18nProvider = ({ t, children }) => (jsxRuntime.jsx(NiceI18nContext.Provider, { value: t, children: children }));
function useNiceTranslation() {
    const t = React.useContext(NiceI18nContext);
    return { t };
}

exports.NiceI18nProvider = NiceI18nProvider;
exports.useNiceTranslation = useNiceTranslation;
//# sourceMappingURL=i18n.js.map
