From 20cbdf5486cbbab9e4bdbc7bbcda1b600158fd27 Mon Sep 17 00:00:00 2001 From: Andreas Loew Date: Mon, 23 Sep 2024 16:32:58 +0200 Subject: [PATCH] https://github.com/ngx-translate/core/pull/1427 --- projects/ngx-translate/src/lib/translate.directive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/ngx-translate/src/lib/translate.directive.ts b/projects/ngx-translate/src/lib/translate.directive.ts index b301deb..6fa4c1a 100644 --- a/projects/ngx-translate/src/lib/translate.directive.ts +++ b/projects/ngx-translate/src/lib/translate.directive.ts @@ -128,7 +128,7 @@ export class TranslateDirective implements AfterViewChecked, OnDestroy { this.lastParams = this.currentParams; const onTranslation = (res: Translation) => { - if (res !== key) { + if (res !== key || !node.lastKey) { node.lastKey = key; } if (!node.originalContent) {