diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index d3503bb8..bdef64d9 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -406,6 +406,8 @@ }, "tunnels": { "title": "SSH Tunnels", + "noSshTunnels": "No SSH Tunnels", + "createFirstTunnelMessage": "You haven't created any SSH tunnels yet. Configure tunnel connections in the Host Manager to get started.", "connected": "Connected", "disconnected": "Disconnected", "connecting": "Connecting...", @@ -425,6 +427,8 @@ "attempt": "Attempt {{current}} of {{max}}", "nextRetryIn": "Next retry in {{seconds}} seconds", "checkDockerLogs": "Check your Docker logs for the error reason, join the", + "noTunnelConnections": "No tunnel connections configured", + "tunnelConnections": "Tunnel Connections", "addTunnel": "Add Tunnel", "editTunnel": "Edit Tunnel", "deleteTunnel": "Delete Tunnel", diff --git a/public/locales/zh/translation.json b/public/locales/zh/translation.json index c0e2ccb4..89584731 100644 --- a/public/locales/zh/translation.json +++ b/public/locales/zh/translation.json @@ -443,6 +443,8 @@ }, "tunnels": { "title": "SSH 隧道", + "noSshTunnels": "没有 SSH 隧道", + "createFirstTunnelMessage": "您还没有创建任何 SSH 隧道。在主机管理器中配置隧道连接以开始使用。", "connected": "已连接", "disconnected": "已断开", "connecting": "连接中...", @@ -462,6 +464,8 @@ "attempt": "第 {{current}} 次尝试,共 {{max}} 次", "nextRetryIn": "{{seconds}} 秒后重试", "checkDockerLogs": "查看 Docker 日志以了解错误原因,加入", + "noTunnelConnections": "未配置隧道连接", + "tunnelConnections": "隧道连接", "addTunnel": "添加隧道", "editTunnel": "编辑隧道", "deleteTunnel": "删除隧道", diff --git a/src/ui/Apps/Tunnel/TunnelObject.tsx b/src/ui/Apps/Tunnel/TunnelObject.tsx index 13c5f4d4..52105a53 100644 --- a/src/ui/Apps/Tunnel/TunnelObject.tsx +++ b/src/ui/Apps/Tunnel/TunnelObject.tsx @@ -236,7 +236,7 @@ export function TunnelObject({ className="h-7 px-2 text-green-600 dark:text-green-400 border-green-500/30 dark:border-green-400/30 hover:bg-green-500/10 dark:hover:bg-green-400/10 hover:border-green-500/50 dark:hover:border-green-400/50 text-xs" > - Connect + {t('tunnels.connect')} )} @@ -299,7 +299,7 @@ export function TunnelObject({ ) : (
-

No tunnel connections configured

+

{t('tunnels.noTunnelConnections')}

)} @@ -348,7 +348,7 @@ export function TunnelObject({ {!compact && (

- Tunnel Connections ({host.tunnelConnections.length}) + {t('tunnels.tunnelConnections')} ({host.tunnelConnections.length})

)} {host.tunnelConnections && host.tunnelConnections.length > 0 ? ( @@ -416,7 +416,7 @@ export function TunnelObject({ className="h-7 px-2 text-green-600 dark:text-green-400 border-green-500/30 dark:border-green-400/30 hover:bg-green-500/10 dark:hover:bg-green-400/10 hover:border-green-500/50 dark:hover:border-green-400/50 text-xs" > - Connect + {t('tunnels.connect')} )} @@ -480,7 +480,7 @@ export function TunnelObject({ ) : (
-

No tunnel connections configured

+

{t('tunnels.noTunnelConnections')}

)}