2024-01-04 20:17:54 -05:00
|
|
|
import i18next from "i18next";
|
|
|
|
import resourcesToBackend from "i18next-resources-to-backend";
|
2023-12-30 02:18:07 +01:00
|
|
|
|
|
|
|
i18next
|
2024-01-12 18:39:57 +01:00
|
|
|
.use(resourcesToBackend((language, namespace) => import(`./locales/${namespace}/${language}.json`)))
|
2023-12-30 02:18:07 +01:00
|
|
|
.init({
|
|
|
|
// debug: true,
|
2024-01-12 18:39:57 +01:00
|
|
|
ns: ["common"], // Preload this namespace, no need to add the others, they will load once their module is loaded
|
2024-01-04 20:17:54 -05:00
|
|
|
defaultNS: "common",
|
|
|
|
fallbackLng: "en",
|
2023-12-30 02:18:07 +01:00
|
|
|
interpolation: {
|
|
|
|
escapeValue: false,
|
|
|
|
}
|
|
|
|
});
|