"use client";

import { createI18nClient } from "next-international/client";

import { languageMapping } from "./lang";
import enTranslation from "./lang/en";

export const { useI18n, useScopedI18n, useCurrentLocale, useChangeLocale, I18nProviderClient } = createI18nClient(
  languageMapping(),
  {
    fallbackLocale: enTranslation,
  },
);
