[@angular-eslint/template/i18n] Prevent spaces at beginning/end of translated strings #1793
Open
2 tasks done
Labels
package: eslint-plugin-template
Angular Template rules
triage
This issue needs to be looked at and categorized by a maintainer
Description and reproduction of the issue
Sometimes linting rules can break the code into new lines in a way that adds spaces to the string to be translated, for example:
Would end up in the string
" Change password "
being extracted, whereas I'd just want"Change password"
.I tried to use
boundTextAllowedPattern
for this, but I can't get it to work; from what I see in the source code we alsotrim()
the string we test, so maybe that's why I can't get it to work.Do you have suggestions on how to solve this issue?
Versions
@angular-eslint/eslint-plugin-template
17.2.1
@angular-eslint/template-parser
17.2.1
@typescript-eslint/parser
6.21.0
ESLint
8.57.0
node
18.18
ng version
output per the instructions given here.The text was updated successfully, but these errors were encountered: