mgechev / mgechev/codelyzer

i18n (check-text) returning false positives

Open
#628 10 comments 7 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
2.5k
Forks
232
PR merge metrics
No merged PRs in 30d

Description

**Config:**
```JSON
{
"rules": {
"i18n": [
true,
"check-id",
"check-text"
]
}
}
```

```ts
@Component({
template: `

add



visibility{{ passwordType === 'text' ? '_off' : '' }}


`
})
class Test {}
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the reported i18n check-text failures with the supplied Angular template and configuration. Start at the i18n rule's check-text handling, then compare its treatment of mat-icon text and the interpolated password icon expression. Done means these examples no longer produce false-positive reports.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.