Skip to content

Commit 6de2d67

Browse files
committed
feat: add i18n support for Claude Code ENOENT error with updated documentation link
- Add notFound error message key to all supported locales (18 languages) - Update installation URL to https://docs.anthropic.com/en/docs/claude-code/setup - Create CLAUDE_CODE_INSTALLATION_URL constant for easy future updates - Refactor createClaudeCodeNotFoundError to use i18n translation system - Maintain backward compatibility while improving user experience
1 parent b2524c5 commit 6de2d67

File tree

19 files changed

+45
-33
lines changed

19 files changed

+45
-33
lines changed

src/i18n/locales/ca/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@
7878
"errorOutput": "Sortida d'error: {{output}}",
7979
"processExitedWithError": "El procés Claude Code ha sortit amb codi {{exitCode}}. Sortida d'error: {{output}}",
8080
"stoppedWithReason": "Claude Code s'ha aturat per la raó: {{reason}}",
81-
"apiKeyModelPlanMismatch": "Les claus API i els plans de subscripció permeten models diferents. Assegura't que el model seleccionat estigui inclòs al teu pla."
81+
"apiKeyModelPlanMismatch": "Les claus API i els plans de subscripció permeten models diferents. Assegura't que el model seleccionat estigui inclòs al teu pla.",
82+
"notFound": "No s'ha trobat l'executable Claude Code '{{claudePath}}'.\n\nInstal·la Claude Code CLI:\n1. Visita {{installationUrl}} per descarregar Claude Code\n2. Segueix les instruccions d'instal·lació per al teu sistema operatiu\n3. Assegura't que la comanda 'claude' estigui disponible al teu PATH\n4. Alternativament, configura una ruta personalitzada a la configuració de Roo sota 'Ruta de Claude Code'\n\nError original: {{originalError}}"
8283
},
8384
"mode_import_failed": "Ha fallat la importació del mode: {{error}}"
8485
},

