grunt-angular-translate
grunt-angular-translate copied to clipboard
Incorrect parsing for interpolation in a directive
There is incorrect parsing in the case of interpolating the translation ID inside a directive. The following line is pulled into the language file like so:
File.jade:
span(translate="{{$ctrl.cardData.comparisonString}}") {{$ctrl.cardData.comparisonString}}
en.json:
"{{$ctrl": {
"cardData": {
"comparisonString}}": ""
}
}
Hey @stefan2718 Thanks for this report!! :sob:
I'll add unit test for this use case but not before April (I'm off few days). I also duplicate this issue to the new core project of this grunt task: angular-translate-extract ==> https://github.com/Boulangerie/angular-translate-extract/issues/9