diff --git a/ui/src/locales/de.json b/ui/src/locales/de.json index df6d8c68..3ecc5dcd 100644 --- a/ui/src/locales/de.json +++ b/ui/src/locales/de.json @@ -28,6 +28,7 @@ "CheckAllIssues": "Alle Fehler prüfen", "ResourceTopology": "Ressourcen Topologie", "KubernetesEvents": "Kubernetes Ereignisse", + "LogAggregator": "Log-Aggregator", "Name": "Name", "Times": "Mal", "FilterByName": "Nach Name filtern", @@ -119,5 +120,12 @@ "LoginSuccess": "Erfolgreich eingeloggt", "Login": "Einloggen", "LogoutSuccess": "Erfolgreich abgemeldet", - "InputToken": "Geben Sie bitte den Token ein" + "InputToken": "Geben Sie bitte den Token ein", + "ResumeLogs": "Logs fortsetzen", + "PauseLogs": "Logs pausieren", + "ClearLogs": "Logs löschen", + "Connected": "Verbunden", + "Disconnected": "Getrennt", + "FailedToParsePodDetails": "Pod-Details konnten nicht analysiert werden", + "SelectContainer": "Container auswählen" } diff --git a/ui/src/locales/en.json b/ui/src/locales/en.json index 23bb3248..3acbac88 100644 --- a/ui/src/locales/en.json +++ b/ui/src/locales/en.json @@ -28,6 +28,7 @@ "CheckAllIssues": "Check All Issues", "ResourceTopology": "Resource Topology", "KubernetesEvents": "Kubernetes Events", + "LogAggregator": "Log", "Name": "Name", "Times": "Times", "FilterByName": "Filter by Name", @@ -119,5 +120,12 @@ "LoginSuccess": "Login Successful", "Login": "Login", "LogoutSuccess": "Successfully Logged Out", - "InputToken": "Please Enter the Token" + "InputToken": "Please Enter the Token", + "SelectContainer": "Select container", + "ResumeLogs": "Resume logs", + "PauseLogs": "Pause logs", + "ClearLogs": "Clear logs", + "Connected": "Connected", + "Disconnected": "Disconnected", + "FailedToParsePodDetails": "Failed to parse pod details" } diff --git a/ui/src/locales/pt.json b/ui/src/locales/pt.json index 112f8f10..96a4d07f 100644 --- a/ui/src/locales/pt.json +++ b/ui/src/locales/pt.json @@ -28,6 +28,7 @@ "CheckAllIssues": "Verificar Todos os Problemas", "ResourceTopology": "Topologia de Recursos", "KubernetesEvents": "Eventos do Kubernetes", + "LogAggregator": "Agregador de Logs", "Name": "Nome", "Times": "Vezes", "FilterByName": "Filtrado por nome", @@ -119,5 +120,12 @@ "LoginSuccess": "Login bem-sucedido", "Login": "Login", "LogoutSuccess": "Sessão encerrada com sucesso", - "InputToken": "Por favor, insira o token" + "InputToken": "Por favor, insira o token", + "ResumeLogs": "Retomar logs", + "PauseLogs": "Pausar logs", + "ClearLogs": "Limpar logs", + "Connected": "Conectado", + "Disconnected": "Desconectado", + "FailedToParsePodDetails": "Falha ao analisar detalhes do Pod", + "SelectContainer": "Selecionar container" } diff --git a/ui/src/locales/zh.json b/ui/src/locales/zh.json index 662434f7..e1e74939 100644 --- a/ui/src/locales/zh.json +++ b/ui/src/locales/zh.json @@ -28,6 +28,7 @@ "CheckAllIssues": "查看全部风险", "ResourceTopology": "资源拓扑", "KubernetesEvents": "Kubernetes 事件", + "LogAggregator": "日志", "Name": "名称", "Times": "次", "FilterByName": "请输入名称", @@ -119,5 +120,12 @@ "LoginSuccess": "登录成功", "Login": "登录", "LogoutSuccess": "登出成功", - "InputToken": "请输入 token" + "InputToken": "请输入 Token", + "ResumeLogs": "继续日志", + "PauseLogs": "暂停日志", + "ClearLogs": "清除日志", + "Connected": "已连接", + "Disconnected": "已断开", + "FailedToParsePodDetails": "解析 Pod 详情失败", + "SelectContainer": "选择容器" } diff --git a/ui/src/pages/insightDetail/components/podLogs/index.tsx b/ui/src/pages/insightDetail/components/podLogs/index.tsx index 5b23f62f..b6c9ed8d 100644 --- a/ui/src/pages/insightDetail/components/podLogs/index.tsx +++ b/ui/src/pages/insightDetail/components/podLogs/index.tsx @@ -54,7 +54,7 @@ const PodLogs: React.FC = ({ } } catch (error) { console.error('Failed to parse pod details:', error) - setError(t('Failed to parse pod details')) + setError(t('FailedToParsePodDetails')) } } }, [yamlData, container, t]) @@ -127,7 +127,7 @@ const PodLogs: React.FC = ({ value={container} onChange={setContainer} style={{ width: 200 }} - placeholder={t('Select container')} + placeholder={t('SelectContainer')} > {containers.map(c => ( @@ -135,14 +135,14 @@ const PodLogs: React.FC = ({ ))} - +