src/i18n/locales/de/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@
7575
"errorOutput": "Fehlerausgabe: {{output}}",
7676
"processExitedWithError": "Claude Code Prozess wurde mit Code {{exitCode}} beendet. Fehlerausgabe: {{output}}",
7777
"stoppedWithReason": "Claude Code wurde mit Grund gestoppt: {{reason}}",
78-
"apiKeyModelPlanMismatch": "API-Schlüssel und Abonnement-Pläne erlauben verschiedene Modelle. Stelle sicher, dass das ausgewählte Modell in deinem Plan enthalten ist."
78+
"apiKeyModelPlanMismatch": "API-Schlüssel und Abonnement-Pläne erlauben verschiedene Modelle. Stelle sicher, dass das ausgewählte Modell in deinem Plan enthalten ist.",
79+
"notFound": "Claude Code ausführbare Datei '{{claudePath}}' nicht gefunden.\n\nBitte installiere Claude Code CLI:\n1. Besuche {{installationUrl}} um Claude Code herunterzuladen\n2. Folge den Installationsanweisungen für dein Betriebssystem\n3. Stelle sicher, dass der 'claude' Befehl in deinem PATH verfügbar ist\n4. Alternativ konfiguriere einen benutzerdefinierten Pfad in den Roo-Einstellungen unter 'Claude Code Pfad'\n\nUrsprünglicher Fehler: {{originalError}}"
7980
}
8081
},
8182
"warnings": {

src/i18n/locales/en/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@
7575
"errorOutput": "Error output: {{output}}",
7676
"processExitedWithError": "Claude Code process exited with code {{exitCode}}. Error output: {{output}}",
7777
"stoppedWithReason": "Claude Code stopped with reason: {{reason}}",
78-
"apiKeyModelPlanMismatch": "API keys and subscription plans allow different models. Make sure the selected model is included in your plan."
78+
"apiKeyModelPlanMismatch": "API keys and subscription plans allow different models. Make sure the selected model is included in your plan.",
79+
"notFound": "Claude Code executable '{{claudePath}}' not found.\n\nPlease install Claude Code CLI:\n1. Visit {{installationUrl}} to download Claude Code\n2. Follow the installation instructions for your operating system\n3. Ensure the 'claude' command is available in your PATH\n4. Alternatively, configure a custom path in Roo settings under 'Claude Code Path'\n\nOriginal error: {{originalError}}"
7980
}
8081
},
8182
"warnings": {

src/i18n/locales/es/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@
7575
"errorOutput": "Salida de error: {{output}}",
7676
"processExitedWithError": "El proceso de Claude Code terminó con código {{exitCode}}. Salida de error: {{output}}",
7777
"stoppedWithReason": "Claude Code se detuvo por la razón: {{reason}}",
78-
"apiKeyModelPlanMismatch": "Las claves API y los planes de suscripción permiten diferentes modelos. Asegúrate de que el modelo seleccionado esté incluido en tu plan."
78+
"apiKeyModelPlanMismatch": "Las claves API y los planes de suscripción permiten diferentes modelos. Asegúrate de que el modelo seleccionado esté incluido en tu plan.",
79+
"notFound": "Ejecutable de Claude Code '{{claudePath}}' no encontrado.\n\nPor favor instala Claude Code CLI:\n1. Visita {{installationUrl}} para descargar Claude Code\n2. Sigue las instrucciones de instalación para tu sistema operativo\n3. Asegúrate de que el comando 'claude' esté disponible en tu PATH\n4. Alternativamente, configura una ruta personalizada en la configuración de Roo bajo 'Ruta de Claude Code'\n\nError original: {{originalError}}"
7980
}
8081
},
8182
"warnings": {

src/i18n/locales/fr/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@
7575
"errorOutput": "Sortie d'erreur : {{output}}",
7676
"processExitedWithError": "Le processus Claude Code s'est terminé avec le code {{exitCode}}. Sortie d'erreur : {{output}}",
7777
"stoppedWithReason": "Claude Code s'est arrêté pour la raison : {{reason}}",
78-
"apiKeyModelPlanMismatch": "Les clés API et les plans d'abonnement permettent différents modèles. Assurez-vous que le modèle sélectionné est inclus dans votre plan."
78+
"apiKeyModelPlanMismatch": "Les clés API et les plans d'abonnement permettent différents modèles. Assurez-vous que le modèle sélectionné est inclus dans votre plan.",
79+
"notFound": "Exécutable Claude Code '{{claudePath}}' introuvable.\n\nVeuillez installer Claude Code CLI :\n1. Visitez {{installationUrl}} pour télécharger Claude Code\n2. Suivez les instructions d'installation pour votre système d'exploitation\n3. Assurez-vous que la commande 'claude' est disponible dans votre PATH\n4. Alternativement, configurez un chemin personnalisé dans les paramètres Roo sous 'Chemin de Claude Code'\n\nErreur originale : {{originalError}}"
7980
}
8081
},
8182
"warnings": {

src/i18n/locales/hi/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@
7575
"errorOutput": "त्रुटि आउटपुट: {{output}}",
7676
"processExitedWithError": "Claude Code प्रक्रिया कोड {{exitCode}} के साथ समाप्त हुई। त्रुटि आउटपुट: {{output}}",
7777
"stoppedWithReason": "Claude Code इस कारण से रुका: {{reason}}",
78-
"apiKeyModelPlanMismatch": "API कुंजी और सब्सक्रिप्शन प्लान अलग-अलग मॉडल की अनुमति देते हैं। सुनिश्चित करें कि चयनित मॉडल आपकी योजना में शामिल है।"
78+
"apiKeyModelPlanMismatch": "API कुंजी और सब्सक्रिप्शन प्लान अलग-अलग मॉडल की अनुमति देते हैं। सुनिश्चित करें कि चयनित मॉडल आपकी योजना में शामिल है।",
79+
"notFound": "Claude Code निष्पादन योग्य फ़ाइल '{{claudePath}}' नहीं मिली।\n\nकृपया Claude Code CLI इंस्टॉल करें:\n1. Claude Code डाउनलोड करने के लिए {{installationUrl}} पर जाएं\n2. अपने ऑपरेटिंग सिस्टम के लिए इंस्टॉलेशन निर्देशों का पालन करें\n3. सुनिश्चित करें कि 'claude' कमांड आपके PATH में उपलब्ध है\n4. वैकल्पिक रूप से, Roo सेटिंग्स में 'Claude Code Path' के तहत एक कस्टम पथ कॉन्फ़िगर करें\n\nमूल त्रुटि: {{originalError}}"
7980
}
8081
},
8182
"warnings": {

src/i18n/locales/id/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@
7575
"errorOutput": "Output error: {{output}}",
7676
"processExitedWithError": "Proses Claude Code keluar dengan kode {{exitCode}}. Output error: {{output}}",
7777
"stoppedWithReason": "Claude Code berhenti karena alasan: {{reason}}",
78-
"apiKeyModelPlanMismatch": "Kunci API dan paket berlangganan memungkinkan model yang berbeda. Pastikan model yang dipilih termasuk dalam paket Anda."
78+
"apiKeyModelPlanMismatch": "Kunci API dan paket berlangganan memungkinkan model yang berbeda. Pastikan model yang dipilih termasuk dalam paket Anda.",
79+
"notFound": "File executable Claude Code '{{claudePath}}' tidak ditemukan.\n\nSilakan instal Claude Code CLI:\n1. Kunjungi {{installationUrl}} untuk mengunduh Claude Code\n2. Ikuti petunjuk instalasi untuk sistem operasi Anda\n3. Pastikan perintah 'claude' tersedia di PATH Anda\n4. Atau, konfigurasikan jalur kustom di pengaturan Roo di bawah 'Jalur Claude Code'\n\nError asli: {{originalError}}"
7980
}
8081
},
8182
"warnings": {

src/i18n/locales/it/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@
7575
"errorOutput": "Output di errore: {{output}}",
7676
"processExitedWithError": "Il processo Claude Code è terminato con codice {{exitCode}}. Output di errore: {{output}}",
7777
"stoppedWithReason": "Claude Code si è fermato per il motivo: {{reason}}",
78-
"apiKeyModelPlanMismatch": "Le chiavi API e i piani di abbonamento consentono modelli diversi. Assicurati che il modello selezionato sia incluso nel tuo piano."
78+
"apiKeyModelPlanMismatch": "Le chiavi API e i piani di abbonamento consentono modelli diversi. Assicurati che il modello selezionato sia incluso nel tuo piano.",
79+
"notFound": "Eseguibile Claude Code '{{claudePath}}' non trovato.\n\nInstalla Claude Code CLI:\n1. Visita {{installationUrl}} per scaricare Claude Code\n2. Segui le istruzioni di installazione per il tuo sistema operativo\n3. Assicurati che il comando 'claude' sia disponibile nel tuo PATH\n4. In alternativa, configura un percorso personalizzato nelle impostazioni Roo sotto 'Percorso Claude Code'\n\nErrore originale: {{originalError}}"
7980
}
8081
},
8182
"warnings": {

src/i18n/locales/ja/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@
7575
"errorOutput": "エラー出力:{{output}}",
7676
"processExitedWithError": "Claude Code プロセスがコード {{exitCode}} で終了しました。エラー出力:{{output}}",
7777
"stoppedWithReason": "Claude Code が理由により停止しました:{{reason}}",
78-
"apiKeyModelPlanMismatch": "API キーとサブスクリプションプランでは異なるモデルが利用可能です。選択したモデルがプランに含まれていることを確認してください。"
78+
"apiKeyModelPlanMismatch": "API キーとサブスクリプションプランでは異なるモデルが利用可能です。選択したモデルがプランに含まれていることを確認してください。",
79+
"notFound": "Claude Code 実行ファイル '{{claudePath}}' が見つかりません。\n\nClaude Code CLI をインストールしてください:\n1. {{installationUrl}} にアクセスして Claude Code をダウンロード\n2. お使いのオペレーティングシステムのインストール手順に従ってください\n3. 'claude' コマンドが PATH で利用可能であることを確認してください\n4. または、Roo 設定の 'Claude Code パス' でカスタムパスを設定してください\n\n元のエラー:{{originalError}}"
7980
}
8081
},
8182
"warnings": {

src/i18n/locales/ko/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@
7575
"errorOutput": "오류 출력: {{output}}",
7676
"processExitedWithError": "Claude Code 프로세스가 코드 {{exitCode}}로 종료되었습니다. 오류 출력: {{output}}",
7777
"stoppedWithReason": "Claude Code가 다음 이유로 중지되었습니다: {{reason}}",
78-
"apiKeyModelPlanMismatch": "API 키와 구독 플랜에서 다른 모델을 허용합니다. 선택한 모델이 플랜에 포함되어 있는지 확인하세요."
78+
"apiKeyModelPlanMismatch": "API 키와 구독 플랜에서 다른 모델을 허용합니다. 선택한 모델이 플랜에 포함되어 있는지 확인하세요.",
79+
"notFound": "Claude Code 실행 파일 '{{claudePath}}'을 찾을 수 없습니다.\n\nClaude Code CLI를 설치해주세요:\n1. {{installationUrl}}에 방문하여 Claude Code를 다운로드하세요\n2. 운영 체제의 설치 지침을 따르세요\n3. 'claude' 명령이 PATH에서 사용 가능한지 확인하세요\n4. 또는 Roo 설정의 'Claude Code 경로'에서 사용자 정의 경로를 구성하세요\n\n원본 오류: {{originalError}}"
7980
}
8081
},
8182
"warnings": {

0 commit comments

Comments
 (0)