import i18next from "i18next"; import { initReactI18next } from "react-i18next"; import fr from "../locales/fr/translation.json"; /** * i18next instance for the admin app, imported once for its side effect * (`main.tsx`) before anything renders. Only French exists today — same * setup as apps/web's `i18n/i18n.ts`, its own separate locale file so the * two apps' copy never has to be kept identical. `packages/shared`'s * `ErrorCode` member names double as keys under the `errors` namespace * (see `services/error-message.service.ts`). */ void i18next.use(initReactI18next).init({ resources: { fr: { translation: fr }, }, lng: "fr", fallbackLng: "fr", interpolation: { escapeValue: false }, }); export default i18next;