import { jsx } from 'react/jsx-runtime';
import { createContext, useContext } from 'react';

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

export { NiceI18nProvider, useNiceTranslation };
//# sourceMappingURL=i18n.js.map
