This commit is contained in:
natib21
2026-07-10 11:25:59 +00:00
parent 2696ca7498
commit e6e44e773b
1146 changed files with 200266 additions and 90527 deletions

View File

@@ -0,0 +1,22 @@
import i18n from "i18next";
import { initReactI18next } from "react-i18next";
/**
* i18next singleton for the vendored IAM UI (shared/super-admin/
* user-management), which do `import i18n from "@/i18n"` and call
* `useTranslation()` / `t()`. Minimal init so those resolve and render keys;
* load real translation resources here as they are migrated.
*/
if (!i18n.isInitialized) {
void i18n.use(initReactI18next).init({
resources: { en: { translation: {} } },
lng: "en",
fallbackLng: "en",
interpolation: { escapeValue: false },
returnNull: false,
// Missing keys render as the key text itself (acceptable until resources land).
parseMissingKeyHandler: (key) => key,
});
}
export default i18n;