Skip to content

Commit 790abcd

Browse files
committed
Add translation
Fix ClineProvider.test.ts
1 parent ced8518 commit 790abcd

File tree

16 files changed

+38
-2
lines changed

16 files changed

+38
-2
lines changed

src/.changeset/itchy-years-agree.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,12 @@
22
"roo-cline": minor
33
---
44

5-
Add ModelHarbor as an API provider
5+
Add ModelHarbor provider support
6+
7+
- Add ModelHarbor API provider integration
8+
- Add model fetching and caching functionality for ModelHarbor
9+
- Add comprehensive test coverage for ModelHarbor provider
10+
- Add ModelHarbor to provider selection in settings UI
11+
- Add missing i18n translations for ModelHarbor across all locales
12+
- Update Content Security Policy to allow ModelHarbor API connections
13+
- Update ClineProvider tests to include ModelHarbor in CSP verification

src/core/webview/__tests__/ClineProvider.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ describe("ClineProvider", () => {
364364

365365
// Verify Content Security Policy contains the necessary PostHog domains
366366
expect(mockWebviewView.webview.html).toContain(
367-
"connect-src https://openrouter.ai https://api.requesty.ai https://us.i.posthog.com https://us-assets.i.posthog.com",
367+
"connect-src https://openrouter.ai https://api.requesty.ai https://api.modelharbor.com https://us.i.posthog.com https://us-assets.i.posthog.com",
368368
)
369369

370370
// Extract the script-src directive section and verify required security elements

webview-ui/src/i18n/locales/ca/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@
182182
"getXaiApiKey": "Obtenir clau API de xAI",
183183
"litellmApiKey": "Clau API de LiteLLM",
184184
"litellmBaseUrl": "URL base de LiteLLM",
185+
"modelharborApiKey": "Clau API de ModelHarbor",
186+
"getModelHarborApiKey": "Obtenir clau API de ModelHarbor",
185187
"awsCredentials": "Credencials d'AWS",
186188
"awsProfile": "Perfil d'AWS",
187189
"awsProfileName": "Nom del perfil d'AWS",

webview-ui/src/i18n/locales/de/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@
182182
"getXaiApiKey": "xAI API-Schlüssel erhalten",
183183
"litellmApiKey": "LiteLLM API-Schlüssel",
184184
"litellmBaseUrl": "LiteLLM Basis-URL",
185+
"modelharborApiKey": "ModelHarbor API-Schlüssel",
186+
"getModelHarborApiKey": "ModelHarbor API-Schlüssel erhalten",
185187
"awsCredentials": "AWS Anmeldedaten",
186188
"awsProfile": "AWS Profil",
187189
"awsProfileName": "AWS Profilname",

webview-ui/src/i18n/locales/es/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@
182182
"getXaiApiKey": "Obtener clave API de xAI",
183183
"litellmApiKey": "Clave API de LiteLLM",
184184
"litellmBaseUrl": "URL base de LiteLLM",
185+
"modelharborApiKey": "Clave API de ModelHarbor",
186+
"getModelHarborApiKey": "Obtener clave API de ModelHarbor",
185187
"awsCredentials": "Credenciales de AWS",
186188
"awsProfile": "Perfil de AWS",
187189
"awsProfileName": "Nombre del perfil de AWS",

webview-ui/src/i18n/locales/fr/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@
182182
"getXaiApiKey": "Obtenir la clé API xAI",
183183
"litellmApiKey": "Clé API LiteLLM",
184184
"litellmBaseUrl": "URL de base LiteLLM",
185+
"modelharborApiKey": "Clé API ModelHarbor",
186+
"getModelHarborApiKey": "Obtenir la clé API ModelHarbor",
185187
"awsCredentials": "Identifiants AWS",
186188
"awsProfile": "Profil AWS",
187189
"awsProfileName": "Nom du profil AWS",

webview-ui/src/i18n/locales/hi/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@
182182
"getXaiApiKey": "xAI API कुंजी प्राप्त करें",
183183
"litellmApiKey": "LiteLLM API कुंजी",
184184
"litellmBaseUrl": "LiteLLM आधार URL",
185+
"modelharborApiKey": "ModelHarbor API कुंजी",
186+
"getModelHarborApiKey": "ModelHarbor API कुंजी प्राप्त करें",
185187
"awsCredentials": "AWS क्रेडेंशियल्स",
186188
"awsProfile": "AWS प्रोफाइल",
187189
"awsProfileName": "AWS प्रोफाइल नाम",

webview-ui/src/i18n/locales/it/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@
182182
"getXaiApiKey": "Ottieni chiave API xAI",
183183
"litellmApiKey": "Chiave API LiteLLM",
184184
"litellmBaseUrl": "URL base LiteLLM",
185+
"modelharborApiKey": "Chiave API ModelHarbor",
186+
"getModelHarborApiKey": "Ottieni chiave API ModelHarbor",
185187
"awsCredentials": "Credenziali AWS",
186188
"awsProfile": "Profilo AWS",
187189
"awsProfileName": "Nome profilo AWS",

webview-ui/src/i18n/locales/ja/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@
182182
"getXaiApiKey": "xAI APIキーを取得",
183183
"litellmApiKey": "LiteLLM APIキー",
184184
"litellmBaseUrl": "LiteLLM ベースURL",
185+
"modelharborApiKey": "ModelHarbor APIキー",
186+
"getModelHarborApiKey": "ModelHarbor APIキーを取得",
185187
"awsCredentials": "AWS認証情報",
186188
"awsProfile": "AWSプロファイル",
187189
"awsProfileName": "AWSプロファイル名",

webview-ui/src/i18n/locales/ko/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@
182182
"getXaiApiKey": "xAI API 키 받기",
183183
"litellmApiKey": "LiteLLM API 키",
184184
"litellmBaseUrl": "LiteLLM 기본 URL",
185+
"modelharborApiKey": "ModelHarbor API 키",
186+
"getModelHarborApiKey": "ModelHarbor API 키 받기",
185187
"awsCredentials": "AWS 자격 증명",
186188
"awsProfile": "AWS 프로필",
187189
"awsProfileName": "AWS 프로필 이름",

0 commit comments

Comments
 (0)