Skip to content

Commit 9fcb4ee

Browse files
Fix unit test & localization check
1 parent c9ddca0 commit 9fcb4ee

File tree

15 files changed

+305
-20
lines changed

15 files changed

+305
-20
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ jest.mock(
110110
{ virtual: true },
111111
)
112112

113+
// Mock DiffViewProvider
114+
jest.mock("../../../integrations/editor/DiffViewProvider", () => ({
115+
DIFF_VIEW_URI_SCHEME: "DIFF_VIEW_URI_SCHEME",
116+
}))
117+
113118
// Initialize mocks
114119
const mockAddCustomInstructions = jest.fn().mockResolvedValue("Combined instructions")
115120
;(jest.requireMock("../../prompts/sections/custom-instructions") as any).addCustomInstructions =

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

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,32 @@
1717
"noDescription": "Sense descripció"
1818
},
1919
"tabs": {
20+
"installed": "Instal·lats i Configuració",
21+
"marketplace": "Mercat",
2022
"tools": "Eines",
2123
"resources": "Recursos"
2224
},
2325
"emptyState": {
2426
"noTools": "No s'han trobat eines",
25-
"noResources": "No s'han trobat recursos"
27+
"noResources": "No s'han trobat recursos",
28+
"noServers": "No hi ha servidors instal·lats",
29+
"browseMarketplace": "Explorar el Mercat"
30+
},
31+
"marketplace": {
32+
"loading": "Carregant el mercat...",
33+
"noServers": "No hi ha servidors disponibles",
34+
"noResults": "No s'han trobat servidors coincidents",
35+
"retry": "Tornar a provar",
36+
"install": "Instal·lar",
37+
"by": "per {{author}}",
38+
"searchPlaceholder": "Cercar servidors...",
39+
"filter": "Filtre:",
40+
"allCategories": "Totes les categories",
41+
"sort": "Ordenar:",
42+
"sortByStars": "Més estrelles",
43+
"sortByDownloadCount": "Més instal·lacions",
44+
"sortByNewest": "Més recents",
45+
"sortByName": "Nom"
2646
},
2747
"networkTimeout": {
2848
"label": "Temps d'espera de xarxa",

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

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,32 @@
1717
"noDescription": "Keine Beschreibung"
1818
},
1919
"tabs": {
20+
"installed": "Installiert & Einstellungen",
21+
"marketplace": "Marketplace",
2022
"tools": "Tools",
2123
"resources": "Ressourcen"
2224
},
2325
"emptyState": {
2426
"noTools": "Keine Tools gefunden",
25-
"noResources": "Keine Ressourcen gefunden"
27+
"noResources": "Keine Ressourcen gefunden",
28+
"noServers": "Keine Server installiert",
29+
"browseMarketplace": "Marketplace durchsuchen"
30+
},
31+
"marketplace": {
32+
"loading": "Lade Marketplace...",
33+
"noServers": "Keine Server verfügbar",
34+
"noResults": "Keine passenden Server gefunden",
35+
"retry": "Wiederholen",
36+
"install": "Installieren",
37+
"by": "von {{author}}",
38+
"searchPlaceholder": "Server suchen...",
39+
"filter": "Filter:",
40+
"allCategories": "Alle Kategorien",
41+
"sort": "Sortieren:",
42+
"sortByStars": "Meiste Sterne",
43+
"sortByDownloadCount": "Meiste Installationen",
44+
"sortByNewest": "Neueste",
45+
"sortByName": "Name"
2646
},
2747
"networkTimeout": {
2848
"label": "Netzwerk-Timeout",

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

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,31 @@
1818
},
1919
"tabs": {
2020
"tools": "Herramientas",
21-
"resources": "Recursos"
21+
"resources": "Recursos",
22+
"installed": "Instalados y Configuración",
23+
"marketplace": "Marketplace"
2224
},
2325
"emptyState": {
2426
"noTools": "No se encontraron herramientas",
25-
"noResources": "No se encontraron recursos"
27+
"noResources": "No se encontraron recursos",
28+
"noServers": "No hay servidores instalados",
29+
"browseMarketplace": "Explorar Marketplace"
30+
},
31+
"marketplace": {
32+
"loading": "Cargando marketplace...",
33+
"noServers": "No hay servidores disponibles",
34+
"noResults": "No se encontraron servidores coincidentes",
35+
"retry": "Reintentar",
36+
"install": "Instalar",
37+
"by": "por {{author}}",
38+
"searchPlaceholder": "Buscar servidores...",
39+
"filter": "Filtrar:",
40+
"allCategories": "Todas las categorías",
41+
"sort": "Ordenar:",
42+
"sortByStars": "Más estrellas",
43+
"sortByDownloadCount": "Más instalaciones",
44+
"sortByNewest": "Más recientes",
45+
"sortByName": "Nombre"
2646
},
2747
"networkTimeout": {
2848
"label": "Tiempo de espera de red",

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

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,32 @@
1717
"noDescription": "Aucune description"
1818
},
1919
"tabs": {
20+
"installed": "Installés & Paramètres",
21+
"marketplace": "Marketplace",
2022
"tools": "Outils",
2123
"resources": "Ressources"
2224
},
2325
"emptyState": {
2426
"noTools": "Aucun outil trouvé",
25-
"noResources": "Aucune ressource trouvée"
27+
"noResources": "Aucune ressource trouvée",
28+
"noServers": "Aucun serveur installé",
29+
"browseMarketplace": "Parcourir la Marketplace"
30+
},
31+
"marketplace": {
32+
"loading": "Chargement de la marketplace...",
33+
"noServers": "Aucun serveur disponible",
34+
"noResults": "Aucun serveur correspondant trouvé",
35+
"retry": "Réessayer",
36+
"install": "Installer",
37+
"by": "par {{author}}",
38+
"searchPlaceholder": "Rechercher des serveurs...",
39+
"filter": "Filtrer :",
40+
"allCategories": "Toutes les catégories",
41+
"sort": "Trier :",
42+
"sortByStars": "Plus d'étoiles",
43+
"sortByDownloadCount": "Plus d'installations",
44+
"sortByNewest": "Plus récents",
45+
"sortByName": "Nom"
2646
},
2747
"networkTimeout": {
2848
"label": "Délai d'attente réseau",

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

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,32 @@
1717
"noDescription": "कोई विवरण नहीं"
1818
},
1919
"tabs": {
20+
"installed": "स्थापित और सेटिंग्स",
21+
"marketplace": "मार्केटप्लेस",
2022
"tools": "उपकरण",
2123
"resources": "संसाधन"
2224
},
2325
"emptyState": {
2426
"noTools": "कोई उपकरण नहीं मिला",
25-
"noResources": "कोई संसाधन नहीं मिला"
27+
"noResources": "कोई संसाधन नहीं मिला",
28+
"noServers": "कोई सर्वर स्थापित नहीं है",
29+
"browseMarketplace": "मार्केटप्लेस ब्राउज़ करें"
30+
},
31+
"marketplace": {
32+
"loading": "मार्केटप्लेस लोड हो रहा है...",
33+
"noServers": "कोई सर्वर उपलब्ध नहीं है",
34+
"noResults": "कोई मिलान करने वाला सर्वर नहीं मिला",
35+
"retry": "पुनः प्रयास करें",
36+
"install": "स्थापित करें",
37+
"by": "{{author}} द्वारा",
38+
"searchPlaceholder": "सर्वर खोजें...",
39+
"filter": "फ़िल्टर:",
40+
"allCategories": "सभी श्रेणियां",
41+
"sort": "क्रमबद्ध करें:",
42+
"sortByStars": "सर्वाधिक स्टार",
43+
"sortByDownloadCount": "सर्वाधिक स्थापना",
44+
"sortByNewest": "नवीनतम",
45+
"sortByName": "नाम"
2646
},
2747
"networkTimeout": {
2848
"label": "नेटवर्क टाइमआउट",

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

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,32 @@
1717
"noDescription": "Nessuna descrizione"
1818
},
1919
"tabs": {
20+
"installed": "Installati & Impostazioni",
21+
"marketplace": "Marketplace",
2022
"tools": "Strumenti",
2123
"resources": "Risorse"
2224
},
2325
"emptyState": {
2426
"noTools": "Nessuno strumento trovato",
25-
"noResources": "Nessuna risorsa trovata"
27+
"noResources": "Nessuna risorsa trovata",
28+
"noServers": "Nessun server installato",
29+
"browseMarketplace": "Sfoglia il Marketplace"
30+
},
31+
"marketplace": {
32+
"loading": "Caricamento marketplace...",
33+
"noServers": "Nessun server disponibile",
34+
"noResults": "Nessun server corrispondente trovato",
35+
"retry": "Riprova",
36+
"install": "Installa",
37+
"by": "di {{author}}",
38+
"searchPlaceholder": "Cerca server...",
39+
"filter": "Filtra:",
40+
"allCategories": "Tutte le categorie",
41+
"sort": "Ordina:",
42+
"sortByStars": "Più stelle",
43+
"sortByDownloadCount": "Più installazioni",
44+
"sortByNewest": "Più recenti",
45+
"sortByName": "Nome"
2646
},
2747
"networkTimeout": {
2848
"label": "Timeout di rete",

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

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,31 @@
1818
},
1919
"tabs": {
2020
"tools": "ツール",
21-
"resources": "リソース"
21+
"resources": "リソース",
22+
"installed": "インストール済み & 設定",
23+
"marketplace": "マーケットプレイス"
2224
},
2325
"emptyState": {
2426
"noTools": "ツールが見つかりません",
25-
"noResources": "リソースが見つかりません"
27+
"noResources": "リソースが見つかりません",
28+
"noServers": "サーバーがインストールされていません",
29+
"browseMarketplace": "マーケットプレイスを閲覧"
30+
},
31+
"marketplace": {
32+
"loading": "マーケットプレイスを読み込み中...",
33+
"noServers": "利用可能なサーバーがありません",
34+
"noResults": "一致するサーバーが見つかりません",
35+
"retry": "再試行",
36+
"install": "インストール",
37+
"by": "作成者:{{author}}",
38+
"searchPlaceholder": "サーバーを検索...",
39+
"filter": "フィルター:",
40+
"allCategories": "すべてのカテゴリー",
41+
"sort": "並び替え:",
42+
"sortByStars": "スター数順",
43+
"sortByDownloadCount": "インストール数順",
44+
"sortByNewest": "新着順",
45+
"sortByName": "名前順"
2646
},
2747
"networkTimeout": {
2848
"label": "ネットワークタイムアウト",

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

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,32 @@
1717
"noDescription": "설명 없음"
1818
},
1919
"tabs": {
20+
"installed": "설치됨 & 설정",
21+
"marketplace": "마켓플레이스",
2022
"tools": "도구",
2123
"resources": "리소스"
2224
},
2325
"emptyState": {
2426
"noTools": "도구를 찾을 수 없음",
25-
"noResources": "리소스를 찾을 수 없음"
27+
"noResources": "리소스를 찾을 수 없음",
28+
"noServers": "설치된 서버 없음",
29+
"browseMarketplace": "마켓플레이스 둘러보기"
30+
},
31+
"marketplace": {
32+
"loading": "마켓플레이스 로딩 중...",
33+
"noServers": "사용 가능한 서버 없음",
34+
"noResults": "일치하는 서버를 찾을 수 없음",
35+
"retry": "재시도",
36+
"install": "설치",
37+
"by": "작성자: {{author}}",
38+
"searchPlaceholder": "서버 검색...",
39+
"filter": "필터:",
40+
"allCategories": "모든 카테고리",
41+
"sort": "정렬:",
42+
"sortByStars": "별점순",
43+
"sortByDownloadCount": "설치 횟수순",
44+
"sortByNewest": "최신순",
45+
"sortByName": "이름순"
2646
},
2747
"networkTimeout": {
2848
"label": "네트워크 타임아웃",

webview-ui/src/i18n/locales/pl/mcp.json

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,31 @@
1818
},
1919
"tabs": {
2020
"tools": "Narzędzia",
21-
"resources": "Zasoby"
21+
"resources": "Zasoby",
22+
"installed": "Zainstalowane & Ustawienia",
23+
"marketplace": "Marketplace"
2224
},
2325
"emptyState": {
2426
"noTools": "Nie znaleziono narzędzi",
25-
"noResources": "Nie znaleziono zasobów"
27+
"noResources": "Nie znaleziono zasobów",
28+
"noServers": "Brak zainstalowanych serwerów",
29+
"browseMarketplace": "Przeglądaj Marketplace"
30+
},
31+
"marketplace": {
32+
"loading": "Ładowanie marketplace...",
33+
"noServers": "Brak dostępnych serwerów",
34+
"noResults": "Nie znaleziono pasujących serwerów",
35+
"retry": "Spróbuj ponownie",
36+
"install": "Instaluj",
37+
"by": "autor: {{author}}",
38+
"searchPlaceholder": "Szukaj serwerów...",
39+
"filter": "Filtruj:",
40+
"allCategories": "Wszystkie kategorie",
41+
"sort": "Sortuj:",
42+
"sortByStars": "Najwięcej gwiazdek",
43+
"sortByDownloadCount": "Najwięcej instalacji",
44+
"sortByNewest": "Najnowsze",
45+
"sortByName": "Nazwa"
2646
},
2747
"networkTimeout": {
2848
"label": "Limit czasu sieci",

0 commit comments

Comments
 (0)