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
**No configuration needed** for DOM APIs, Intl methods, or your own string literal union types. TypeScript already knows!
31
31
32
+
### Smart Lingui Detection
33
+
34
+
The plugin uses TypeScript's symbol resolution to verify that `t`, `Trans`, `msg`, etc. actually come from Lingui packages — not just any function with the same name:
35
+
36
+
```ts
37
+
import { t } from"@lingui/macro"
38
+
const label =t`Save`// ✅ Recognized as Lingui
39
+
40
+
// Your own function with the same name
41
+
const t = (key:string) =>translations[key]
42
+
const label =t("save") // ❌ Not confused with Lingui
43
+
```
44
+
32
45
## Features
33
46
34
47
- 🔍 Detects incorrect usage of Lingui translation macros
0 commit comments