Skip to content

Commit

Permalink
https://github.com/ngx-translate/core/pull/1427
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeAndWeb committed Sep 24, 2024
1 parent ccd17af commit 20cbdf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ngx-translate/src/lib/translate.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 20cbdf5

Please sign in to comment.