Boulangerie / angular-translate-extract

Manage extraction of angular-translate in your angular projects
MIT License
7 stars 5 forks source link

Incorrect parsing for interpolation in a directive #9

Open firehist opened 8 years ago

firehist commented 8 years ago

Copy from https://github.com/angular-translate/grunt-angular-translate/issues/72. cc @stefan2718

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