core icon indicating copy to clipboard operation
core copied to clipboard

Angular 9, ngx-translate/core 12.1.2: translate directive NOT working with dynamic key

Open MightGod opened this issue 4 years ago • 7 comments

Current behavior

Please see stackblitz below! When I use the translate directive, it doesn't translate when the key is changed dynamically. translate pipe works OK with dynamic key as expected.

Expected behavior

It should translate whenever I'm changing the key.

How do you think that we should fix this?

Not sure, but this behavior worked in Angular 8 and ngx-translate 11.0.1.

Minimal reproduction of the problem with instructions

See this Stackblitz: https://stackblitz.com/edit/angular9-translate-directive-bug-dynamic-key

Environment


ngx-translate version: 12.1.2
Angular version: 9

Browser:
Chrome (desktop) Version 81.0.4044.138
 
For Tooling issues:
- Node version: v10.16.0
- Platform:  Windows

MightGod avatar May 14 '20 12:05 MightGod

I'm getting the same faulty behaviour with my project since I updated my dependencies.

angular: from 9.0.4 to 9.1.2
ngx-translate: from 11.0.1 to 12.1.2

geertjansen avatar May 15 '20 08:05 geertjansen

Same here

angular: 9.1.9
ngx-translate: 12.1.2

Karolis92 avatar Jun 04 '20 12:06 Karolis92

After reverting ngx-translate to 11.0.1 everything works as expected. Angular still at 9.1.9

Karolis92 avatar Jun 10 '20 08:06 Karolis92

Same here @Karolis92

Revering ngx-translate to 11.0.1 makes everything work fine with Angular 8.3.28

alshar avatar Sep 23 '20 21:09 alshar

Same issue for me with :

  "@angular/core": "~11.0.2",
  "@ngx-translate/core": "^13.0.0",
  "@ngx-translate/http-loader": "^6.0.0",

rollback to :

  "@angular/core": "~11.0.2",
  "@ngx-translate/core": "^11.0.1",
  "@ngx-translate/http-loader": "^4.0.0",

and everything work :disappointed_relieved:

SympathyForTheDev avatar Nov 27 '20 15:11 SympathyForTheDev

Same issue for me with:

"@angular/core": "^12.0.4",
"@ngx-translate/core": "^13.0.0"

rollback to:

"@angular/core": "^12.0.4",
"@ngx-translate/core": "^11.0.1"

Then directive is working well again... 😕

SuperITMan avatar Jun 19 '21 15:06 SuperITMan

Same issue in angular 12 @angular/core: ^12.1.2, @ngx-translate/core: ^13.0.0

any update for this issue in future?

harleenarora avatar Aug 02 '21 04:08 harleenarora