You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the main problem is on flag --deepSearch. In previous versions, logic (from ---deepSearch) was included in the main flow. But I created a separate flag, because that logic works slowly (on big projects). Right now this flag is disable by default.
Bug report
Describe the bug
If a translation key is only used in cases, where it depends on a condition if the key is used, the linting treats the key as missing.
[email protected] works fine.
[email protected] shows error that keys don't exist in project.
To Reproduce
Steps to reproduce the behavior:
<div>{{(condition ? 'myKey1' : 'myKey2')|translate}}</div>
myKey1
andmyKey2
to translation file.ngx-translate-lint --keysOnViews disable -l <path-to-languages> -p <path-to-views>
Key: 'myKey1' doesn't exist in project'
andKey: 'myKey2' doesn't exist in project'
Expected behavior
Keys that are used under certain conditions should not count as missing.
The text was updated successfully, but these errors were encountered: