Attempting to upgrade from the deprecated i18n-xhr-backend to i18next-http-backend with the same configuration approach means the translations keys are no longer loaded. They are downloaded from the server successfully, but it seems that the json response is not parsed by i18next-http-backend.
🐛 Bug Report
Attempting to upgrade from the deprecated
i18n-xhr-backend
toi18next-http-backend
with the same configuration approach means the translations keys are no longer loaded. They are downloaded from the server successfully, but it seems that the json response is not parsed byi18next-http-backend
.To Reproduce
Moving from this config in
i18n-xhr-backend
:to this one in
i18n-http-backend
:breaks the translations, and results in a bunch of "missing keys" debug messages in the console.
(
customFetch
is just adding a number of headers and tokens to thefetch
request)Expected behavior
The translations should be displayed in my application.
Your Environment