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

All language resource are loaded on language change #24

Open
semet opened this issue Jan 6, 2025 · 0 comments
Open

All language resource are loaded on language change #24

semet opened this issue Jan 6, 2025 · 0 comments

Comments

@semet
Copy link

semet commented Jan 6, 2025

Let’s say we have two supported languages. ‘en’ and ‘bs’ and we set the fallbankLng to ‘en’. We also have two simple namespace, ‘common’ and ‘home’.
With this, in the network tab, we can see the 'http://localhost:3000/resource/locales?lng=en&ns=common’ and 'http://localhost:3000/resource/locales?lng=en&ns=home’ being loaded since we use both name space in the _index route.

But, when I switch the language into bs, it loads

  1. http://localhost:3000/resource/locales?lng=en&ns=common
  2. http://localhost:3000/resource/locales?lng=en&ns=home
  3. http://localhost:3000/resource/locales?lng=bs&ns=common
  4. http://localhost:3000/resource/locales?lng=bs&ns=home

This means, all the resource for both supported languages are loaded if we switch to the non-fallback language..

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

1 participant