Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

i18n(dashboard): translate the plugin-management UI strings into all locales (#429)

Yudhi Armyndharis6d3fe48ea3b0
diff --git a/dashboard/src/i18n/locales/ar.json b/dashboard/src/i18n/locales/ar.json
index cea8ded07..125e9baaf 100644
--- a/dashboard/src/i18n/locales/ar.json
+++ b/dashboard/src/i18n/locales/ar.json
@@ -629,6 +629,11 @@
"disable": "تعطيل",
"healthCheck": "فحص الصحة",
"configure": "إعداد",
+ "available": "متاحة",
+ "install": "تثبيت إضافة",
+ "uninstall": "إزالة",
+ "uninstallConfirm": "إزالة \"{{name}}\"؟ سيؤدي ذلك إلى حذف ملفاتها.",
+ "engineSwitchHint": "عيّنها كمحرك نشط في الإعدادات، ثم أعد التشغيل",
"empty": {
"title": "لم يتم العثور على إضافات",
"description": "ثبّت إضافات لتوسيع وظائف OpenWA"
@@ -644,6 +649,19 @@
"noOptions": "لا توجد خيارات إعداد لهذه الإضافة",
"save": "حفظ الإعدادات"
},
+ "rail": {
+ "engine": "المحرك النشط",
+ "enabled": "مُمكَّنة",
+ "installed": "مُثبَّتة",
+ "active": "الإضافات النشطة",
+ "none": "لا توجد إضافات مُمكَّنة بعد"
+ },
+ "installModal": {
+ "title": "تثبيت إضافة",
+ "hint": "ارفع إضافة معبّأة بصيغة .zip (تحتوي على manifest.json). تعمل في بيئة معزولة بعد تمكينها.",
+ "choose": "اختر ملف .zip…",
+ "tooLarge": "يتجاوز الملف الحد الأقصى البالغ 5 MB."
+ },
"toasts": {
"errorTitle": "خطأ في الإضافة",
"errorDefault": "فشل تبديل حالة الإضافة",
@@ -652,7 +670,11 @@
"healthError": "خطأ في فحص الصحة",
"savedTitle": "تم حفظ الإعدادات",
"savedDesc": "يلزم إعادة تشغيل الخادم لتطبيق التغييرات.",
- "saveFailed": "فشل الحفظ"
+ "saveFailed": "فشل الحفظ",
+ "installed": "تم تثبيت الإضافة",
+ "installFailed": "فشل التثبيت",
+ "uninstalled": "تمت إزالة الإضافة",
+ "uninstallFailed": "فشلت الإزالة"
}
}
}
diff --git a/dashboard/src/i18n/locales/en.json b/dashboard/src/i18n/locales/en.json
index 6196c2cdb..130cd96e7 100644
--- a/dashboard/src/i18n/locales/en.json
+++ b/dashboard/src/i18n/locales/en.json
@@ -629,6 +629,11 @@
"disable": "Disable",
"healthCheck": "Health Check",
"configure": "Configure",
+ "available": "Available",
+ "install": "Install plugin",
+ "uninstall": "Uninstall",
+ "uninstallConfirm": "Uninstall \"{{name}}\"? This deletes its files.",
+ "engineSwitchHint": "Set as the active engine in Settings, then restart",
"empty": {
"title": "No Plugins Found",
"description": "Install plugins to extend OpenWA functionality"
@@ -644,6 +649,19 @@
"noOptions": "No configuration options available for this plugin",
"save": "Save Configuration"
},
+ "rail": {
+ "engine": "Active engine",
+ "enabled": "enabled",
+ "installed": "installed",
+ "active": "Active plugins",
+ "none": "None enabled yet"
+ },
+ "installModal": {
+ "title": "Install a plugin",
+ "hint": "Upload a plugin packaged as a .zip (with a manifest.json). It runs sandboxed once enabled.",
+ "choose": "Choose a .zip file…",
+ "tooLarge": "The file exceeds the 5 MB limit."
+ },
"toasts": {
"errorTitle": "Plugin Error",
"errorDefault": "Failed to toggle plugin",
@@ -652,7 +670,11 @@
"healthError": "Health Check Error",
"savedTitle": "Configuration Saved",
"savedDesc": "Server restart required to apply changes.",
- "saveFailed": "Save Failed"
+ "saveFailed": "Save Failed",
+ "installed": "Plugin installed",
+ "installFailed": "Install failed",
+ "uninstalled": "Plugin uninstalled",
+ "uninstallFailed": "Uninstall failed"
}
}
}
\ No newline at end of file
diff --git a/dashboard/src/i18n/locales/es.json b/dashboard/src/i18n/locales/es.json
index 8194a12ea..a3e020346 100644
--- a/dashboard/src/i18n/locales/es.json
+++ b/dashboard/src/i18n/locales/es.json
@@ -629,6 +629,11 @@
"disable": "Deshabilitar",
"healthCheck": "Comprobación de salud",
"configure": "Configurar",
+ "available": "Disponible",
+ "install": "Instalar plugin",
+ "uninstall": "Desinstalar",
+ "uninstallConfirm": "¿Desinstalar \"{{name}}\"? Esto elimina sus archivos.",
+ "engineSwitchHint": "Establécelo como el motor activo en Ajustes y luego reinicia",
"empty": {
"title": "No se encontraron plugins",
"description": "Instala plugins para ampliar la funcionalidad de OpenWA"
@@ -644,6 +649,19 @@
"noOptions": "No hay opciones de configuración disponibles para este plugin",
"save": "Guardar configuración"
},
+ "rail": {
+ "engine": "Motor activo",
+ "enabled": "habilitado",
+ "installed": "instalado",
+ "active": "Plugins activos",
+ "none": "Ninguno habilitado todavía"
+ },
+ "installModal": {
+ "title": "Instalar un plugin",
+ "hint": "Sube un plugin empaquetado como un .zip (con un manifest.json). Se ejecuta en modo aislado una vez habilitado.",
+ "choose": "Elige un archivo .zip…",
+ "tooLarge": "El archivo supera el límite de 5 MB."
+ },
"toasts": {
"errorTitle": "Error de plugin",
"errorDefault": "Error al activar/desactivar el plugin",
@@ -652,7 +670,11 @@
"healthError": "Error en la comprobación de salud",
"savedTitle": "Configuración guardada",
"savedDesc": "Es necesario reiniciar el servidor para aplicar los cambios.",
- "saveFailed": "Error al guardar"
+ "saveFailed": "Error al guardar",
+ "installed": "Plugin instalado",
+ "installFailed": "Error en la instalación",
+ "uninstalled": "Plugin desinstalado",
+ "uninstallFailed": "Error al desinstalar"
}
}
}
diff --git a/dashboard/src/i18n/locales/fr.json b/dashboard/src/i18n/locales/fr.json
index 0115d6db2..d361e4bf0 100644
--- a/dashboard/src/i18n/locales/fr.json
+++ b/dashboard/src/i18n/locales/fr.json
@@ -629,6 +629,11 @@
"disable": "Désactiver",
"healthCheck": "Bilan de santé",
"configure": "Configurer",
+ "available": "Disponible",
+ "install": "Installer le plugin",
+ "uninstall": "Désinstaller",
+ "uninstallConfirm": "Désinstaller « {{name}} » ? Cela supprime ses fichiers.",
+ "engineSwitchHint": "Définissez-le comme moteur actif dans les Paramètres, puis redémarrez",
"empty": {
"title": "Aucun plugin trouvé",
"description": "Installez des plugins pour étendre les fonctionnalités d'OpenWA"
@@ -644,6 +649,19 @@
"noOptions": "Aucune option de configuration disponible pour ce plugin",
"save": "Enregistrer la configuration"
},
+ "rail": {
+ "engine": "Moteur actif",
+ "enabled": "activé",
+ "installed": "installé",
+ "active": "Plugins actifs",
+ "none": "Aucun activé pour l'instant"
+ },
+ "installModal": {
+ "title": "Installer un plugin",
+ "hint": "Téléversez un plugin empaqueté au format .zip (avec un manifest.json). Il s'exécute en bac à sable une fois activé.",
+ "choose": "Choisir un fichier .zip…",
+ "tooLarge": "Le fichier dépasse la limite de 5 MB."
+ },
"toasts": {
"errorTitle": "Erreur de plugin",
"errorDefault": "Échec du basculement du plugin",
@@ -652,7 +670,11 @@
"healthError": "Erreur lors du bilan de santé",
"savedTitle": "Configuration enregistrée",
"savedDesc": "Redémarrage du serveur requis pour appliquer les modifications.",
- "saveFailed": "Échec de l'enregistrement"
+ "saveFailed": "Échec de l'enregistrement",
+ "installed": "Plugin installé",
+ "installFailed": "Échec de l'installation",
+ "uninstalled": "Plugin désinstallé",
+ "uninstallFailed": "Échec de la désinstallation"
}
}
}
diff --git a/dashboard/src/i18n/locales/he.json b/dashboard/src/i18n/locales/he.json
index 544c2e5f5..3d28c5104 100644
--- a/dashboard/src/i18n/locales/he.json
+++ b/dashboard/src/i18n/locales/he.json
@@ -629,6 +629,11 @@
"disable": "השבתה",
"healthCheck": "בדיקת תקינות",
"configure": "הגדרה",
+ "available": "זמינים",
+ "install": "התקנת תוסף",
+ "uninstall": "הסרה",
+ "uninstallConfirm": "להסיר את \"{{name}}\"? פעולה זו תמחק את הקבצים שלו.",
+ "engineSwitchHint": "יש להגדיר כמנוע הפעיל בהגדרות ולאחר מכן לאתחל",
"empty": {
"title": "לא נמצאו תוספים",
"description": "ניתן להתקין תוספים כדי להרחיב את היכולות של OpenWA"
@@ -644,6 +649,19 @@
"noOptions": "אין אפשרויות הגדרה זמינות עבור תוסף זה",
"save": "שמירת תצורה"
},
+ "rail": {
+ "engine": "מנוע פעיל",
+ "enabled": "מופעלים",
+ "installed": "מותקנים",
+ "active": "תוספים פעילים",
+ "none": "אף אחד אינו מופעל עדיין"
+ },
+ "installModal": {
+ "title": "התקנת תוסף",
+ "hint": "ניתן להעלות תוסף ארוז כקובץ .zip (הכולל manifest.json). הוא פועל בארגז חול לאחר ההפעלה.",
+ "choose": "בחירת קובץ ‎.zip‎…",
+ "tooLarge": "הקובץ חורג מהמגבלה של ‎5 MB‎."
+ },
"toasts": {
"errorTitle": "שגיאת תוסף",
"errorDefault": "החלפת מצב התוסף נכשלה",
@@ -652,7 +670,11 @@
"healthError": "שגיאה בבדיקת תקינות",
"savedTitle": "התצורה נשמרה",
"savedDesc": "נדרש אתחול שרת כדי להחיל את השינויים.",
- "saveFailed": "השמירה נכשלה"
+ "saveFailed": "השמירה נכשלה",
+ "installed": "התוסף הותקן",
+ "installFailed": "ההתקנה נכשלה",
+ "uninstalled": "התוסף הוסר",
+ "uninstallFailed": "ההסרה נכשלה"
}
}
}
diff --git a/dashboard/src/i18n/locales/it.json b/dashboard/src/i18n/locales/it.json
index 168ea052e..2005cbe15 100644
--- a/dashboard/src/i18n/locales/it.json
+++ b/dashboard/src/i18n/locales/it.json
@@ -629,6 +629,11 @@
"disable": "Disabilita",
"healthCheck": "Controllo dello Stato (Health Check)",
"configure": "Configura",
+ "available": "Disponibili",
+ "install": "Installa plugin",
+ "uninstall": "Disinstalla",
+ "uninstallConfirm": "Disinstallare \"{{name}}\"? Questa operazione ne elimina i file.",
+ "engineSwitchHint": "Imposta come motore attivo nelle Impostazioni, poi riavvia",
"empty": {
"title": "Nessun Plugin Trovato",
"description": "Installa i plugin per estendere le funzionalità di OpenWA"
@@ -644,6 +649,19 @@
"noOptions": "Nessuna opzione di configurazione disponibile per questo plugin",
"save": "Salva Configurazione"
},
+ "rail": {
+ "engine": "Motore attivo",
+ "enabled": "abilitati",
+ "installed": "installati",
+ "active": "Plugin attivi",
+ "none": "Nessuno ancora abilitato"
+ },
+ "installModal": {
+ "title": "Installa un plugin",
+ "hint": "Carica un plugin pacchettizzato come file .zip (con un manifest.json). Viene eseguito in sandbox una volta abilitato.",
+ "choose": "Scegli un file .zip…",
+ "tooLarge": "Il file supera il limite di 5 MB."
+ },
"toasts": {
"errorTitle": "Errore Plugin",
"errorDefault": "Impossibile attivare/disattivare il plugin",
@@ -652,7 +670,11 @@
"healthError": "Errore nel Controllo dello Stato",
"savedTitle": "Configurazione Salvata",
"savedDesc": "È richiesto il riavvio del server per applicare le modifiche.",
- "saveFailed": "Salvataggio non riuscito"
+ "saveFailed": "Salvataggio non riuscito",
+ "installed": "Plugin installato",
+ "installFailed": "Installazione non riuscita",
+ "uninstalled": "Plugin disinstallato",
+ "uninstallFailed": "Disinstallazione non riuscita"
}
}
}
diff --git a/dashboard/src/i18n/locales/te.json b/dashboard/src/i18n/locales/te.json
index 190b47f58..36100967b 100644
--- a/dashboard/src/i18n/locales/te.json
+++ b/dashboard/src/i18n/locales/te.json
@@ -629,6 +629,11 @@
"disable": "నిలిపివేయి",
"healthCheck": "హెల్త్ చెక్",
"configure": "కాన్ఫిగర్ చేయి",
+ "available": "అందుబాటులో ఉంది",
+ "install": "ప్లగిన్‌ను ఇన్‌స్టాల్ చేయి",
+ "uninstall": "అన్‌ఇన్‌స్టాల్ చేయి",
+ "uninstallConfirm": "\"{{name}}\"ను అన్‌ఇన్‌స్టాల్ చేయాలా? ఇది దాని ఫైళ్లను తొలగిస్తుంది.",
+ "engineSwitchHint": "సెట్టింగ్‌లలో దీన్ని యాక్టివ్ ఇంజిన్‌గా సెట్ చేసి, ఆపై రీస్టార్ట్ చేయండి",
"empty": {
"title": "ఎలాంటి ప్లగిన్స్ కనుగొనబడలేదు",
"description": "OpenWA కార్యాచరణను విస్తరించడానికి ప్లగిన్లను ఇన్‌స్టాల్ చేయండి"
@@ -644,6 +649,19 @@
"noOptions": "ఈ ప్లగిన్ కోసం ఎలాంటి కాన్ఫిగరేషన్ ఆప్షన్లు అందుబాటులో లేవు",
"save": "కాన్ఫిగరేషన్‌ను సేవ్ చేయి"
},
+ "rail": {
+ "engine": "యాక్టివ్ ఇంజిన్",
+ "enabled": "ప్రారంభించబడింది",
+ "installed": "ఇన్‌స్టాల్ చేయబడింది",
+ "active": "యాక్టివ్ ప్లగిన్స్",
+ "none": "ఇంకా ఏదీ ప్రారంభించబడలేదు"
+ },
+ "installModal": {
+ "title": "ఒక ప్లగిన్‌ను ఇన్‌స్టాల్ చేయి",
+ "hint": "ఒక .zip గా ప్యాక్ చేయబడిన ప్లగిన్‌ను అప్‌లోడ్ చేయండి (manifest.json తో). ప్రారంభించిన తర్వాత ఇది శాండ్‌బాక్స్‌లో రన్ అవుతుంది.",
+ "choose": "ఒక .zip ఫైల్‌ను ఎంచుకోండి…",
+ "tooLarge": "ఫైల్ 5 MB పరిమితిని మించిపోయింది."
+ },
"toasts": {
"errorTitle": "ప్లగిన్ లోపం",
"errorDefault": "ప్లగిన్ టోగుల్ చేయడం విఫలమైంది",
@@ -652,7 +670,11 @@
"healthError": "హెల్త్ చెక్ లోపం",
"savedTitle": "కాన్ఫిగరేషన్ సేవ్ చేయబడింది",
"savedDesc": "మార్పులను వర్తింపజేయడానికి సర్వర్ రీస్టార్ట్ అవసరం.",
- "saveFailed": "సేవ్ చేయడం విఫలమైంది"
+ "saveFailed": "సేవ్ చేయడం విఫలమైంది",
+ "installed": "ప్లగిన్ ఇన్‌స్టాల్ చేయబడింది",
+ "installFailed": "ఇన్‌స్టాల్ విఫలమైంది",
+ "uninstalled": "ప్లగిన్ అన్‌ఇన్‌స్టాల్ చేయబడింది",
+ "uninstallFailed": "అన్‌ఇన్‌స్టాల్ విఫలమైంది"
}
}
}
diff --git a/dashboard/src/i18n/locales/zh-CN.json b/dashboard/src/i18n/locales/zh-CN.json
index 10602dbb1..8fc1f064f 100644
--- a/dashboard/src/i18n/locales/zh-CN.json
+++ b/dashboard/src/i18n/locales/zh-CN.json
@@ -629,6 +629,11 @@
"disable": "禁用",
"healthCheck": "健康检查",
"configure": "配置",
+ "available": "可用",
+ "install": "安装插件",
+ "uninstall": "卸载",
+ "uninstallConfirm": "卸载“{{name}}”?这将删除其文件。",
+ "engineSwitchHint": "在设置中将其设为活动引擎,然后重启",
"empty": {
"title": "未找到插件",
"description": "安装插件以扩展 OpenWA 功能"
@@ -644,6 +649,19 @@
"noOptions": "此插件没有可用配置项",
"save": "保存配置"
},
+ "rail": {
+ "engine": "活动引擎",
+ "enabled": "已启用",
+ "installed": "已安装",
+ "active": "活跃插件",
+ "none": "尚未启用任何插件"
+ },
+ "installModal": {
+ "title": "安装插件",
+ "hint": "上传打包为 .zip 的插件(包含 manifest.json)。启用后将在沙箱中运行。",
+ "choose": "选择 .zip 文件…",
+ "tooLarge": "文件超过 5 MB 限制。"
+ },
"toasts": {
"errorTitle": "插件错误",
"errorDefault": "切换插件失败",
@@ -652,7 +670,11 @@
"healthError": "健康检查出错",
"savedTitle": "配置已保存",
"savedDesc": "需要重启服务器以应用更改。",
- "saveFailed": "保存失败"
+ "saveFailed": "保存失败",
+ "installed": "插件已安装",
+ "installFailed": "安装失败",
+ "uninstalled": "插件已卸载",
+ "uninstallFailed": "卸载失败"
}
}
}
diff --git a/dashboard/src/i18n/locales/zh-HK.json b/dashboard/src/i18n/locales/zh-HK.json
index 47970a4f5..28dfc79c9 100644
--- a/dashboard/src/i18n/locales/zh-HK.json
+++ b/dashboard/src/i18n/locales/zh-HK.json
@@ -629,6 +629,11 @@
"disable": "停用",
"healthCheck": "健康檢查",
"configure": "設定",
+ "available": "可用",
+ "install": "安裝外掛",
+ "uninstall": "解除安裝",
+ "uninstallConfirm": "解除安裝「{{name}}」?此操作會刪除其檔案。",
+ "engineSwitchHint": "在「設定」中設為使用中的引擎,然後重新啟動",
"empty": {
"title": "找不到外掛",
"description": "安裝外掛以擴展 OpenWA 功能"
@@ -644,6 +649,19 @@
"noOptions": "此外掛沒有可用設定選項",
"save": "儲存設定"
},
+ "rail": {
+ "engine": "使用中的引擎",
+ "enabled": "已啟用",
+ "installed": "已安裝",
+ "active": "活躍外掛",
+ "none": "尚未啟用任何外掛"
+ },
+ "installModal": {
+ "title": "安裝外掛",
+ "hint": "上載打包成 .zip 的外掛(內含 manifest.json)。啟用後會以沙盒方式執行。",
+ "choose": "選擇 .zip 檔案…",
+ "tooLarge": "檔案超出 5 MB 上限。"
+ },
"toasts": {
"errorTitle": "外掛錯誤",
"errorDefault": "切換外掛失敗",
@@ -652,7 +670,11 @@
"healthError": "健康檢查錯誤",
"savedTitle": "設定已儲存",
"savedDesc": "需要重新啟動伺服器以套用變更。",
- "saveFailed": "儲存失敗"
+ "saveFailed": "儲存失敗",
+ "installed": "外掛已安裝",
+ "installFailed": "安裝失敗",
+ "uninstalled": "外掛已解除安裝",
+ "uninstallFailed": "解除安裝失敗"
}
}
}
diff --git a/dashboard/src/pages/Plugins.tsx b/dashboard/src/pages/Plugins.tsx
index 9b1dd940b..ad137875a 100644
--- a/dashboard/src/pages/Plugins.tsx
+++ b/dashboard/src/pages/Plugins.tsx
@@ -191,7 +191,7 @@ export default function Plugins() {
};
const handleUninstall = async (plugin: Plugin) => {
- if (!window.confirm(t('plugins.uninstallConfirm', `Uninstall "${plugin.name}"? This deletes its files.`))) return;
+ if (!window.confirm(t('plugins.uninstallConfirm', { name: plugin.name }))) return;
setActionLoading(plugin.id);
try {
await pluginsApi.uninstall(plugin.id);