grunt-angular-translate icon indicating copy to clipboard operation
grunt-angular-translate copied to clipboard

Ignore directives?

Open MarjanaVoronina opened this issue 7 years ago • 0 comments

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.

MarjanaVoronina avatar Apr 19 '17 20:04 MarjanaVoronina