From 473779190379bbd9019dd4c7fb234dde261b6371 Mon Sep 17 00:00:00 2001 From: Slinetrac Date: Sat, 1 Nov 2025 21:58:12 +0800 Subject: [PATCH] chore(i18n): components.home.* --- src/components/home/proxy-tun-card.tsx | 14 ++++----- src/locales/ar.json | 42 ++++++++++++++++++++++++++ src/locales/de.json | 42 ++++++++++++++++++++++++++ src/locales/en.json | 42 ++++++++++++++++++++++++++ src/locales/es.json | 42 ++++++++++++++++++++++++++ src/locales/fa.json | 42 ++++++++++++++++++++++++++ src/locales/id.json | 42 ++++++++++++++++++++++++++ src/locales/jp.json | 42 ++++++++++++++++++++++++++ src/locales/ko.json | 42 ++++++++++++++++++++++++++ src/locales/ru.json | 42 ++++++++++++++++++++++++++ src/locales/tr.json | 42 ++++++++++++++++++++++++++ src/locales/tt.json | 42 ++++++++++++++++++++++++++ src/locales/zh.json | 42 ++++++++++++++++++++++++++ src/locales/zhtw.json | 42 ++++++++++++++++++++++++++ src/pages/home.tsx | 34 ++++++++++----------- src/{services => types}/types.d.ts | 0 16 files changed, 570 insertions(+), 24 deletions(-) rename src/{services => types}/types.d.ts (100%) diff --git a/src/components/home/proxy-tun-card.tsx b/src/components/home/proxy-tun-card.tsx index 0de617a0..adbf2b87 100644 --- a/src/components/home/proxy-tun-card.tsx +++ b/src/components/home/proxy-tun-card.tsx @@ -160,18 +160,18 @@ export const ProxyTunCard: FC = () => { if (activeTab === "system") { return { text: systemProxyActualState - ? t("System Proxy Enabled") - : t("System Proxy Disabled"), - tooltip: t("System Proxy Info"), + ? t("components.home.proxyTunCard.status.systemProxyEnabled") + : t("components.home.proxyTunCard.status.systemProxyDisabled"), + tooltip: t("components.home.proxyTunCard.tooltips.systemProxy"), }; } else { return { text: !isTunModeAvailable - ? t("TUN Mode Service Required") + ? t("components.home.proxyTunCard.status.tunModeServiceRequired") : enable_tun_mode - ? t("TUN Mode Enabled") - : t("TUN Mode Disabled"), - tooltip: t("TUN Mode Intercept Info"), + ? t("components.home.proxyTunCard.status.tunModeEnabled") + : t("components.home.proxyTunCard.status.tunModeDisabled"), + tooltip: t("components.home.proxyTunCard.tooltips.tunMode"), }; } }, [ diff --git a/src/locales/ar.json b/src/locales/ar.json index d14b7a0c..fee3d69e 100644 --- a/src/locales/ar.json +++ b/src/locales/ar.json @@ -17,6 +17,33 @@ "Enable": "تمكين", "Disable": "تعطيل", "pages": { + "home": { + "title": "Home", + "tooltips": { + "lightweightMode": "وضع الأداء الخفيف", + "manual": "دليل", + "settings": "Home Settings" + }, + "cards": { + "trafficStats": "Traffic Stats", + "networkSettings": "Network Settings", + "proxyMode": "Proxy Mode" + }, + "settings": { + "title": "Home Settings", + "cards": { + "profile": "Profile Card", + "currentProxy": "Current Proxy Card", + "network": "Network Settings Card", + "proxyMode": "Proxy Mode Card", + "traffic": "Traffic Stats Card", + "tests": "Website Tests Card", + "ip": "IP Information Card", + "clashInfo": "Clash Info Cards", + "systemInfo": "System Info Cards" + } + } + }, "proxies": { "title": { "default": "مجموعات الوكلاء", @@ -894,6 +921,21 @@ "chooseFile": "اختر ملف" } }, + "home": { + "proxyTunCard": { + "status": { + "systemProxyEnabled": "System proxy is enabled, your applications will access the network through the proxy", + "systemProxyDisabled": "System proxy is disabled, it is recommended for most users to turn on this option", + "tunModeServiceRequired": "TUN mode requires service mode, please install the service first", + "tunModeEnabled": "TUN mode is enabled, applications will access the network through the virtual network card", + "tunModeDisabled": "TUN mode is disabled, suitable for special applications" + }, + "tooltips": { + "systemProxy": "عند التمكين، سيتم تعديل إعدادات الوكيل في نظام التشغيل. إذا فشل التمكين، فقم بتعديل إعدادات الوكيل في النظام يدويًا.", + "tunMode": "TUN mode can take over all application traffic, suitable for special applications that do not follow the system proxy settings" + } + } + }, "connection": { "fields": { "host": "المضيف", diff --git a/src/locales/de.json b/src/locales/de.json index 9b7a73fa..ebaef6fa 100644 --- a/src/locales/de.json +++ b/src/locales/de.json @@ -17,6 +17,33 @@ "Enable": "Aktivieren", "Disable": "Deaktivieren", "pages": { + "home": { + "title": "Startseite", + "tooltips": { + "lightweightMode": "Leichtgewichtiger Modus", + "manual": "Bedienungsanleitung", + "settings": "Startseite-Einstellungen" + }, + "cards": { + "trafficStats": "Verkehrsstatistik", + "networkSettings": "Netzwerkeinstellungen", + "proxyMode": "Proxy-Modus" + }, + "settings": { + "title": "Startseite-Einstellungen", + "cards": { + "profile": "Abonnement-Karte", + "currentProxy": "Aktueller Proxy-Karte", + "network": "Netzwerkeinstellungen-Karte", + "proxyMode": "Proxy-Modus-Karte", + "traffic": "Verkehrsstatistik-Karte", + "tests": "Website-Tests-Karte", + "ip": "IP-Informationen-Karte", + "clashInfo": "Clash-Informationen-Karten", + "systemInfo": "Systeminformationen-Karten" + } + } + }, "proxies": { "title": { "default": "Proxy-Gruppen", @@ -894,6 +921,21 @@ "chooseFile": "Datei auswählen" } }, + "home": { + "proxyTunCard": { + "status": { + "systemProxyEnabled": "Der Systemproxy ist aktiviert. Ihre Anwendungen werden über den Proxy auf das Netzwerk zugreifen.", + "systemProxyDisabled": "Der Systemproxy ist deaktiviert. Es wird empfohlen, diesen Eintrag für die meisten Benutzer zu aktivieren.", + "tunModeServiceRequired": "Der TUN-Modus erfordert den Service-Modus. Bitte installieren Sie zuerst den Service.", + "tunModeEnabled": "Der TUN-Modus ist aktiviert. Die Anwendungen werden über die virtuelle Netzwerkschnittstelle auf das Netzwerk zugreifen.", + "tunModeDisabled": "Der TUN-Modus ist deaktiviert. Dies ist für spezielle Anwendungen geeignet." + }, + "tooltips": { + "systemProxy": "Ändern Sie die Proxy-Einstellungen des Betriebssystems. Wenn die Aktivierung fehlschlägt, können Sie die Proxy-Einstellungen des Betriebssystems manuell ändern.", + "tunMode": "Der TUN-Modus kann den gesamten Anwendungsverkehr übernehmen und eignet sich für spezielle Anwendungen, die die Systemproxy-Einstellungen nicht befolgen." + } + } + }, "connection": { "fields": { "host": "Host", diff --git a/src/locales/en.json b/src/locales/en.json index 4f3306b5..96069d1e 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -17,6 +17,33 @@ "Enable": "Enable", "Disable": "Disable", "pages": { + "home": { + "title": "Home", + "tooltips": { + "lightweightMode": "Lightweight Mode", + "manual": "Manual", + "settings": "Home Settings" + }, + "cards": { + "trafficStats": "Traffic Stats", + "networkSettings": "Network Settings", + "proxyMode": "Proxy Mode" + }, + "settings": { + "title": "Home Settings", + "cards": { + "profile": "Profile Card", + "currentProxy": "Current Proxy Card", + "network": "Network Settings Card", + "proxyMode": "Proxy Mode Card", + "traffic": "Traffic Stats Card", + "tests": "Website Tests Card", + "ip": "IP Information Card", + "clashInfo": "Clash Info Cards", + "systemInfo": "System Info Cards" + } + } + }, "proxies": { "title": { "default": "Proxy Groups", @@ -894,6 +921,21 @@ "chooseFile": "Choose File" } }, + "home": { + "proxyTunCard": { + "status": { + "systemProxyEnabled": "System Proxy Enabled", + "systemProxyDisabled": "System Proxy Disabled", + "tunModeServiceRequired": "TUN Mode Service Required", + "tunModeEnabled": "TUN Mode Enabled", + "tunModeDisabled": "TUN Mode Disabled" + }, + "tooltips": { + "systemProxy": "System Proxy Info", + "tunMode": "TUN Mode Intercept Info" + } + } + }, "connection": { "fields": { "host": "Host", diff --git a/src/locales/es.json b/src/locales/es.json index 9a68ee36..3728b6d5 100644 --- a/src/locales/es.json +++ b/src/locales/es.json @@ -17,6 +17,33 @@ "Enable": "Habilitar", "Disable": "Deshabilitar", "pages": { + "home": { + "title": "Hogar", + "tooltips": { + "lightweightMode": "Modo ligero", + "manual": "Manual de uso", + "settings": "Configuración de la página de inicio" + }, + "cards": { + "trafficStats": "Estadísticas de tráfico", + "networkSettings": "Configuración de red", + "proxyMode": "Modo de proxy" + }, + "settings": { + "title": "Configuración de la página de inicio", + "cards": { + "profile": "Tarjeta de suscripción", + "currentProxy": "Tarjeta de proxy actual", + "network": "Tarjeta de configuración de red", + "proxyMode": "Tarjeta de modo de proxy", + "traffic": "Tarjeta de estadísticas de tráfico", + "tests": "Tarjeta de pruebas de sitios web", + "ip": "Tarjeta de información de IP", + "clashInfo": "Tarjetas de información de Clash", + "systemInfo": "Tarjetas de información del sistema" + } + } + }, "proxies": { "title": { "default": "Grupos de proxies", @@ -894,6 +921,21 @@ "chooseFile": "Elegir archivo" } }, + "home": { + "proxyTunCard": { + "status": { + "systemProxyEnabled": "El proxy del sistema está habilitado. Sus aplicaciones accederán a Internet a través del proxy.", + "systemProxyDisabled": "El proxy del sistema está deshabilitado. Se recomienda a la mayoría de los usuarios habilitar esta opción.", + "tunModeServiceRequired": "El modo TUN requiere el modo de servicio. Instale el servicio primero.", + "tunModeEnabled": "El modo TUN está habilitado. Las aplicaciones accederán a Internet a través de la interfaz virtual.", + "tunModeDisabled": "El modo TUN está deshabilitado. Este modo es adecuado para aplicaciones especiales." + }, + "tooltips": { + "systemProxy": "Modifica la configuración del proxy del sistema operativo. Si no se puede habilitar, puede modificar manualmente la configuración del proxy del sistema operativo.", + "tunMode": "El modo TUN puede gestionar todo el tráfico de las aplicaciones. Es adecuado para aplicaciones que no siguen la configuración del proxy del sistema." + } + } + }, "connection": { "fields": { "host": "Host", diff --git a/src/locales/fa.json b/src/locales/fa.json index 68a361ce..e409b8a8 100644 --- a/src/locales/fa.json +++ b/src/locales/fa.json @@ -17,6 +17,33 @@ "Enable": "فعال کردن", "Disable": "غیرفعال کردن", "pages": { + "home": { + "title": "Home", + "tooltips": { + "lightweightMode": "در فارسی", + "manual": "راهنما", + "settings": "Home Settings" + }, + "cards": { + "trafficStats": "Traffic Stats", + "networkSettings": "Network Settings", + "proxyMode": "Proxy Mode" + }, + "settings": { + "title": "Home Settings", + "cards": { + "profile": "Profile Card", + "currentProxy": "Current Proxy Card", + "network": "Network Settings Card", + "proxyMode": "Proxy Mode Card", + "traffic": "Traffic Stats Card", + "tests": "Website Tests Card", + "ip": "IP Information Card", + "clashInfo": "Clash Info Cards", + "systemInfo": "System Info Cards" + } + } + }, "proxies": { "title": { "default": "گروه‌های پراکسی", @@ -894,6 +921,21 @@ "chooseFile": "انتخاب فایل" } }, + "home": { + "proxyTunCard": { + "status": { + "systemProxyEnabled": "System proxy is enabled, your applications will access the network through the proxy", + "systemProxyDisabled": "System proxy is disabled, it is recommended for most users to turn on this option", + "tunModeServiceRequired": "TUN mode requires service mode, please install the service first", + "tunModeEnabled": "TUN mode is enabled, applications will access the network through the virtual network card", + "tunModeDisabled": "TUN mode is disabled, suitable for special applications" + }, + "tooltips": { + "systemProxy": "به امکانات تنظیم پروکسی سیستم عامل دسترسی پیدا کنید. اگر فعال‌سازی ناموفق بود، پروکسی سیستم عامل را به‌صورت دستی تغییر دهید", + "tunMode": "TUN mode can take over all application traffic, suitable for special applications that do not follow the system proxy settings" + } + } + }, "connection": { "fields": { "host": "میزبان", diff --git a/src/locales/id.json b/src/locales/id.json index edf9a265..b263db20 100644 --- a/src/locales/id.json +++ b/src/locales/id.json @@ -17,6 +17,33 @@ "Enable": "Aktifkan", "Disable": "Nonaktifkan", "pages": { + "home": { + "title": "Home", + "tooltips": { + "lightweightMode": "Mode Ringan", + "manual": "Manual", + "settings": "Home Settings" + }, + "cards": { + "trafficStats": "Traffic Stats", + "networkSettings": "Network Settings", + "proxyMode": "Proxy Mode" + }, + "settings": { + "title": "Home Settings", + "cards": { + "profile": "Profile Card", + "currentProxy": "Current Proxy Card", + "network": "Network Settings Card", + "proxyMode": "Proxy Mode Card", + "traffic": "Traffic Stats Card", + "tests": "Website Tests Card", + "ip": "IP Information Card", + "clashInfo": "Clash Info Cards", + "systemInfo": "System Info Cards" + } + } + }, "proxies": { "title": { "default": "Grup Proksi", @@ -894,6 +921,21 @@ "chooseFile": "Pilih Berkas" } }, + "home": { + "proxyTunCard": { + "status": { + "systemProxyEnabled": "System proxy is enabled, your applications will access the network through the proxy", + "systemProxyDisabled": "System proxy is disabled, it is recommended for most users to turn on this option", + "tunModeServiceRequired": "TUN mode requires service mode, please install the service first", + "tunModeEnabled": "TUN mode is enabled, applications will access the network through the virtual network card", + "tunModeDisabled": "TUN mode is disabled, suitable for special applications" + }, + "tooltips": { + "systemProxy": "Aktifkan untuk mengubah pengaturan proksi sistem operasi. Jika pengaktifan gagal, ubah pengaturan proksi sistem operasi secara manual", + "tunMode": "TUN mode can take over all application traffic, suitable for special applications that do not follow the system proxy settings" + } + } + }, "connection": { "fields": { "host": "Host", diff --git a/src/locales/jp.json b/src/locales/jp.json index db7e292e..7b76ff52 100644 --- a/src/locales/jp.json +++ b/src/locales/jp.json @@ -17,6 +17,33 @@ "Enable": "有効にする", "Disable": "無効にする", "pages": { + "home": { + "title": "ホーム", + "tooltips": { + "lightweightMode": "軽量モード", + "manual": "マニュアル", + "settings": "ホーム設定" + }, + "cards": { + "trafficStats": "トラフィック統計", + "networkSettings": "ネットワーク設定", + "proxyMode": "プロキシモード" + }, + "settings": { + "title": "ホーム設定", + "cards": { + "profile": "プロファイルカード", + "currentProxy": "現在のプロキシカード", + "network": "ネットワーク設定カード", + "proxyMode": "プロキシモードカード", + "traffic": "トラフィック統計カード", + "tests": "ウェブサイトテストカード", + "ip": "IP情報カード", + "clashInfo": "Clash情報カード", + "systemInfo": "システム情報カード" + } + } + }, "proxies": { "title": { "default": "プロキシグループ", @@ -894,6 +921,21 @@ "chooseFile": "ファイルを選択" } }, + "home": { + "proxyTunCard": { + "status": { + "systemProxyEnabled": "システムプロキシが有効になっています。アプリケーションはプロキシを通じてネットワークにアクセスします。", + "systemProxyDisabled": "システムプロキシが無効になっています。ほとんどのユーザーはこのオプションをオンにすることをお勧めします。", + "tunModeServiceRequired": "TUNモードはサービスモードが必要です。まずサービスをインストールしてください。", + "tunModeEnabled": "TUNモードが有効になっています。アプリケーションは仮想ネットワークカードを通じてネットワークにアクセスします。", + "tunModeDisabled": "TUNモードが無効になっています。特殊なアプリケーションに適しています。" + }, + "tooltips": { + "systemProxy": "オペレーティングシステムのプロキシ設定を変更します。有効にできない場合は、手動でオペレーティングシステムのプロキシ設定を変更してください。", + "tunMode": "TUNモードは全てのアプリケーションのトラフィックを制御できます。システムプロキシ設定に従わない特殊なアプリケーションに適しています。" + } + } + }, "connection": { "fields": { "host": "ホスト", diff --git a/src/locales/ko.json b/src/locales/ko.json index 9a51309f..9a129456 100644 --- a/src/locales/ko.json +++ b/src/locales/ko.json @@ -17,6 +17,33 @@ "Enable": "활성화", "Disable": "비활성화", "pages": { + "home": { + "title": "홈", + "tooltips": { + "lightweightMode": "Lightweight Mode", + "manual": "Manual", + "settings": "Home Settings" + }, + "cards": { + "trafficStats": "Traffic Stats", + "networkSettings": "Network Settings", + "proxyMode": "Proxy Mode" + }, + "settings": { + "title": "Home Settings", + "cards": { + "profile": "Profile Card", + "currentProxy": "Current Proxy Card", + "network": "Network Settings Card", + "proxyMode": "Proxy Mode Card", + "traffic": "Traffic Stats Card", + "tests": "Website Tests Card", + "ip": "IP Information Card", + "clashInfo": "Clash Info Cards", + "systemInfo": "System Info Cards" + } + } + }, "proxies": { "title": { "default": "프록시 그룹", @@ -894,6 +921,21 @@ "chooseFile": "파일 선택" } }, + "home": { + "proxyTunCard": { + "status": { + "systemProxyEnabled": "System proxy is enabled, your applications will access the network through the proxy", + "systemProxyDisabled": "System proxy is disabled, it is recommended for most users to turn on this option", + "tunModeServiceRequired": "TUN mode requires service mode, please install the service first", + "tunModeEnabled": "TUN mode is enabled, applications will access the network through the virtual network card", + "tunModeDisabled": "TUN mode is disabled, suitable for special applications" + }, + "tooltips": { + "systemProxy": "Enable to modify the operating system's proxy settings. If enabling fails, modify the operating system's proxy settings manually", + "tunMode": "TUN mode can take over all application traffic, suitable for special applications that do not follow the system proxy settings" + } + } + }, "connection": { "fields": { "host": "호스트", diff --git a/src/locales/ru.json b/src/locales/ru.json index 716a97f7..abf658c2 100644 --- a/src/locales/ru.json +++ b/src/locales/ru.json @@ -17,6 +17,33 @@ "Enable": "Включить", "Disable": "Отключить", "pages": { + "home": { + "title": "Главная", + "tooltips": { + "lightweightMode": "LightWeight Mode", + "manual": "Документация", + "settings": "Настройки главной страницы" + }, + "cards": { + "trafficStats": "Статистика по трафику", + "networkSettings": "Настройки сети", + "proxyMode": "Режим работы" + }, + "settings": { + "title": "Настройки главной страницы", + "cards": { + "profile": "Карточка профиля", + "currentProxy": "Карточка текущего прокси", + "network": "Карточка настроек сети", + "proxyMode": "Карточка режима работы", + "traffic": "Карточка статистики по трафику", + "tests": "Карточка тестов доступности веб-сайтов", + "ip": "Информация об IP", + "clashInfo": "Информация о Clash", + "systemInfo": "Информация о системе" + } + } + }, "proxies": { "title": { "default": "Группы прокси", @@ -894,6 +921,21 @@ "chooseFile": "Выбрать файл" } }, + "home": { + "proxyTunCard": { + "status": { + "systemProxyEnabled": "Системный прокси включен, ваши приложения будут получать доступ к сети через него", + "systemProxyDisabled": "Системный прокси отключен, большинству пользователей рекомендуется включить эту опцию", + "tunModeServiceRequired": "Режим TUN требует установленную службу Clash Verge", + "tunModeEnabled": "Режим TUN включен, приложения будут получать доступ к сети через виртуальную сетевую карту", + "tunModeDisabled": "Режим TUN отключен" + }, + "tooltips": { + "systemProxy": "Разрешить изменение настроек прокси-сервера операционной системы. Если разрешение не удастся, измените настройки прокси-сервера операционной системы вручную", + "tunMode": "Режим TUN может перехватить трафик всех приложений, подходит для приложений, которые не работают в режиме системного прокси." + } + } + }, "connection": { "fields": { "host": "Хост", diff --git a/src/locales/tr.json b/src/locales/tr.json index 0eed3b58..61ba7283 100644 --- a/src/locales/tr.json +++ b/src/locales/tr.json @@ -17,6 +17,33 @@ "Enable": "Etkinleştir", "Disable": "Devre Dışı Bırak", "pages": { + "home": { + "title": "Ana Sayfa", + "tooltips": { + "lightweightMode": "Hafif Mod", + "manual": "Kılavuz", + "settings": "Ana Sayfa Ayarları" + }, + "cards": { + "trafficStats": "Trafik İstatistikleri", + "networkSettings": "Ağ Ayarları", + "proxyMode": "Vekil Modu" + }, + "settings": { + "title": "Ana Sayfa Ayarları", + "cards": { + "profile": "Profil Kartı", + "currentProxy": "Geçerli Vekil Kartı", + "network": "Ağ Ayarları Kartı", + "proxyMode": "Vekil Modu Kartı", + "traffic": "Trafik İstatistikleri Kartı", + "tests": "Web Sitesi Testleri Kartı", + "ip": "IP Bilgi Kartı", + "clashInfo": "Clash Bilgi Kartları", + "systemInfo": "Sistem Bilgi Kartları" + } + } + }, "proxies": { "title": { "default": "Vekil Grupları", @@ -894,6 +921,21 @@ "chooseFile": "Dosya Seç" } }, + "home": { + "proxyTunCard": { + "status": { + "systemProxyEnabled": "Sistem vekil'i etkinleştirildi, uygulamalarınız vekil üzerinden ağa erişecek", + "systemProxyDisabled": "Sistem vekil'i devre dışı, çoğu kullanıcı için bu seçeneği açmanız önerilir", + "tunModeServiceRequired": "TUN modu hizmet modu gerektirir, lütfen önce hizmeti kurun", + "tunModeEnabled": "TUN modu etkinleştirildi, uygulamalar sanal ağ kartı üzerinden ağa erişecek", + "tunModeDisabled": "TUN modu devre dışı, özel uygulamalar için uygundur" + }, + "tooltips": { + "systemProxy": "İşletim sisteminin vekil ayarlarını değiştirmek için etkinleştirin. Etkinleştirme başarısız olursa, işletim sisteminin proxy ayarlarını manuel olarak değiştirin", + "tunMode": "TUN modu tüm uygulama trafiğini ele alabilir, sistem vekil ayarlarını takip etmeyen özel uygulamalar için uygundur" + } + } + }, "connection": { "fields": { "host": "Ana Bilgisayar", diff --git a/src/locales/tt.json b/src/locales/tt.json index c5a64e59..c3db0e32 100644 --- a/src/locales/tt.json +++ b/src/locales/tt.json @@ -17,6 +17,33 @@ "Enable": "Кушу", "Disable": "Сүндерү", "pages": { + "home": { + "title": "Home", + "tooltips": { + "lightweightMode": "Җиңел Режим", + "manual": "Документация", + "settings": "Home Settings" + }, + "cards": { + "trafficStats": "Traffic Stats", + "networkSettings": "Network Settings", + "proxyMode": "Proxy Mode" + }, + "settings": { + "title": "Home Settings", + "cards": { + "profile": "Profile Card", + "currentProxy": "Current Proxy Card", + "network": "Network Settings Card", + "proxyMode": "Proxy Mode Card", + "traffic": "Traffic Stats Card", + "tests": "Website Tests Card", + "ip": "IP Information Card", + "clashInfo": "Clash Info Cards", + "systemInfo": "System Info Cards" + } + } + }, "proxies": { "title": { "default": "Прокси төркемнәре", @@ -894,6 +921,21 @@ "chooseFile": "Файл сайлау" } }, + "home": { + "proxyTunCard": { + "status": { + "systemProxyEnabled": "System proxy is enabled, your applications will access the network through the proxy", + "systemProxyDisabled": "System proxy is disabled, it is recommended for most users to turn on this option", + "tunModeServiceRequired": "TUN mode requires service mode, please install the service first", + "tunModeEnabled": "TUN mode is enabled, applications will access the network through the virtual network card", + "tunModeDisabled": "TUN mode is disabled, suitable for special applications" + }, + "tooltips": { + "systemProxy": "Системалы прокси көйләүләрен үзгәртү рөхсәтен бирегез. Әгәр рөхсәт алу мөмкин түгел икән, прокси көйләүләрен кулдан үзгәртегез", + "tunMode": "TUN mode can take over all application traffic, suitable for special applications that do not follow the system proxy settings" + } + } + }, "connection": { "fields": { "host": "Хост", diff --git a/src/locales/zh.json b/src/locales/zh.json index 60e6098b..d7de4fed 100644 --- a/src/locales/zh.json +++ b/src/locales/zh.json @@ -17,6 +17,33 @@ "Enable": "启用", "Disable": "禁用", "pages": { + "home": { + "title": "首页", + "tooltips": { + "lightweightMode": "轻量模式", + "manual": "使用手册", + "settings": "首页设置" + }, + "cards": { + "trafficStats": "流量统计", + "networkSettings": "网络设置", + "proxyMode": "代理模式" + }, + "settings": { + "title": "首页设置", + "cards": { + "profile": "订阅卡", + "currentProxy": "当前代理卡", + "network": "网络设置卡", + "proxyMode": "代理模式卡", + "traffic": "流量统计卡", + "tests": "网站测试卡", + "ip": "IP 信息卡", + "clashInfo": "Clash 信息卡", + "systemInfo": "系统信息卡" + } + } + }, "proxies": { "title": { "default": "代理组", @@ -894,6 +921,21 @@ "chooseFile": "选择文件" } }, + "home": { + "proxyTunCard": { + "status": { + "systemProxyEnabled": "系统代理已启用,您的应用将通过代理访问网络", + "systemProxyDisabled": "系统代理已关闭,建议大多数用户打开此选项", + "tunModeServiceRequired": "TUN模式需要服务模式,请先安装服务", + "tunModeEnabled": "TUN 模式已启用,应用将通过虚拟网卡访问网络", + "tunModeDisabled": "TUN 模式已关闭,适用于特殊应用" + }, + "tooltips": { + "systemProxy": "修改操作系统的代理设置,如果开启失败,可手动修改操作系统的代理设置", + "tunMode": "TUN模式可以接管所有应用流量,适用于特殊不遵循系统代理设置的应用" + } + } + }, "connection": { "fields": { "host": "主机", diff --git a/src/locales/zhtw.json b/src/locales/zhtw.json index cf2545e4..06dfa7e9 100644 --- a/src/locales/zhtw.json +++ b/src/locales/zhtw.json @@ -17,6 +17,33 @@ "Enable": "啟用", "Disable": "停用", "pages": { + "home": { + "title": "首頁", + "tooltips": { + "lightweightMode": "輕量模式", + "manual": "使用手冊", + "settings": "首頁設定" + }, + "cards": { + "trafficStats": "流量統計", + "networkSettings": "網路設定", + "proxyMode": "代理模式" + }, + "settings": { + "title": "首頁設定", + "cards": { + "profile": "訂閱卡", + "currentProxy": "目前代理卡", + "network": "網路設定卡", + "proxyMode": "代理模式卡", + "traffic": "流量統計卡", + "tests": "網站測試卡", + "ip": "IP資訊卡", + "clashInfo": "Clash 資訊卡", + "systemInfo": "系統資訊卡" + } + } + }, "proxies": { "title": { "default": "代理組", @@ -894,6 +921,21 @@ "chooseFile": "選擇檔案" } }, + "home": { + "proxyTunCard": { + "status": { + "systemProxyEnabled": "系統代理已啟用,您的應用程式將透過代理存取網路", + "systemProxyDisabled": "系統代理已關閉,建議大多數使用者開啟此選項", + "tunModeServiceRequired": "虛擬網路介面卡模式需要服務模式,請先安裝服務", + "tunModeEnabled": "虛擬網路介面卡模式已啟用,應用程式將透過虛擬網路介面卡存取網路", + "tunModeDisabled": "虛擬網路介面卡模式已關閉,適用於特殊應用程式" + }, + "tooltips": { + "systemProxy": "修改作業系統的代理設定,如果開啟失敗,可手動修改作業系統的代理設定", + "tunMode": "虛擬網路介面卡模式可以接管所有應用程式流量,適用於不遵循系統代理設定的特殊應用程式" + } + } + }, "connection": { "fields": { "host": "主機", diff --git a/src/pages/home.tsx b/src/pages/home.tsx index b869787e..eb81c873 100644 --- a/src/pages/home.tsx +++ b/src/pages/home.tsx @@ -112,7 +112,7 @@ const HomeSettingsDialog = ({ return ( - {t("Home Settings")} + {t("pages.home.settings.title")} handleToggle("profile")} /> } - label={t("Profile Card")} + label={t("pages.home.settings.cards.profile")} /> handleToggle("proxy")} /> } - label={t("Current Proxy Card")} + label={t("pages.home.settings.cards.currentProxy")} /> handleToggle("network")} /> } - label={t("Network Settings Card")} + label={t("pages.home.settings.cards.network")} /> handleToggle("mode")} /> } - label={t("Proxy Mode Card")} + label={t("pages.home.settings.cards.proxyMode")} /> handleToggle("traffic")} /> } - label={t("Traffic Stats Card")} + label={t("pages.home.settings.cards.traffic")} /> handleToggle("test")} /> } - label={t("Website Tests Card")} + label={t("pages.home.settings.cards.tests")} /> handleToggle("ip")} /> } - label={t("IP Information Card")} + label={t("pages.home.settings.cards.ip")} /> handleToggle("clashinfo")} /> } - label={t("Clash Info Cards")} + label={t("pages.home.settings.cards.clashInfo")} /> handleToggle("systeminfo")} /> } - label={t("System Info Cards")} + label={t("pages.home.settings.cards.systemInfo")} /> @@ -323,7 +323,7 @@ const HomePage = () => { renderCard( "traffic", } iconColor="secondary" > @@ -364,11 +364,11 @@ const HomePage = () => { ); return ( - + await entry_lightweight_mode()} size="small" @@ -377,12 +377,12 @@ const HomePage = () => { - + - + @@ -413,7 +413,7 @@ const NetworkSettingsCard = () => { const { t } = useTranslation(); return ( } iconColor="primary" action={null} @@ -428,7 +428,7 @@ const ClashModeEnhancedCard = () => { const { t } = useTranslation(); return ( } iconColor="info" action={null} diff --git a/src/services/types.d.ts b/src/types/types.d.ts similarity index 100% rename from src/services/types.d.ts rename to src/types/types.d.ts