Skip to content

Commit

Permalink
fix(TranslateService): compile translations even when pending state i…
Browse files Browse the repository at this point in the history
…s true
  • Loading branch information
njulhb authored and ocombe committed Dec 15, 2017
1 parent f85eed2 commit 520bc12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/translate.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ export class TranslateService {
observer.error(err);
};
this.loadingTranslations.subscribe((res: any) => {
res = this.getParsedResult(res, key, interpolateParams);
res = this.getParsedResult(this.compiler.compileTranslations(res, this.currentLang), key, interpolateParams);
if(typeof res.subscribe === "function") {
res.subscribe(onComplete, onError);
} else {
Expand Down

0 comments on commit 520bc12

Please sign in to comment.