angular-translate / angular-translate/grunt-angular-translate

Ignore directives?

未关闭
#87 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
90
派生
49
PR 合并指标
30 天内没有已合并 PR

描述

Hi!

I'm trying to extract from
```
{{entity.id}}
```

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
```
TRANSLATION
```

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.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。