From 520bc12c4d3b395efc2526cf3fbb5052b8f693f1 Mon Sep 17 00:00:00 2001 From: Haibo Lin Date: Fri, 15 Dec 2017 16:25:51 +0800 Subject: [PATCH] fix(TranslateService): compile translations even when pending state is true --- lib/src/translate.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/translate.service.ts b/lib/src/translate.service.ts index 9fc97425..3d1126c8 100644 --- a/lib/src/translate.service.ts +++ b/lib/src/translate.service.ts @@ -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 {