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

Ignore certain namespaces #328

Open
yanickrochon opened this issue Oct 15, 2019 · 1 comment
Open

Ignore certain namespaces #328

yanickrochon opened this issue Oct 15, 2019 · 1 comment

Comments

@yanickrochon
Copy link

When some namespaces are loaded directly inside the app, the backend still try to make an HTTP request. This creates unnecessary requests to the server for translations that are already loaded, and do not exist on the server.

A solution would be to pass an array of namespaces to ignore, or refactor parsePayload so if the returned value is false, to skip for the given language.

@jamuhl
Copy link
Member

jamuhl commented Oct 15, 2019

i18next does not load if already in store: https://github.com/i18next/i18next/blob/master/src/BackendConnector.js#L48

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