You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] bug report => check the FAQ and search github for a similar issue or PR before submitting
[x] support request => check the FAQ and search github for a similar issue before submitting
[ ] feature request
Current behavior
I'm using exensively this module for my translations. Currently, I'm downloading the translations using an api call, not an static json file. It works very well and I can add new labels or change translations from a DB dinamically. But now I'm currently seeing that every component that uses the service or pipe, makes a call to the api, without caching the data, even if the language is the same. Currently, there are like 30 calls to the api at least.
Expected/desired behavior
I'm expecting that the factory only makes a call per language and then caches the data until language changes.
Reproduction of the problem
Appoint to an external api for getting non-static translations.
What is the expected behavior?
What is the motivation / use case for changing the behavior?
Performance
Please tell us about your environment:
Windows 10
Visual Studio Code
ngx-translate version: 7.2.0
Angular version: 4.3.6
Browser: [all ]
The text was updated successfully, but these errors were encountered:
I'm submitting a ... (check one with "x")
Current behavior
I'm using exensively this module for my translations. Currently, I'm downloading the translations using an api call, not an static json file. It works very well and I can add new labels or change translations from a DB dinamically. But now I'm currently seeing that every component that uses the service or pipe, makes a call to the api, without caching the data, even if the language is the same. Currently, there are like 30 calls to the api at least.
Expected/desired behavior
I'm expecting that the factory only makes a call per language and then caches the data until language changes.
Reproduction of the problem
Appoint to an external api for getting non-static translations.
What is the expected behavior?
What is the motivation / use case for changing the behavior?
Performance
Please tell us about your environment:
Windows 10
Visual Studio Code
ngx-translate version: 7.2.0
Angular version: 4.3.6
Browser: [all ]
The text was updated successfully, but these errors were encountered: