angular-gettext
angular-gettext copied to clipboard
String Extraction doesn't work when using '::' single binding notation
When I do this:
<mydirective somelabel="{{::'My Cool Label' | translate}}"></mydirective>
The String Extraction part of gettext doesn't find 'My Cool Label'.
When I remove the '::' single binding 'My Cool Label' is in the bundle correctly.
My question is this, isn't it preferable to use the single binding to eliminate excessive bindings in our code? And shouldn't that be supported by gettext? OR is Angular smart enough to use single binding in this case anyway?
Try adding quotes:
<mydirective somelabel="{{::'My Cool Label' | translate}}"></mydirective>
Sorry, I do have double quotes... It was just my bad in transcribing it to the ticket. I'll edit the original.
Just to be clear, the problem still remains. If you have a small test case, you'll notice that adding single binding will cause the string to not be added to your bundle.