-
Notifications
You must be signed in to change notification settings - Fork 154
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
Data-bound shorthand-if with <= breaks extraction #230
Comments
angular-gettext-tools is the right project to file this against, I just Also, thanks for the awesome write up of the bug. On Wednesday, October 14, 2015, rubenswieringa [email protected]
|
Alright, thanks for getting back to me. Feel free to close either one of the issues (no need to maintain two separate discussions). Do let me know if you find anything out about this :) |
(Originally posted in angular-gettext-tools repo, but haven't heard back a month and a half later, so reposting here in hopes it will be seen)
tl;dr: The following breaks string-extraction:
<p translate>{{ n <= 1 ? 'a' : 'b' }}</p>
When I did a quick scan through already-filed issues I couldn't find any similar to this – sorry if I missed it and this is a duplicate.
Steps to reproduction
translate
-attribute, use a smaller-than-or-equal-to operator (<=
) in a data-bounds ({{ }}
) expression.nggettext_extract
grunt-taskExpected:
{{ n <= 1 ? 'a' : 'b' }}
)Actual:
{{ n <= 1 ? 'a' : 'b' }}</p></div></section>
)Tests/code
The following will break on the 4th
<p>
:Result/output
Workaround
Use a greater-than operator (
>
) and swap your ‘if’ and ‘else’ values.The text was updated successfully, but these errors were encountered: