React i18next Backend-Path different in local and production environment
问题 I'm using a react app with react-i18next and loading the translation with i18next-xhr-backend i18n .use(Backend) .use(initReactI18next) // passes i18n down to react-i18next .init({ lng: "de", backend: { loadPath: '/static/locales/{{lng}}/{{ns}}.json' } }); If I run it locally my app is served over http://localhost:3000/ and the translation file is also loading nicely (src is located in public/statuc/locales/ ) http://localhost:3000/static/locales/de/translation.json I'm now facing the issue