From f756b37f97664d48a10271407afa70eecfb305fb Mon Sep 17 00:00:00 2001 From: wonfen Date: Mon, 28 Jul 2025 09:12:40 +0800 Subject: [PATCH] i18n: add missing trans --- src/components/home/clash-mode-card.tsx | 2 +- src/locales/en.json | 1 + src/locales/zh.json | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/home/clash-mode-card.tsx b/src/components/home/clash-mode-card.tsx index 9ab8632c..35740fd5 100644 --- a/src/components/home/clash-mode-card.tsx +++ b/src/components/home/clash-mode-card.tsx @@ -29,7 +29,7 @@ export const ClashModeCard = () => { `${currentMode[0].toLocaleUpperCase()}${currentMode.slice(1)} Mode Description`, ); } - return t("Mode Description Not Available"); + return t("Core communication error"); }, [currentMode]); // 模式图标映射 diff --git a/src/locales/en.json b/src/locales/en.json index ef392efa..8fc59240 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -216,6 +216,7 @@ "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 that do not follow the system proxy settings", + "Core communication error": "Core communication error", "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 5ccab4af..5a865910 100644 --- a/src/locales/zh.json +++ b/src/locales/zh.json @@ -216,6 +216,7 @@ "TUN Mode Disabled": "TUN 模式已关闭,适用于特殊应用", "TUN Mode Service Required": "TUN模式需要服务模式,请先安装服务", "TUN Mode Intercept Info": "TUN模式可以接管所有应用流量,适用于特殊不遵循系统代理设置的应用", + "Core communication error": "内核通信错误", "Rule Mode Description": "基于预设规则智能判断流量走向,提供灵活的代理策略", "Global Mode Description": "所有流量均通过代理服务器,适用于需要全局科学上网的场景", "Direct Mode Description": "所有流量不经过代理节点,但经过Clash内核转发连接目标服务器,适用于需要通过内核进行分流的特定场景",