grunt-angular-translate
grunt-angular-translate copied to clipboard
Ignore directives?
Hi!
I'm trying to extract from
<td data-title="{{ 'SEARCH.SAMPLES.ID' | translate }}">{{entity.id}}</td>
If a use a custom regex, I can get what I need (SEARCH.SAMPLES.ID)
The problem is that {{entity.id}} is also extracted. I believe it happens because it matches a directive
<any translate>TRANSLATION</any>
I don't want to modify existing code. Is there any way to ignore directives (or any other pattern) while extracting? I would only like to use my custom regex and a filter ( {{'TRANSLATION' | translate}} ) and ignore anything else.