Skip to content
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

Problem loading new language on iOS (React Ionic) #156

Open
daniosoriov opened this issue Oct 18, 2024 · 2 comments
Open

Problem loading new language on iOS (React Ionic) #156

daniosoriov opened this issue Oct 18, 2024 · 2 comments

Comments

@daniosoriov
Copy link

💥 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.

@adrai
Copy link
Member

adrai commented Oct 18, 2024

Probably same story like #154

Probably the resources loading is failing (and was already failing before), but now it retries a couple of times before finishing the init call....

@daniosoriov
Copy link
Author

Probably same story like #154

Probably the resources loading is failing (and was already failing before), but now it retries a couple of times before finishing the init call....

Yes, it may be the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants