i18next-http-backend
i18next-http-backend copied to clipboard
Problem loading new language on iOS (React Ionic)
💥 Regression Report
When changing languages on our Ionic React application, we experience an idling state of about 15 seconds on iOS before switching the language.
Last working version
Worked up to version: 2.6.1
Stopped working in version: 2.6.2
To Reproduce
Steps to reproduce the behavior:
import i18next from 'i18next'
// Load the current selected language, format: `en-GB`
const { selectedLanguage } = useSelector((state: AppState): RegionState => state.region)
i18next.changeLanguage(selectedLanguage)
We do not see any relevant console logs or error messages.
Expected behavior
Before, it would load the new language immediately. Now, it takes about 15 seconds. Notice that this happens only on iOS. We also deploy on Android and as a PWA and have no issues there.
Your Environment
- runtime version: node v20.17.0.
- i18next version: 23.16.0
- os: iOS and mac
P.S.: We can provide a quick video where the behaviour is seen clearly if you need it.