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
The general issue is still the same as described in #115. The problem still appears if the translation for an attribute of the tag is more complex, like nested translations.
Use <mat-icon [matTooltip]="'general.labels.jumpTo' | translate:{value: 'general.goal'|translate}">open_in_new</mat-icon> on the view.
Or even more complex logic like: <mat-icon [matTooltip]="'general.labels.jumpTo'|translate: { 'value': condition ? ('general.goal1'|translate) : ('general.goal2'|translate) }">open_in_new</mat-icon>
Run ngx-translate-lint -p <view_path> -l <keys_file_path>
See error: Key: 'open_in_new' doesn't exist in '<...>.json'
Expected behavior
Linter should ignore string inside <mat-icon>, even if element has complex translation logic for its attributes.
The text was updated successfully, but these errors were encountered:
## [1.20.5](v1.20.4...v1.20.5) (2022-12-03)
### Bug Fixes
* Incorrect behaviour with component mat-icon which includes a complex translation for the value of its attribute/property/directive ([5f97891](5f97891)), closes [#145](#145)
## [1.20.5](v1.20.4...v1.20.5) (2022-12-03)
### Bug Fixes
* Incorrect behaviour with component mat-icon which includes a complex translation for the value of its attribute/property/directive ([5f97891](5f97891)), closes [#145](#145)
Bug report
Describe the bug
The general issue is still the same as described in #115. The problem still appears if the translation for an attribute of the tag is more complex, like nested translations.
[email protected] works fine.
[email protected] shows error that project is missing translation keys.
To Reproduce
Steps to reproduce the behavior:
<mat-icon [matTooltip]="'general.labels.jumpTo' | translate:{value: 'general.goal'|translate}">open_in_new</mat-icon>
on the view.Or even more complex logic like:
<mat-icon [matTooltip]="'general.labels.jumpTo'|translate: { 'value': condition ? ('general.goal1'|translate) : ('general.goal2'|translate) }">open_in_new</mat-icon>
ngx-translate-lint -p <view_path> -l <keys_file_path>
Expected behavior
Linter should ignore string inside
<mat-icon>
, even if element has complex translation logic for its attributes.The text was updated successfully, but these errors were encountered: