diff --git a/projects/ngx-translate/core/src/lib/translate.pipe.ts b/projects/ngx-translate/core/src/lib/translate.pipe.ts index b1f4ea3c..199bfa14 100644 --- a/projects/ngx-translate/core/src/lib/translate.pipe.ts +++ b/projects/ngx-translate/core/src/lib/translate.pipe.ts @@ -28,7 +28,7 @@ export class TranslatePipe implements PipeTransform, OnDestroy { }; if (translations) { let res = this.translate.getParsedResult(translations, key, interpolateParams); - if (isObservable(res.subscribe)) { + if (isObservable(res)) { res.subscribe(onTranslation); } else { onTranslation(res);