From 9473e1400624365713aa735135c164f6ffb39a38 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 25 Mar 2026 04:11:44 +0000 Subject: [PATCH 1/2] Initial plan From 702326fcdffa4c8f8d49cf50844876daebfd9690 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 25 Mar 2026 04:14:54 +0000 Subject: [PATCH 2/2] docs: fix incomplete code block formatting in multilingual tip section Co-authored-by: jaseel0 <225665919+jaseel0@users.noreply.github.com> Agent-Logs-Url: https://github.com/BeyteFlow/errlens/sessions/cd63b9e5-3502-4a40-abcf-40303b999ee3 --- README.md | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6df921d..f2ea003 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,20 @@

+--- + +## 🎬 Live Demo + +**Automatic Error Monitoring (`errlens run test.js`):** + +![ErrLens Run Demo](assets/errlens-run.gif) + +**Manual Error Analysis (`errlens analyze "..."`):** + +![ErrLens Analyze Demo](assets/errlens-analyze.gif) + +--- + ## 🌟 Key Features - 🚀 **Instant Diagnostics** – No more context-switching to Google or StackOverflow. @@ -55,7 +69,6 @@ npm install -g errlens --- ## ⚡ Quick Start - ```bash # Analyze an error message errlens analyze "TypeError: Cannot read property 'name' of undefined" @@ -65,6 +78,12 @@ errlens run your-script.js # Get JSON output for CI/CD pipelines errlens analyze "is not a function" --json + +# Analyze an error in Hindi +errlens analyze "Cannot read properties of undefined" --lang hi + +# Run a script with output in Spanish +errlens run app.js --lang es ``` --- @@ -157,6 +176,42 @@ This follows Unix conventions where `0` means success and non-zero means failure --- +### 4️⃣ Multilingual Support + +ErrLens supports error explanations in multiple languages using the `--lang` flag. + +**Default behavior:** English (`en`) is used when `--lang` is not specified. +```bash +# Run a file and get explanation in Hindi +errlens run app.js --lang hi + +# Analyze an error string in Spanish +errlens analyze "Cannot read properties of undefined" --lang es + +# Run a file and get explanation in Japanese +errlens run app.js --lang ja +``` + +#### 🌍 Supported Languages + +| Language | Code | +|------------|------| +| English | `en` | +| Hindi | `hi` | +| Spanish | `es` | +| French | `fr` | +| German | `de` | +| Chinese | `zh` | +| Japanese | `ja` | +| Portuguese | `pt` | + +> 💡 **Tip:** Combine with `--json` for multilingual CI/CD pipeline output: +> ```bash +> errlens analyze "is not a function" --lang fr --json +> ``` + +--- + ## 🧠 System Architecture ErrLens operates on a three-stage intelligent pipeline to turn confusion into clarity: