-
-
Notifications
You must be signed in to change notification settings - Fork 578
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
Documentation: TranslateHttpLoader picks up HttpClient interceptors #921
Comments
It works without webpack. Any help? |
I posted the link to this issue as solution to some other issues I found and studied during my own research. They all seem to point to exactly the same problem in Angular 8 when using Interceptors. This issue here was a godsend that fixed the problem for me :) |
In the 404 link -@antonlashan had the answer for me -> creating a custom httpclient did the trick |
it works but don't know why folder name has to be i18n mandatory. other name doesn't work 😞 spent 2 hrs on this |
Had a similar issue, causing circular dependencies. |
Current behavior
The documentation suggests using the TranslateHttpLoader for downloading the the translation files. If there are
HttpInterceptors
, such as for Authentication, provided in the application, this can have unwanted side-effects.Expected behavior
Realistically, you only want to use the TranslateHttpLoader without HttpInterceptors. This can be achieved using the HttpBackend class, as described here.
How do you think that we should fix this?
Update the documentation to suggest this is a problem, and the alternative is to use the HttpBackend with HttpClient to ignore interceptors, like so:
Minimal reproduction of the problem with instructions
Use an HttpInterceptor in the App that appends an external base url to all calls, thus breaking the location of the TranslateHttpLoader.
Environment
The text was updated successfully, but these errors were encountered: