Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect parsing for interpolation in a directive #72

Open
stefan2718 opened this issue Mar 23, 2016 · 1 comment
Open

Incorrect parsing for interpolation in a directive #72

stefan2718 opened this issue Mar 23, 2016 · 1 comment

Comments

@stefan2718
Copy link

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}}": ""
     }
}
@firehist
Copy link
Member

Hey @stefan2718
Thanks for this report!! 😭

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 ==> Boulangerie/angular-translate-extract#9

ymkins added a commit to ymkins/angular-translate-extract that referenced this issue Nov 17, 2017
Handle the case of interpolating the translation ID inside a directive

Issue Boulangerie#9
angular-translate/grunt-angular-translate#72
ymkins added a commit to ymkins/angular-translate-extract that referenced this issue Nov 17, 2017
Handle the case of interpolating the translation ID inside a directive

It fixes:
Boulangerie#9
angular-translate/grunt-angular-translate#72
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants