Questions tagged [i18next-http-backend]
42 questions
0
votes
1 answer
react-i18n useSuspense never ends if backend loading fails
In my react app, I am using i18next-http-backend to load translation data from backend response. Currently my app works fine in the below configuration:
config.js
import i18n from 'i18next';
import {initReactI18next} from 'react-i18next';
import…

Ahashan Alam Sojib
- 77
- 1
- 7
0
votes
1 answer
Export JSON from i18next to the client
I'm trying to export a JSON locale file from i18next to a link as an API to use on the client. The problem is that it only exports the locale that is specified in "fallbackLng", which is 'en'. How can I make it detect the locale from the…

jiwooshim
- 69
- 6
0
votes
0 answers
i18next with axios backend in react
I'm trying to implement language change in my app using these dependencies:
"i18next": "^21.6.13",
"i18next-browser-languagedetector": "^6.1.3",
"i18next-http-backend": "^1.3.2",
"react-i18next": "^11.15.6",
I tried pretty standard method and it…

M G
- 35
- 7
0
votes
1 answer
I18next http backend why not store in client side?
I want to use i18next with httpbackend, but my question is now why everyone uses a backend for this why I can not create in my react folder a public folder and then load this from there ?

universe11
- 703
- 1
- 11
- 35
0
votes
1 answer
How to output a file in i18next via custom plugin?
I tried creating a custom plugin to download data from backend using i18next plugin, however, is stuck at data dumping process. I am using NextJS for frontend.
Here is the configuration file for NextJS.
const { i18n } =…

GOAT
- 1
0
votes
1 answer
i18next and locize - translations not downloaded on 18next.init() -> Network request failed (react native)
When initialising i18next using Locize backend there is an issue on android devices where Locize backend plugin returns i18next::backendConnector: loading namespace translation for language en failed [TypeError: Network request failed] on load but…

Marko Petricic
- 21
- 3
0
votes
0 answers
How to configure i18n.config.js so that `preact build --prerenderUrls ./prerender-urls.js` succeeds?
I have a frontend project setup with preact-cli, which leverages i18next with http-backend. This configuration is to facilitate the serving of the translations on demand from the CDN the app is to run in production on. So far I can get this to work…

Kevin Johnson
- 1,890
- 13
- 15
0
votes
1 answer
Page flickers when lazy-loading translations with i18next-http-backend
I'm not sure if this is actually an issue with the plugin and my configurations, or if it is just standard behaviour.
I'm using react-i18next with i18next-http-backend to load translation files from the public folder. The lazy-loading is a nice…

mpg
- 113
- 1
- 1
- 6
0
votes
2 answers
i18next with HttpBackend, Trans looking for key before init finished
I'm loading translations dynamically, with the HttpBackend
However inside my component I use the Trans component, and it is screaming about missing translation key, I also see the init finished after it tried to access the Trans component.
I have a…

Dory Zidon
- 10,497
- 2
- 25
- 39
0
votes
1 answer
The server responded with a non-JavaScript MIME type of "application/node"
I'm trying to set up a localization on my website using i18next. I'm using following script (mostly is now from the actual i18next website), but importing of the backend throws in an error.