Is it possible to integrate multiple projects in the same app/website?
Using i18next?
import i18next from "i18next";
import ChainedBackend from "i18next-chained-backend";
import LocizeBackend from "i18next-locize-backend";
i18next
.use(ChainedBackend)
.init({
fallbackLng: "en",
// ... your i18next config
backend: {
backends: [
LocizeBackend,
LocizeBackend
],
backendOptions: [
{ // first project
projectId: "[PROJECTID]",
version: "[VERSION]",
referenceLng: "en"
},
{ // second project
projectId: "[PROJECTID]",
version: "[VERSION]",
referenceLng: "en"
}
]
}
});App / Website splitted in app specific and framework translations.
Last updated