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
Translation keys part that are part of comment in typescript or in html are currently considered as used.
To Reproduce
Steps to reproduce the behavior:
Declare a key in en.json language file and add a reference of this key in comment either in ts or in html :
// this is my comment that refer the key STRING.KEY_COMMENT
or
<!-- STRING.KEY_COMMENT -->
Expected behavior
Translation keys part that are inside a comment section must be considered as not used and must raise an error (or warning).
It is maybe possible to update regexp of findKeysList function (file keys.ts) to detect typescript comment (line beginning with //) but comment detection in html is more tricky because comment may defined on several lines.
The text was updated successfully, but these errors were encountered:
Bug report
Describe the bug
Translation keys part that are part of comment in typescript or in html are currently considered as used.
To Reproduce
Steps to reproduce the behavior:
// this is my comment that refer the key STRING.KEY_COMMENT
or
<!-- STRING.KEY_COMMENT -->
Expected behavior
Translation keys part that are inside a comment section must be considered as not used and must raise an error (or warning).
It is maybe possible to update regexp of findKeysList function (file keys.ts) to detect typescript comment (line beginning with
//
) but comment detection in html is more tricky because comment may defined on several lines.The text was updated successfully, but these errors were encountered: