I18next-resources-to-backend
lastmod 2023-12-01created 2023-12-012 edits
This package helps to transform resources to an i18next backend
Helper that converts resources into an i18next Backend
Example
import i18next from 'i18next';
import resourcesToBackend from 'i18next-resources-to-backend';
i18next
.use(resourcesToBackend((language, namespace) => import(`./locales/${language}/${namespace}.json`)))
.init({ /* other options */ })