Commit 1426d35
committed
fix(no-unlocalized-strings): recognize t() function call syntax
The t macro can be used both as tagged template (t`Hello`) and as
a function call with object syntax (t({ message, context })). Only
the tagged template was recognized, causing false positives for the
object syntax used to provide translator context.1 parent e6d0edb commit 1426d35
File tree
2 files changed
+7
-2
lines changed- src/rules
2 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
44 | 49 | | |
45 | 50 | | |
46 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
| 67 | + | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
0 commit comments