Update translations in loader of ngx-translate
问题 I am creating a custom Angular ngx-translate Loader which either gets translations from cache or from an API. The point where I am stuck is Case 2 (see code below): Desired procedure: gets translations from cache (sync) returns cached translations (via observer) gets translations from api (async) compares cache and api (finds difference) sends updated version of translations <-- How? This is what I got: getTranslation(lang: string): Observable<any> { return new Observable(observer => { // get