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
If a translation key is only used in pipes or .ts classes of the component (so complex logic is not included in the view directly), the linting treats the key as missing.
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.
@svoboda-rabstvo --deepSearch enabled takes far longer to run compared to the older versions before this flag existed. I see a 3x increase in time in comparison to version 1.14.1.
Unfortunately without the --deepSearch flag enabled, I get the same issue as the original issue poster.
Bug report
Describe the bug
If a translation key is only used in pipes or .ts classes of the component (so complex logic is not included in the view directly), 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:
key1
to the translation file.ngx-translate-lint
Key: 'key1' doesn't exist in project'
Expected behavior
Linting should not treat keys as not-existing if they are used in pipes or other methods of
*.component.ts
files.The text was updated successfully, but these errors were encountered: