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
- 🚀 **Instant Diagnostics** – No more context-switching to Google or StackOverflow.
@@ -55,7 +69,6 @@ npm install -g errlens
55
69
---
56
70
57
71
## ⚡ Quick Start
58
-
59
72
```bash
60
73
# Analyze an error message
61
74
errlens analyze "TypeError: Cannot read property 'name' of undefined"
@@ -65,6 +78,12 @@ errlens run your-script.js
65
78
66
79
# Get JSON output for CI/CD pipelines
67
80
errlens analyze "is not a function" --json
81
+
82
+
# Analyze an error in Hindi
83
+
errlens analyze "Cannot read properties of undefined" --lang hi
84
+
85
+
# Run a script with output in Spanish
86
+
errlens run app.js --lang es
68
87
```
69
88
70
89
---
@@ -155,6 +174,42 @@ Exit codes (useful for CI):
155
174
156
175
This follows Unix conventions where `0` means success and non-zero means failure. If you prefer success-on-detection in CI, invert the check in your pipeline logic (for example, treat exit code `1` from `analyze <errorString>` as a pass condition).
157
176
177
+
---
178
+
---
179
+
180
+
### 4️⃣ Multilingual Support
181
+
182
+
ErrLens supports error explanations in multiple languages using the `--lang` flag.
183
+
184
+
**Default behavior:** English (`en`) is used when `--lang` is not specified.
185
+
```bash
186
+
# Run a file and get explanation in Hindi
187
+
errlens run app.js --lang hi
188
+
189
+
# Analyze an error string in Spanish
190
+
errlens analyze "Cannot read properties of undefined" --lang es
191
+
192
+
# Run a file and get explanation in Japanese
193
+
errlens run app.js --lang ja
194
+
```
195
+
196
+
#### 🌍 Supported Languages
197
+
198
+
| Language | Code |
199
+
|------------|------|
200
+
| English |`en`|
201
+
| Hindi |`hi`|
202
+
| Spanish |`es`|
203
+
| French |`fr`|
204
+
| German |`de`|
205
+
| Chinese |`zh`|
206
+
| Japanese |`ja`|
207
+
| Portuguese |`pt`|
208
+
209
+
> 💡 **Tip:** Combine with `--json` for multilingual CI/CD pipeline output:
210
+
> ```bash
211
+
> errlens analyze "is not a function" --lang fr --json
0 commit comments