Skip to content
Snippets Groups Projects
Unverified Commit 9987dc1e authored by GyDi's avatar GyDi
Browse files

fix: i18n

parent 3efd575d
No related branches found
No related tags found
No related merge requests found
...@@ -71,7 +71,7 @@ export const MiscViewer = forwardRef<DialogRef>((props, ref) => { ...@@ -71,7 +71,7 @@ export const MiscViewer = forwardRef<DialogRef>((props, ref) => {
> >
<List> <List>
<ListItem sx={{ padding: "5px 2px" }}> <ListItem sx={{ padding: "5px 2px" }}>
<ListItemText primary="App Log Level" /> <ListItemText primary={t("App Log Level")} />
<Select <Select
size="small" size="small"
sx={{ width: 100, "> div": { py: "7.5px" } }} sx={{ width: 100, "> div": { py: "7.5px" } }}
...@@ -92,7 +92,7 @@ export const MiscViewer = forwardRef<DialogRef>((props, ref) => { ...@@ -92,7 +92,7 @@ export const MiscViewer = forwardRef<DialogRef>((props, ref) => {
</ListItem> </ListItem>
<ListItem sx={{ padding: "5px 2px" }}> <ListItem sx={{ padding: "5px 2px" }}>
<ListItemText primary="Auto Close Connections" /> <ListItemText primary={t("Auto Close Connections")} />
<Switch <Switch
edge="end" edge="end"
checked={values.autoCloseConnection} checked={values.autoCloseConnection}
...@@ -103,7 +103,7 @@ export const MiscViewer = forwardRef<DialogRef>((props, ref) => { ...@@ -103,7 +103,7 @@ export const MiscViewer = forwardRef<DialogRef>((props, ref) => {
</ListItem> </ListItem>
<ListItem sx={{ padding: "5px 2px" }}> <ListItem sx={{ padding: "5px 2px" }}>
<ListItemText primary="Clash Fields Filter" /> <ListItemText primary={t("Enable Clash Fields Filter")} />
<Switch <Switch
edge="end" edge="end"
checked={values.enableClashFields} checked={values.enableClashFields}
...@@ -114,7 +114,7 @@ export const MiscViewer = forwardRef<DialogRef>((props, ref) => { ...@@ -114,7 +114,7 @@ export const MiscViewer = forwardRef<DialogRef>((props, ref) => {
</ListItem> </ListItem>
<ListItem sx={{ padding: "5px 2px" }}> <ListItem sx={{ padding: "5px 2px" }}>
<ListItemText primary="Enable Builtin Enhanced" /> <ListItemText primary={t("Enable Builtin Enhanced")} />
<Switch <Switch
edge="end" edge="end"
checked={values.enableBuiltinEnhanced} checked={values.enableBuiltinEnhanced}
...@@ -125,7 +125,7 @@ export const MiscViewer = forwardRef<DialogRef>((props, ref) => { ...@@ -125,7 +125,7 @@ export const MiscViewer = forwardRef<DialogRef>((props, ref) => {
</ListItem> </ListItem>
<ListItem sx={{ padding: "5px 2px" }}> <ListItem sx={{ padding: "5px 2px" }}>
<ListItemText primary="Proxy Layout Column" /> <ListItemText primary={t("Proxy Layout Column")} />
<Select <Select
size="small" size="small"
sx={{ width: 100, "> div": { py: "7.5px" } }} sx={{ width: 100, "> div": { py: "7.5px" } }}
...@@ -149,7 +149,7 @@ export const MiscViewer = forwardRef<DialogRef>((props, ref) => { ...@@ -149,7 +149,7 @@ export const MiscViewer = forwardRef<DialogRef>((props, ref) => {
</ListItem> </ListItem>
<ListItem sx={{ padding: "5px 2px" }}> <ListItem sx={{ padding: "5px 2px" }}>
<ListItemText primary="Default Latency Test" /> <ListItemText primary={t("Default Latency Test")} />
<TextField <TextField
size="small" size="small"
autoComplete="off" autoComplete="off"
......
...@@ -118,5 +118,12 @@ ...@@ -118,5 +118,12 @@
"disable_system_proxy": "Disable System Proxy", "disable_system_proxy": "Disable System Proxy",
"toggle_tun_mode": "Toggle Tun Mode", "toggle_tun_mode": "Toggle Tun Mode",
"enable_tun_mode": "Enable Tun Mode", "enable_tun_mode": "Enable Tun Mode",
"disable_tun_mode": "Disable Tun Mode" "disable_tun_mode": "Disable Tun Mode",
"App Log Level": "App Log Level",
"Auto Close Connections": "Auto Close Connections",
"Enable Clash Fields Filter": "Enable Clash Fields Filter",
"Enable Builtin Enhanced": "Enable Builtin Enhanced",
"Proxy Layout Column": "Proxy Layout Column",
"Default Latency Test": "Default Latency Test"
} }
...@@ -118,5 +118,12 @@ ...@@ -118,5 +118,12 @@
"disable_system_proxy": "关闭系统代理", "disable_system_proxy": "关闭系统代理",
"toggle_tun_mode": "切换Tun模式", "toggle_tun_mode": "切换Tun模式",
"enable_tun_mode": "开启Tun模式", "enable_tun_mode": "开启Tun模式",
"disable_tun_mode": "关闭Tun模式" "disable_tun_mode": "关闭Tun模式",
"App Log Level": "App日志等级",
"Auto Close Connections": "自动关闭连接",
"Enable Clash Fields Filter": "开启Clash字段过滤",
"Enable Builtin Enhanced": "开启内建增强功能",
"Proxy Layout Column": "代理页布局列数",
"Default Latency Test": "默认测试链接"
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment