From 9d13063d533f36e708fcf4fe096d62e699d99981 Mon Sep 17 00:00:00 2001 From: wonfen Date: Fri, 21 Mar 2025 10:29:20 +0800 Subject: [PATCH] chore: add missing i18n --- src/components/home/ip-info-card.tsx | 2 +- src/components/home/proxy-tun-card.tsx | 2 +- src/locales/en.json | 4 +++- src/locales/zh.json | 4 +++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/home/ip-info-card.tsx b/src/components/home/ip-info-card.tsx index dcfd22c1..401f24e7 100644 --- a/src/components/home/ip-info-card.tsx +++ b/src/components/home/ip-info-card.tsx @@ -129,7 +129,7 @@ export const IpInfoCard = () => { } > - + diff --git a/src/components/home/proxy-tun-card.tsx b/src/components/home/proxy-tun-card.tsx index b0ff1b66..208ad962 100644 --- a/src/components/home/proxy-tun-card.tsx +++ b/src/components/home/proxy-tun-card.tsx @@ -187,7 +187,7 @@ export const ProxyTunCard: FC = () => { : enable_tun_mode ? t("TUN Mode Enabled") : t("TUN Mode Disabled"), - tooltip: t("Tun Mode Info") + tooltip: t("TUN Mode Intercept Info") }; } }, [activeTab, enable_system_proxy, enable_tun_mode, isSidecarMode, t]); diff --git a/src/locales/en.json b/src/locales/en.json index b9600272..0d2a908d 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -205,8 +205,10 @@ "Tun Mode Info": "Tun (Virtual NIC) mode: Captures all system traffic, when enabled, there is no need to enable system proxy.", "System Proxy Enabled": "System proxy is enabled, your applications will access the network through the proxy", "System Proxy Disabled": "System proxy is disabled, it is recommended for most users to turn on this option", + "TUN Mode Enabled": "TUN mode is enabled, applications will access the network through the virtual network card", + "TUN Mode Disabled": "TUN mode is disabled, suitable for special applications", "TUN Mode Service Required": "TUN mode requires service mode, please install the service first", - "TUN Mode Intercept Info": "TUN mode can take over all application traffic, suitable for special applications", + "TUN Mode Intercept Info": "TUN mode can take over all application traffic, suitable for special applications that do not follow the system proxy settings", "rule Mode Description": "Routes traffic according to preset rules, provides flexible proxy strategies", "global Mode Description": "All traffic goes through proxy servers, suitable for scenarios requiring global internet access", "direct Mode Description": "All traffic doesn't go through proxy nodes, but is forwarded by Clash kernel to target servers, suitable for specific scenarios requiring kernel traffic distribution", diff --git a/src/locales/zh.json b/src/locales/zh.json index 87f8e6b1..f924c0ad 100644 --- a/src/locales/zh.json +++ b/src/locales/zh.json @@ -205,8 +205,10 @@ "Tun Mode Info": "TUN(虚拟网卡)模式接管系统所有流量,启用时无须打开系统代理", "System Proxy Enabled": "系统代理已启用,您的应用将通过代理访问网络", "System Proxy Disabled": "系统代理已关闭,建议大多数用户打开此选项", + "TUN Mode Enabled": "TUN 模式已启用,应用将通过虚拟网卡访问网络", + "TUN Mode Disabled": "TUN 模式已关闭,适用于特殊应用", "TUN Mode Service Required": "TUN模式需要服务模式,请先安装服务", - "TUN Mode Intercept Info": "TUN模式可以接管所有应用流量,适用于特殊应用", + "TUN Mode Intercept Info": "TUN模式可以接管所有应用流量,适用于特殊不遵循系统代理设置的应用", "rule Mode Description": "基于预设规则智能判断流量走向,提供灵活的代理策略", "global Mode Description": "所有流量均通过代理服务器,适用于需要全局科学上网的场景", "direct Mode Description": "所有流量不经过代理节点,但经过Clash内核转发连接目标服务器,适用于需要通过内核进行分流的特定场景",