Skip to content

Commit 9ad3d7d

Browse files
committed
Add missing translations
1 parent c3d3cc7 commit 9ad3d7d

File tree

16 files changed

+62
-34
lines changed

16 files changed

+62
-34
lines changed

scripts/find-missing-translations.js

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,17 @@ function checkAreaTranslations(area) {
141141
}
142142

143143
// Load file contents
144-
const englishFileContents = englishFiles.map((file) => ({
145-
name: file,
146-
content: JSON.parse(fs.readFileSync(path.join(englishDir, file), "utf8")),
147-
}))
144+
let englishFileContents
145+
146+
try {
147+
englishFileContents = englishFiles.map((file) => ({
148+
name: file,
149+
content: JSON.parse(fs.readFileSync(path.join(englishDir, file), "utf8")),
150+
}))
151+
} catch (e) {
152+
console.error(`Error: File '${englishDir}' is not a valid JSON file`)
153+
process.exit(1)
154+
}
148155

149156
console.log(
150157
`Checking ${englishFileContents.length} translation file(s): ${englishFileContents.map((f) => f.name).join(", ")}`,
@@ -167,7 +174,14 @@ function checkAreaTranslations(area) {
167174
}
168175

169176
// Load the locale file
170-
const localeContent = JSON.parse(fs.readFileSync(localeFilePath, "utf8"))
177+
let localeContent
178+
179+
try {
180+
localeContent = JSON.parse(fs.readFileSync(localeFilePath, "utf8"))
181+
} catch (e) {
182+
console.error(`Error: File '${localeFilePath}' is not a valid JSON file`)
183+
process.exit(1)
184+
}
171185

172186
// Find all keys in the English file
173187
const englishKeys = findKeys(englishContent)

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"save": "Desar",
44
"done": "Fet",
55
"cancel": "Cancel·lar",
6-
"reset": "Restablir"
6+
"reset": "Restablir",
7+
"select": "Seleccionar"
78
},
89
"header": {
910
"title": "Configuració",
@@ -74,7 +75,7 @@
7475
},
7576
"providers": {
7677
"configProfile": "Perfil de configuració",
77-
"description": "Descripció",
78+
"description": "Deseu diferents configuracions d'API per canviar ràpidament entre proveïdors i configuracions.",
7879
"apiProvider": "Proveïdor d'API",
7980
"openRouterApiKey": "Clau API d'OpenRouter",
8081
"nameEmpty": "El nom no pot estar buit",

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"save": "Speichern",
44
"done": "Fertig",
55
"cancel": "Abbrechen",
6-
"reset": "Zurücksetzen"
6+
"reset": "Zurücksetzen",
7+
"select": "Auswählen"
78
},
89
"header": {
910
"title": "Einstellungen",
@@ -74,7 +75,7 @@
7475
},
7576
"providers": {
7677
"configProfile": "Konfigurationsprofil",
77-
"description": "Beschreibung",
78+
"description": "Speichern Sie verschiedene API-Konfigurationen, um schnell zwischen Anbietern und Einstellungen zu wechseln.",
7879
"apiProvider": "API-Anbieter",
7980
"model": "Modell",
8081
"nameEmpty": "Name darf nicht leer sein",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
},
7676
"providers": {
7777
"configProfile": "Configuration Profile",
78-
"description": "Description",
78+
"description": "Save different API configurations to quickly switch between providers and settings.",
7979
"apiProvider": "API Provider",
8080
"model": "Model",
8181
"nameEmpty": "Name cannot be empty",

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"save": "Guardar",
44
"done": "Hecho",
55
"cancel": "Cancelar",
6-
"reset": "Restablecer"
6+
"reset": "Restablecer",
7+
"select": "Seleccionar"
78
},
89
"header": {
910
"title": "Configuración",
@@ -74,7 +75,7 @@
7475
},
7576
"providers": {
7677
"configProfile": "Perfil de configuración",
77-
"description": "Descripción",
78+
"description": "Guarde diferentes configuraciones de API para cambiar rápidamente entre proveedores y ajustes.",
7879
"apiProvider": "Proveedor de API",
7980
"model": "Modelo",
8081
"nameEmpty": "El nombre no puede estar vacío",

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"save": "Enregistrer",
44
"done": "Terminé",
55
"cancel": "Annuler",
6-
"reset": "Réinitialiser"
6+
"reset": "Réinitialiser",
7+
"select": "Sélectionner"
78
},
89
"header": {
910
"title": "Paramètres",
@@ -74,7 +75,7 @@
7475
},
7576
"providers": {
7677
"configProfile": "Profil de configuration",
77-
"description": "Description",
78+
"description": "Enregistrez différentes configurations d'API pour basculer rapidement entre les fournisseurs et les paramètres.",
7879
"apiProvider": "Fournisseur d'API",
7980
"model": "Modèle",
8081
"nameEmpty": "Le nom ne peut pas être vide",

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"save": "सहेजें",
44
"done": "पूर्ण",
55
"cancel": "रद्द करें",
6-
"reset": "रीसेट करें"
6+
"reset": "रीसेट करें",
7+
"select": "चुनें"
78
},
89
"header": {
910
"title": "सेटिंग्स",
@@ -74,7 +75,7 @@
7475
},
7576
"providers": {
7677
"configProfile": "कॉन्फिगरेशन प्रोफाइल",
77-
"description": "विवरण",
78+
"description": "विभिन्न API कॉन्फ़िगरेशन सहेजें ताकि प्रदाताओं और सेटिंग्स के बीच त्वरित रूप से स्विच कर सकें।",
7879
"apiProvider": "API प्रदाता",
7980
"model": "मॉडल",
8081
"nameEmpty": "नाम खाली नहीं हो सकता",

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"save": "Salva",
44
"done": "Fatto",
55
"cancel": "Annulla",
6-
"reset": "Ripristina"
6+
"reset": "Ripristina",
7+
"select": "Seleziona"
78
},
89
"header": {
910
"title": "Impostazioni",
@@ -74,7 +75,7 @@
7475
},
7576
"providers": {
7677
"configProfile": "Profilo di configurazione",
77-
"description": "Descrizione",
78+
"description": "Salva diverse configurazioni API per passare rapidamente tra fornitori e impostazioni.",
7879
"apiProvider": "Fornitore API",
7980
"model": "Modello",
8081
"nameEmpty": "Il nome non può essere vuoto",

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"save": "保存",
44
"done": "完了",
55
"cancel": "キャンセル",
6-
"reset": "リセット"
6+
"reset": "リセット",
7+
"select": "選択"
78
},
89
"header": {
910
"title": "設定",
@@ -74,7 +75,7 @@
7475
},
7576
"providers": {
7677
"configProfile": "設定プロファイル",
77-
"description": "説明",
78+
"description": "異なるAPI設定を保存して、プロバイダーと設定をすばやく切り替えることができます。",
7879
"apiProvider": "APIプロバイダー",
7980
"model": "モデル",
8081
"nameEmpty": "名前を空にすることはできません",

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"save": "저장",
44
"done": "완료",
55
"cancel": "취소",
6-
"reset": "초기화"
6+
"reset": "초기화",
7+
"select": "선택"
78
},
89
"header": {
910
"title": "설정",
@@ -74,7 +75,7 @@
7475
},
7576
"providers": {
7677
"configProfile": "구성 프로필",
77-
"description": "설명",
78+
"description": "다양한 API 구성을 저장하여 제공자와 설정 간에 빠르게 전환할 수 있습니다.",
7879
"apiProvider": "API 제공자",
7980
"model": "모델",
8081
"nameEmpty": "이름은 비워둘 수 없습니다",

0 commit comments

Comments
 (0)