-
-
Notifications
You must be signed in to change notification settings - Fork 639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Translations are not working when network connection is down #2156
Comments
it will only work if the translations have been preloaded (all required namespaces).... |
Thank you for the response. In my case I don't have any namespaces, there is only one json "file" which obviously has been loaded before any connection issues... I thought it should work offline. Regarding the cache - it is not an option for me, as the application is supposed to have an updates quite often. |
If the translations are loaded there should be no additional request and the translations should work... |
Was unable to respond earlier. |
🐛 Bug Report
I have an ReactJS app and I load the translation files from backend. When internet connection is down (or API does not respond for some reason) translation does not work.
To Reproduce
Run the application, at some point disable internet connection (make backend unreachable) - you will get an keys instead of values.
Here is my configuration:
Even though i18next was inited before and i18next.store has the data it does not work
Expected behavior
Temporary connection issues should not affect i18next, at least until language is switched.
My Environment
The text was updated successfully, but these errors were encountered: