From a36e1c4cb44da78bf4a95610474670728ed0c3c5 Mon Sep 17 00:00:00 2001 From: Slinetrac Date: Sun, 2 Nov 2025 08:37:36 +0800 Subject: [PATCH] chore(i18n): pages.logs.* --- src/locales/ar.json | 19 +++++++++++++++---- src/locales/de.json | 19 +++++++++++++++---- src/locales/en.json | 19 +++++++++++++++---- src/locales/es.json | 19 +++++++++++++++---- src/locales/fa.json | 19 +++++++++++++++---- src/locales/id.json | 19 +++++++++++++++---- src/locales/jp.json | 19 +++++++++++++++---- src/locales/ko.json | 19 +++++++++++++++---- src/locales/ru.json | 19 +++++++++++++++---- src/locales/tr.json | 19 +++++++++++++++---- src/locales/tt.json | 19 +++++++++++++++---- src/locales/zh.json | 19 +++++++++++++++---- src/locales/zhtw.json | 19 +++++++++++++++---- src/pages/logs.tsx | 25 +++++++++++++++++-------- 14 files changed, 212 insertions(+), 60 deletions(-) diff --git a/src/locales/ar.json b/src/locales/ar.json index 3c8c687d..01ccd3c2 100644 --- a/src/locales/ar.json +++ b/src/locales/ar.json @@ -156,6 +156,21 @@ "telegram": "قناة تيليجرام", "github": "مستودع Github" } + }, + "logs": { + "title": "السجلات", + "actions": { + "pause": "إيقاف مؤقت", + "resume": "استأنف", + "clear": "مسح" + }, + "filters": { + "all": "ALL", + "debug": "DEBUG", + "info": "INFO", + "warn": "WARN", + "error": "ERROR" + } } }, "Label-Home": "Home", @@ -247,10 +262,6 @@ "notice.provider.genericError": "Update failed: {{message}}", "notice.provider.none": "No providers available to update", "notice.provider.allUpdated": "All providers updated successfully", - "Logs": "السجلات", - "Pause": "إيقاف مؤقت", - "Resume": "استأنف", - "Clear": "مسح", "Test": "اختبار", "Test All": "اختبار الكل", "Testing...": "Testing...", diff --git a/src/locales/de.json b/src/locales/de.json index 0c9956b7..02249560 100644 --- a/src/locales/de.json +++ b/src/locales/de.json @@ -156,6 +156,21 @@ "telegram": "Telegram-Kanal", "github": "GitHub-Projektadresse" } + }, + "logs": { + "title": "Protokolle", + "actions": { + "pause": "Pausieren", + "resume": "Fortsetzen", + "clear": "Löschen" + }, + "filters": { + "all": "ALL", + "debug": "DEBUG", + "info": "INFO", + "warn": "WARN", + "error": "ERROR" + } } }, "Label-Home": "Startseite", @@ -247,10 +262,6 @@ "notice.provider.genericError": "Update failed: {{message}}", "notice.provider.none": "No providers available to update", "notice.provider.allUpdated": "All providers updated successfully", - "Logs": "Protokolle", - "Pause": "Pausieren", - "Resume": "Fortsetzen", - "Clear": "Löschen", "Test": "Testen", "Test All": "Alle testen", "Testing...": "Wird getestet...", diff --git a/src/locales/en.json b/src/locales/en.json index ce1650e3..8a894a2f 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -156,6 +156,21 @@ "telegram": "Telegram Channel", "github": "Github Repo" } + }, + "logs": { + "title": "Logs", + "actions": { + "pause": "Pause", + "resume": "Resume", + "clear": "Clear" + }, + "filters": { + "all": "ALL", + "debug": "DEBUG", + "info": "INFO", + "warn": "WARN", + "error": "ERROR" + } } }, "Label-Home": "Home", @@ -247,10 +262,6 @@ "notice.provider.genericError": "Update failed: {{message}}", "notice.provider.none": "No providers available to update", "notice.provider.allUpdated": "All providers updated successfully", - "Logs": "Logs", - "Pause": "Pause", - "Resume": "Resume", - "Clear": "Clear", "Test": "Test", "Test All": "Test All", "Testing...": "Testing...", diff --git a/src/locales/es.json b/src/locales/es.json index 1f6aee95..b4ba8d78 100644 --- a/src/locales/es.json +++ b/src/locales/es.json @@ -156,6 +156,21 @@ "telegram": "Canal de Telegram", "github": "Dirección del proyecto en GitHub" } + }, + "logs": { + "title": "Registros", + "actions": { + "pause": "Pausar", + "resume": "Reanudar", + "clear": "Limpiar" + }, + "filters": { + "all": "ALL", + "debug": "DEBUG", + "info": "INFO", + "warn": "WARN", + "error": "ERROR" + } } }, "Label-Home": "Hogar", @@ -247,10 +262,6 @@ "notice.provider.genericError": "Update failed: {{message}}", "notice.provider.none": "No providers available to update", "notice.provider.allUpdated": "All providers updated successfully", - "Logs": "Registros", - "Pause": "Pausar", - "Resume": "Reanudar", - "Clear": "Limpiar", "Test": "Prueba", "Test All": "Probar todo", "Testing...": "Probando...", diff --git a/src/locales/fa.json b/src/locales/fa.json index 5fe8aa9c..6e9c0f0e 100644 --- a/src/locales/fa.json +++ b/src/locales/fa.json @@ -156,6 +156,21 @@ "telegram": "کانال تلگرام", "github": "مخزن GitHub" } + }, + "logs": { + "title": "لاگ‌ها", + "actions": { + "pause": "توقف", + "resume": "از سرگیری", + "clear": "پاک کردن" + }, + "filters": { + "all": "ALL", + "debug": "DEBUG", + "info": "INFO", + "warn": "WARN", + "error": "ERROR" + } } }, "Label-Home": "Home", @@ -247,10 +262,6 @@ "notice.provider.genericError": "Update failed: {{message}}", "notice.provider.none": "No providers available to update", "notice.provider.allUpdated": "All providers updated successfully", - "Logs": "لاگ‌ها", - "Pause": "توقف", - "Resume": "از سرگیری", - "Clear": "پاک کردن", "Test": "آزمون", "Test All": "آزمون همه", "Testing...": "Testing...", diff --git a/src/locales/id.json b/src/locales/id.json index 1aacf690..46f75f05 100644 --- a/src/locales/id.json +++ b/src/locales/id.json @@ -156,6 +156,21 @@ "telegram": "Saluran Telegram", "github": "Repositori Github" } + }, + "logs": { + "title": "Log", + "actions": { + "pause": "Jeda", + "resume": "Lanjut", + "clear": "Bersihkan" + }, + "filters": { + "all": "ALL", + "debug": "DEBUG", + "info": "INFO", + "warn": "WARN", + "error": "ERROR" + } } }, "Label-Home": "Home", @@ -247,10 +262,6 @@ "notice.provider.genericError": "Update failed: {{message}}", "notice.provider.none": "No providers available to update", "notice.provider.allUpdated": "All providers updated successfully", - "Logs": "Log", - "Pause": "Jeda", - "Resume": "Lanjut", - "Clear": "Bersihkan", "Test": "Tes", "Test All": "Tes Semua", "Testing...": "Testing...", diff --git a/src/locales/jp.json b/src/locales/jp.json index c9fb489f..e7117c33 100644 --- a/src/locales/jp.json +++ b/src/locales/jp.json @@ -156,6 +156,21 @@ "telegram": "Telegramチャンネル", "github": "GitHubリポジトリ" } + }, + "logs": { + "title": "ログ", + "actions": { + "pause": "一時停止", + "resume": "再開", + "clear": "クリア" + }, + "filters": { + "all": "ALL", + "debug": "DEBUG", + "info": "INFO", + "warn": "WARN", + "error": "ERROR" + } } }, "Label-Home": "ホーム", @@ -247,10 +262,6 @@ "notice.provider.genericError": "Update failed: {{message}}", "notice.provider.none": "No providers available to update", "notice.provider.allUpdated": "All providers updated successfully", - "Logs": "ログ", - "Pause": "一時停止", - "Resume": "再開", - "Clear": "クリア", "Test": "テスト", "Test All": "すべてテスト", "Testing...": "テスト中...", diff --git a/src/locales/ko.json b/src/locales/ko.json index 4668f35a..22884c30 100644 --- a/src/locales/ko.json +++ b/src/locales/ko.json @@ -156,6 +156,21 @@ "telegram": "Telegram Channel", "github": "Github Repo" } + }, + "logs": { + "title": "로그", + "actions": { + "pause": "일시 정지", + "resume": "재개", + "clear": "지우기" + }, + "filters": { + "all": "ALL", + "debug": "DEBUG", + "info": "INFO", + "warn": "WARN", + "error": "ERROR" + } } }, "Label-Home": "홈", @@ -247,10 +262,6 @@ "notice.provider.genericError": "Update failed: {{message}}", "notice.provider.none": "No providers available to update", "notice.provider.allUpdated": "All providers updated successfully", - "Logs": "로그", - "Pause": "일시 정지", - "Resume": "재개", - "Clear": "지우기", "Test": "테스트", "Test All": "모두 테스트", "Testing...": "테스트 중...", diff --git a/src/locales/ru.json b/src/locales/ru.json index 56670b6a..fde5725f 100644 --- a/src/locales/ru.json +++ b/src/locales/ru.json @@ -156,6 +156,21 @@ "telegram": "Telegram-канал", "github": "GitHub репозиторий" } + }, + "logs": { + "title": "Логи", + "actions": { + "pause": "Пауза", + "resume": "Возобновить", + "clear": "Очистить" + }, + "filters": { + "all": "ALL", + "debug": "DEBUG", + "info": "INFO", + "warn": "WARN", + "error": "ERROR" + } } }, "Label-Home": "Главная", @@ -247,10 +262,6 @@ "notice.provider.genericError": "Update failed: {{message}}", "notice.provider.none": "No providers available to update", "notice.provider.allUpdated": "All providers updated successfully", - "Logs": "Логи", - "Pause": "Пауза", - "Resume": "Возобновить", - "Clear": "Очистить", "Test": "Тест", "Test All": "Тестировать все", "Testing...": "Тестирование ...", diff --git a/src/locales/tr.json b/src/locales/tr.json index 7549471a..3cd8b06e 100644 --- a/src/locales/tr.json +++ b/src/locales/tr.json @@ -156,6 +156,21 @@ "telegram": "Telegram Kanalı", "github": "Github Repo" } + }, + "logs": { + "title": "Günlükler", + "actions": { + "pause": "Duraklat", + "resume": "Sürdür", + "clear": "Temizle" + }, + "filters": { + "all": "ALL", + "debug": "DEBUG", + "info": "INFO", + "warn": "WARN", + "error": "ERROR" + } } }, "Label-Home": "Ana Sayfa", @@ -247,10 +262,6 @@ "notice.provider.genericError": "Update failed: {{message}}", "notice.provider.none": "No providers available to update", "notice.provider.allUpdated": "All providers updated successfully", - "Logs": "Günlükler", - "Pause": "Duraklat", - "Resume": "Sürdür", - "Clear": "Temizle", "Test": "Test", "Test All": "Tümünü Test Et", "Testing...": "Test Ediliyor...", diff --git a/src/locales/tt.json b/src/locales/tt.json index fcb79306..b95dcf22 100644 --- a/src/locales/tt.json +++ b/src/locales/tt.json @@ -156,6 +156,21 @@ "telegram": "Telegram каналы", "github": "GitHub репозиториясе" } + }, + "logs": { + "title": "Логлар", + "actions": { + "pause": "Туктау", + "resume": "Дәвам", + "clear": "Чистарту" + }, + "filters": { + "all": "ALL", + "debug": "DEBUG", + "info": "INFO", + "warn": "WARN", + "error": "ERROR" + } } }, "Label-Home": "Home", @@ -247,10 +262,6 @@ "notice.provider.genericError": "Update failed: {{message}}", "notice.provider.none": "No providers available to update", "notice.provider.allUpdated": "All providers updated successfully", - "Logs": "Логлар", - "Pause": "Туктау", - "Resume": "Дәвам", - "Clear": "Чистарту", "Test": "Тест", "Test All": "Барчасын тестлау", "Testing...": "Testing...", diff --git a/src/locales/zh.json b/src/locales/zh.json index 77d4e276..166d076a 100644 --- a/src/locales/zh.json +++ b/src/locales/zh.json @@ -156,6 +156,21 @@ "telegram": "Telegram 频道", "github": "GitHub 项目地址" } + }, + "logs": { + "title": "日志", + "actions": { + "pause": "暂停", + "resume": "继续", + "clear": "清除" + }, + "filters": { + "all": "ALL", + "debug": "DEBUG", + "info": "INFO", + "warn": "WARN", + "error": "ERROR" + } } }, "Label-Home": "首 页", @@ -247,10 +262,6 @@ "notice.provider.genericError": "更新失败: {{message}}", "notice.provider.none": "没有可更新的提供者", "notice.provider.allUpdated": "全部提供者更新成功", - "Logs": "日志", - "Pause": "暂停", - "Resume": "继续", - "Clear": "清除", "Test": "测试", "Test All": "测试全部", "Testing...": "测试中...", diff --git a/src/locales/zhtw.json b/src/locales/zhtw.json index 13716f7e..4b9f7ef6 100644 --- a/src/locales/zhtw.json +++ b/src/locales/zhtw.json @@ -156,6 +156,21 @@ "telegram": "Telegram 頻道", "github": "GitHub 專案位址" } + }, + "logs": { + "title": "日誌", + "actions": { + "pause": "暫停", + "resume": "繼續", + "clear": "清除" + }, + "filters": { + "all": "ALL", + "debug": "DEBUG", + "info": "INFO", + "warn": "WARN", + "error": "ERROR" + } } }, "Label-Home": "首 頁", @@ -247,10 +262,6 @@ "notice.provider.genericError": "Update failed: {{message}}", "notice.provider.none": "No providers available to update", "notice.provider.allUpdated": "All providers updated successfully", - "Logs": "日誌", - "Pause": "暫停", - "Resume": "繼續", - "Clear": "清除", "Test": "測試", "Test All": "測試全部", "Testing...": "測試中...", diff --git a/src/pages/logs.tsx b/src/pages/logs.tsx index 4e49df3a..9546b655 100644 --- a/src/pages/logs.tsx +++ b/src/pages/logs.tsx @@ -60,7 +60,7 @@ const LogPage = () => { return ( { header={ { refreshGetClashLog(true); }} > - {t("Clear")} + {t("pages.logs.actions.clear")} } @@ -108,11 +117,11 @@ const LogPage = () => { value={logState} onChange={(e) => handleLogLevelChange(e.target.value as LogFilter)} > - ALL - DEBUG - INFO - WARN - ERROR + {t("pages.logs.filters.all")} + {t("pages.logs.filters.debug")} + {t("pages.logs.filters.info")} + {t("pages.logs.filters.warn")} + {t("pages.logs.filters.error")} {