diff --git a/src/i18n/en.ts b/src/i18n/en.ts index 3ccb2b8..0766eb7 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -91,4 +91,7 @@ export default { flushFakeIPData: 'Flush Fake-IP Data', tagClientSourceIPWithName: 'Tag Client Source IP With Name', tag: 'Tag', + coreConfig: 'Core Config', + xdConfig: 'XD Config', + version: 'Version', } diff --git a/src/i18n/zh.ts b/src/i18n/zh.ts index 5e04b2d..74171ad 100644 --- a/src/i18n/zh.ts +++ b/src/i18n/zh.ts @@ -91,4 +91,7 @@ export default { flushFakeIPData: '清空 Fake-IP 数据', tagClientSourceIPWithName: '为客户端源 IP 地址添加名称标记', tag: '标记', + coreConfig: '核心配置', + xdConfig: 'XD 配置', + version: '版本', } diff --git a/src/pages/Config.tsx b/src/pages/Config.tsx index 2762176..fbc7c8e 100644 --- a/src/pages/Config.tsx +++ b/src/pages/Config.tsx @@ -251,7 +251,19 @@ const ConfigForXd = () => { const [t, { locale }] = useI18n() return ( -
+
+
+ +
+
{t('autoSwitchTheme')} @@ -313,18 +325,6 @@ const ConfigForXd = () => { onChange={(e) => setUseTwemoji(e.target.checked)} />
- -
- -
) } @@ -339,7 +339,7 @@ const Versions = () => { }) return ( -
+
{import.meta.env.version} {backendVersion()}
@@ -347,12 +347,24 @@ const Versions = () => { } export default () => { + const [t] = useI18n() + return (
+ {t('dnsQuery')} + + + {t('coreConfig')} + + + {t('xdConfig')} + + {t('version')} +
)