feat: add mode descriptions for Rule, Global, and Direct modes in English and Chinese locales

This commit is contained in:
Tunglies
2025-05-30 23:59:42 +08:00
parent 63d39c24dc
commit 55167e75af
3 changed files with 18 additions and 12 deletions

View File

@@ -70,15 +70,15 @@ export const ClashModeCard = () => {
}, },
"&::after": mode === currentMode "&::after": mode === currentMode
? { ? {
content: '""', content: '""',
position: "absolute", position: "absolute",
bottom: -16, bottom: -16,
left: "50%", left: "50%",
width: 2, width: 2,
height: 16, height: 16,
bgcolor: "primary.main", bgcolor: "primary.main",
transform: "translateX(-50%)", transform: "translateX(-50%)",
} }
: {}, : {},
}); });
@@ -148,7 +148,7 @@ export const ClashModeCard = () => {
component="div" component="div"
sx={descriptionStyles} sx={descriptionStyles}
> >
{t(`${currentMode} Mode Description`)} {t(`${currentMode?.charAt(0).toUpperCase()}${currentMode?.slice(1)} Mode Description`)}
</Typography> </Typography>
</Box> </Box>
</Box> </Box>

View File

@@ -418,8 +418,11 @@
"Open Dir": "Open Dir", "Open Dir": "Open Dir",
"More": "More", "More": "More",
"Rule Mode": "Rule Mode", "Rule Mode": "Rule Mode",
"Rule Mode Description": "Rule Mode: Proxy connections based on rules",
"Global Mode": "Global Mode", "Global Mode": "Global Mode",
"Global Mode Description": "Global Mode: All connections are proxied",
"Direct Mode": "Direct Mode", "Direct Mode": "Direct Mode",
"Direct Mode Description": "Direct Mode: All connections are direct",
"Enable Tray Speed": "Enable Tray Speed", "Enable Tray Speed": "Enable Tray Speed",
"Enable Tray Icon": "Enable Tray Icon", "Enable Tray Icon": "Enable Tray Icon",
"LightWeight Mode": "Lightweight Mode", "LightWeight Mode": "Lightweight Mode",
@@ -567,4 +570,4 @@
"Failed to save settings": "Failed to save settings", "Failed to save settings": "Failed to save settings",
"TCP Concurrency": "TCP Concurrency", "TCP Concurrency": "TCP Concurrency",
"TCP ConcurrencyWhen accessing a web page, DNS resolution generally results in multiple IP addresses.": "TCP ConcurrencyWhen accessing a web page, DNS resolution generally results in multiple IP addresses." "TCP ConcurrencyWhen accessing a web page, DNS resolution generally results in multiple IP addresses.": "TCP ConcurrencyWhen accessing a web page, DNS resolution generally results in multiple IP addresses."
} }

View File

@@ -418,8 +418,11 @@
"Open Dir": "打开目录", "Open Dir": "打开目录",
"More": "更多", "More": "更多",
"Rule Mode": "规则模式", "Rule Mode": "规则模式",
"Rule Mode Description": "选择代理模式,规则模式会根据配置文件中的规则进行代理",
"Global Mode": "全局模式", "Global Mode": "全局模式",
"Global Mode Description": "全局模式会将所有流量通过代理",
"Direct Mode": "直连模式", "Direct Mode": "直连模式",
"Direct Mode Description": "直连模式会直接连接到目标地址,不经过代理",
"Enable Tray Speed": "启用托盘速率", "Enable Tray Speed": "启用托盘速率",
"Enable Tray Icon": "启用托盘图标", "Enable Tray Icon": "启用托盘图标",
"LightWeight Mode": "轻量模式", "LightWeight Mode": "轻量模式",
@@ -567,4 +570,4 @@
"Failed to save settings": "端口设置失败", "Failed to save settings": "端口设置失败",
"TCP Concurrency": "TCP并发", "TCP Concurrency": "TCP并发",
"TCP ConcurrencyWhen accessing a web page, DNS resolution generally results in multiple IP addresses.": "TCP 并发性当访问网页时DNS 解析通常会产生多个 IP 地址。" "TCP ConcurrencyWhen accessing a web page, DNS resolution generally results in multiple IP addresses.": "TCP 并发性当访问网页时DNS 解析通常会产生多个 IP 地址。"
} }