packaging working, need to fix json import assertion
This commit is contained in:
14
shared-operations/src/i18next.config.ts
Normal file
14
shared-operations/src/i18next.config.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import i18next from "i18next";
|
||||
import resourcesToBackend from "i18next-resources-to-backend";
|
||||
|
||||
i18next
|
||||
.use(resourcesToBackend((language, namespace) => import(`./locales/${namespace}/${language}.json`)))
|
||||
.init({
|
||||
// debug: true,
|
||||
ns: ["common"], // Preload this namespace, no need to add the others, they will load once their module is loaded
|
||||
defaultNS: "common",
|
||||
fallbackLng: "en",
|
||||
interpolation: {
|
||||
escapeValue: false,
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user