grunt-angular-translate icon indicating copy to clipboard operation
grunt-angular-translate copied to clipboard

Incorrect parsing for interpolation in a directive

Open stefan2718 opened this issue 8 years ago • 1 comments

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}}": ""
     }
}

stefan2718 avatar Mar 23 '16 21:03 stefan2718

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

firehist avatar Mar 25 '16 10:03 firehist