diff --git a/memento-note/components/agents/agent-card.tsx b/memento-note/components/agents/agent-card.tsx index 3d75d24..e454ade 100644 --- a/memento-note/components/agents/agent-card.tsx +++ b/memento-note/components/agents/agent-card.tsx @@ -51,11 +51,11 @@ interface AgentCardProps { // --- Config --- -const typeConfig: Record = { - scraper: { icon: Globe, color: 'text-blue-600 dark:text-blue-400', bgColor: 'bg-blue-50 dark:bg-blue-950', label: 'Veilleur' }, - researcher: { icon: Search, color: 'text-violet-600 dark:text-violet-400', bgColor: 'bg-violet-50 dark:bg-violet-950', label: 'Chercheur' }, - monitor: { icon: Eye, color: 'text-amber-600 dark:text-amber-400', bgColor: 'bg-amber-50 dark:bg-amber-950', label: 'Surveillant' }, - custom: { icon: Settings, color: 'text-emerald-600 dark:text-emerald-400', bgColor: 'bg-emerald-50 dark:bg-emerald-950', label: 'Personnalisé' }, +const typeConfig: Record = { + scraper: { icon: Globe, color: 'text-blue-600 dark:text-blue-400', bgColor: 'bg-blue-50 dark:bg-blue-950' }, + researcher: { icon: Search, color: 'text-violet-600 dark:text-violet-400', bgColor: 'bg-violet-50 dark:bg-violet-950' }, + monitor: { icon: Eye, color: 'text-amber-600 dark:text-amber-400', bgColor: 'bg-amber-50 dark:bg-amber-950' }, + custom: { icon: Settings, color: 'text-emerald-600 dark:text-emerald-400', bgColor: 'bg-emerald-50 dark:bg-emerald-950' }, } const frequencyKeys: Record = { @@ -180,7 +180,7 @@ export function AgentCard({ agent, onEdit, onRefresh, onToggle }: AgentCardProps onClick={handleToggle} disabled={isToggling} className="flex-shrink-0 disabled:opacity-50" - title={agent.isEnabled ? 'Désactiver' : 'Activer'} + title={agent.isEnabled ? t('agents.actions.toggleOff') : t('agents.actions.toggleOn')} >
-

Prochaine exéc.

+

{t('agents.status.nextRun')}

{nextRunLabel}

-

Dernier statut

+

{t('agents.status.lastStatus')}

{lastAction ? ( } {lastAction.status === 'failure' && } {lastAction.status === 'running' && } - {lastAction.status === 'success' && 'Réussi'} - {lastAction.status === 'failure' && 'Échec'} - {lastAction.status === 'running' && 'En cours'} - {lastAction.status === 'pending' && 'En attente'} + {lastAction.status === 'success' && t('agents.status.success')} + {lastAction.status === 'failure' && t('agents.status.failure')} + {lastAction.status === 'running' && t('agents.status.running')} + {lastAction.status === 'pending' && t('agents.status.pending')} ) : ( diff --git a/memento-note/locales/ar.json b/memento-note/locales/ar.json index 53b9265..19ea9a2 100644 --- a/memento-note/locales/ar.json +++ b/memento-note/locales/ar.json @@ -1333,7 +1333,9 @@ "success": "نجح", "failure": "فشل", "running": "قيد التشغيل", - "pending": "قيد الانتظار" + "pending": "قيد الانتظار", + "nextRun": "التنفيذ التالي", + "lastStatus": "آخر حالة" }, "actions": { "edit": "تعديل", diff --git a/memento-note/locales/de.json b/memento-note/locales/de.json index 51b6bbf..ccea41f 100644 --- a/memento-note/locales/de.json +++ b/memento-note/locales/de.json @@ -1356,7 +1356,9 @@ "success": "Erfolgreich", "failure": "Fehlgeschlagen", "running": "Läuft", - "pending": "Ausstehend" + "pending": "Ausstehend", + "nextRun": "Nächste Ausf.", + "lastStatus": "Letzter Status" }, "actions": { "edit": "Bearbeiten", diff --git a/memento-note/locales/en.json b/memento-note/locales/en.json index 1d1be54..393a686 100644 --- a/memento-note/locales/en.json +++ b/memento-note/locales/en.json @@ -1381,7 +1381,9 @@ "success": "Succeeded", "failure": "Failed", "running": "Running", - "pending": "Pending" + "pending": "Pending", + "nextRun": "Next run", + "lastStatus": "Last status" }, "actions": { "edit": "Edit", diff --git a/memento-note/locales/es.json b/memento-note/locales/es.json index 5b8fa20..f901c2e 100644 --- a/memento-note/locales/es.json +++ b/memento-note/locales/es.json @@ -1328,7 +1328,9 @@ "success": "Exitoso", "failure": "Fallido", "running": "En ejecución", - "pending": "Pendiente" + "pending": "Pendiente", + "nextRun": "Próx. ejec.", + "lastStatus": "Último estado" }, "actions": { "edit": "Editar", diff --git a/memento-note/locales/fa.json b/memento-note/locales/fa.json index 1c1578e..9eda997 100644 --- a/memento-note/locales/fa.json +++ b/memento-note/locales/fa.json @@ -1387,7 +1387,9 @@ "success": "موفق", "failure": "ناموفق", "running": "در حال اجرا", - "pending": "در انتظار" + "pending": "در انتظار", + "nextRun": "اجرای بعدی", + "lastStatus": "آخرین وضعیت" }, "actions": { "edit": "ویرایش", diff --git a/memento-note/locales/fr.json b/memento-note/locales/fr.json index cdbe338..a57bfdb 100644 --- a/memento-note/locales/fr.json +++ b/memento-note/locales/fr.json @@ -1377,7 +1377,9 @@ "success": "Réussi", "failure": "Échoué", "running": "En cours", - "pending": "En attente" + "pending": "En attente", + "nextRun": "Next run", + "lastStatus": "Last status" }, "actions": { "edit": "Modifier", diff --git a/memento-note/locales/hi.json b/memento-note/locales/hi.json index e39a22b..c8dc5ef 100644 --- a/memento-note/locales/hi.json +++ b/memento-note/locales/hi.json @@ -1333,7 +1333,9 @@ "success": "सफल", "failure": "विफल", "running": "चल रहा है", - "pending": "लंबित" + "pending": "लंबित", + "nextRun": "अगला रन", + "lastStatus": "अंतिम स्थिति" }, "actions": { "edit": "संपादित करें", diff --git a/memento-note/locales/it.json b/memento-note/locales/it.json index f97d01a..fb646bc 100644 --- a/memento-note/locales/it.json +++ b/memento-note/locales/it.json @@ -1378,7 +1378,9 @@ "success": "Riuscito", "failure": "Fallito", "running": "In esecuzione", - "pending": "In sospeso" + "pending": "In sospeso", + "nextRun": "Pross. esec.", + "lastStatus": "Ultimo stato" }, "actions": { "edit": "Modifica", diff --git a/memento-note/locales/ja.json b/memento-note/locales/ja.json index c398f58..2b7c4be 100644 --- a/memento-note/locales/ja.json +++ b/memento-note/locales/ja.json @@ -1356,7 +1356,9 @@ "success": "成功", "failure": "失敗", "running": "実行中", - "pending": "保留中" + "pending": "保留中", + "nextRun": "次回実行", + "lastStatus": "最終ステータス" }, "actions": { "edit": "編集", diff --git a/memento-note/locales/ko.json b/memento-note/locales/ko.json index b1aa145..9a81a7d 100644 --- a/memento-note/locales/ko.json +++ b/memento-note/locales/ko.json @@ -1333,7 +1333,9 @@ "success": "성공", "failure": "실패", "running": "실행 중", - "pending": "대기 중" + "pending": "대기 중", + "nextRun": "다음 실행", + "lastStatus": "마지막 상태" }, "actions": { "edit": "편집", diff --git a/memento-note/locales/nl.json b/memento-note/locales/nl.json index 0c4af3a..240add2 100644 --- a/memento-note/locales/nl.json +++ b/memento-note/locales/nl.json @@ -1378,7 +1378,9 @@ "success": "Geslaagd", "failure": "Mislukt", "running": "Actief", - "pending": "In afwachting" + "pending": "In afwachting", + "nextRun": "Volgende uitv.", + "lastStatus": "Laatste status" }, "actions": { "edit": "Bewerken", diff --git a/memento-note/locales/pl.json b/memento-note/locales/pl.json index 59f4472..58aecbf 100644 --- a/memento-note/locales/pl.json +++ b/memento-note/locales/pl.json @@ -1400,7 +1400,9 @@ "success": "Udane", "failure": "Nieudane", "running": "W trakcie", - "pending": "Oczekujące" + "pending": "Oczekujące", + "nextRun": "Nast. uruch.", + "lastStatus": "Ostatni status" }, "actions": { "edit": "Edytuj", diff --git a/memento-note/locales/pt.json b/memento-note/locales/pt.json index 7da8c86..c957db2 100644 --- a/memento-note/locales/pt.json +++ b/memento-note/locales/pt.json @@ -1328,7 +1328,9 @@ "success": "Bem-sucedido", "failure": "Falhou", "running": "Em execução", - "pending": "Pendente" + "pending": "Pendente", + "nextRun": "Próx. exec.", + "lastStatus": "Último status" }, "actions": { "edit": "Editar", diff --git a/memento-note/locales/ru.json b/memento-note/locales/ru.json index d164ca5..1cb30e6 100644 --- a/memento-note/locales/ru.json +++ b/memento-note/locales/ru.json @@ -1328,7 +1328,9 @@ "success": "Успешно", "failure": "Сбой", "running": "Выполняется", - "pending": "Ожидание" + "pending": "Ожидание", + "nextRun": "След. запуск", + "lastStatus": "Последний статус" }, "actions": { "edit": "Редактировать", diff --git a/memento-note/locales/zh.json b/memento-note/locales/zh.json index cce4855..53eac13 100644 --- a/memento-note/locales/zh.json +++ b/memento-note/locales/zh.json @@ -1356,7 +1356,9 @@ "success": "成功", "failure": "失败", "running": "运行中", - "pending": "等待中" + "pending": "等待中", + "nextRun": "下次运行", + "lastStatus": "最后状态" }, "actions": { "edit": "编辑",