Angular v2: ngx-translate: translate directive: support other format
With Angular v2, the ngx-translate library can be used for translation at runtime. With this library one can use the translate directive.
From the code over at element.ts, I can see that the below format is supported
<div translate [translateParams]="{value: 'world'}">HELLO</div>
Would be possible to also support the below format where the key is the value of the attribute?
<div [translate]="'HELLO'" [translateParams]="{value: 'world'}"></div>
Edited by Frederik Dekegel