import i from "i18next";
import { initReactI18next as s, useTranslation as r } from "react-i18next";
import { useEffect as l } from "react";
const e = i.use(s);
e.init({
  lng: "en",
  fallbackLng: "en",
  interpolation: {
    escapeValue: !1
  }
});
function p(n, t) {
  const { t: o, ...a } = r(
    n,
    // @ts-expect-error
    t
  );
  return { t: o, ...a };
}
const m = (n = {}) => {
  l(() => {
    e.addResourceBundle("en", "translation", n);
  }, [n]);
};
export {
  m as useLocalisation,
  p as useTypedTranslation
};
//# sourceMappingURL=localisation.js.map
