import i18next from 'i18next';
import Backend from 'i18next-fs-backend';
const backend = new Backend({
// path where resources get loaded from
loadPath: '/locales/{{lng}}/{{ns}}.json'
// initImmediate: false, // setting initImediate to false, will load the resources synchronously
}); // yourOptions should not include backendOptions!