From 9fb46fd3e0805d6d139bfbf9bbe2f5db1ceac66a Mon Sep 17 00:00:00 2001 From: Slinetrac Date: Thu, 6 Nov 2025 12:26:34 +0800 Subject: [PATCH] refactor(i18n): unify unlock UI translations under tests namespace --- src/locales/ar/index.ts | 14 ++++++-------- src/locales/ar/tests.json | 12 ++++++++++++ src/locales/ar/unlock.json | 12 ------------ src/locales/de/index.ts | 14 ++++++-------- src/locales/de/tests.json | 12 ++++++++++++ src/locales/de/unlock.json | 12 ------------ src/locales/en/index.ts | 14 ++++++-------- src/locales/en/tests.json | 12 ++++++++++++ src/locales/en/unlock.json | 12 ------------ src/locales/es/index.ts | 14 ++++++-------- src/locales/es/tests.json | 12 ++++++++++++ src/locales/es/unlock.json | 12 ------------ src/locales/fa/index.ts | 14 ++++++-------- src/locales/fa/tests.json | 12 ++++++++++++ src/locales/fa/unlock.json | 12 ------------ src/locales/id/index.ts | 14 ++++++-------- src/locales/id/tests.json | 12 ++++++++++++ src/locales/id/unlock.json | 12 ------------ src/locales/jp/index.ts | 14 ++++++-------- src/locales/jp/tests.json | 12 ++++++++++++ src/locales/jp/unlock.json | 12 ------------ src/locales/ko/index.ts | 14 ++++++-------- src/locales/ko/tests.json | 12 ++++++++++++ src/locales/ko/unlock.json | 12 ------------ src/locales/ru/index.ts | 14 ++++++-------- src/locales/ru/tests.json | 12 ++++++++++++ src/locales/ru/unlock.json | 12 ------------ src/locales/tr/index.ts | 14 ++++++-------- src/locales/tr/tests.json | 12 ++++++++++++ src/locales/tr/unlock.json | 12 ------------ src/locales/tt/index.ts | 14 ++++++-------- src/locales/tt/tests.json | 12 ++++++++++++ src/locales/tt/unlock.json | 12 ------------ src/locales/zh/index.ts | 14 ++++++-------- src/locales/zh/tests.json | 12 ++++++++++++ src/locales/zh/unlock.json | 12 ------------ src/locales/zhtw/index.ts | 14 ++++++-------- src/locales/zhtw/tests.json | 12 ++++++++++++ src/locales/zhtw/unlock.json | 12 ------------ src/pages/unlock.tsx | 9 +++++---- 40 files changed, 239 insertions(+), 264 deletions(-) delete mode 100644 src/locales/ar/unlock.json delete mode 100644 src/locales/de/unlock.json delete mode 100644 src/locales/en/unlock.json delete mode 100644 src/locales/es/unlock.json delete mode 100644 src/locales/fa/unlock.json delete mode 100644 src/locales/id/unlock.json delete mode 100644 src/locales/jp/unlock.json delete mode 100644 src/locales/ko/unlock.json delete mode 100644 src/locales/ru/unlock.json delete mode 100644 src/locales/tr/unlock.json delete mode 100644 src/locales/tt/unlock.json delete mode 100644 src/locales/zh/unlock.json delete mode 100644 src/locales/zhtw/unlock.json diff --git a/src/locales/ar/index.ts b/src/locales/ar/index.ts index 6c3e9449..3ece5e36 100644 --- a/src/locales/ar/index.ts +++ b/src/locales/ar/index.ts @@ -8,20 +8,18 @@ import rules from "./rules.json"; import settings from "./settings.json"; import shared from "./shared.json"; import tests from "./tests.json"; -import unlock from "./unlock.json"; const resources = { - shared: shared, + connections: connections, + home: home, + layout: layout, + logs: logs, profiles: profiles, proxies: proxies, - connections: connections, - tests: tests, - logs: logs, rules: rules, - home: home, - unlock: unlock, settings: settings, - layout: layout, + shared: shared, + tests: tests, }; export default resources; diff --git a/src/locales/ar/tests.json b/src/locales/ar/tests.json index acbc099a..31ba536f 100644 --- a/src/locales/ar/tests.json +++ b/src/locales/ar/tests.json @@ -36,5 +36,17 @@ "unsupportedRegion": "Unsupported Country/Region", "failedNetwork": "Failed (Network Connection)" } + }, + "unlock": { + "page": { + "actions": { + "testing": "Testing..." + }, + "empty": "No unlock test items", + "messages": { + "detectionTimeout": "Detection timeout or failed" + }, + "title": "Unlock Test" + } } } diff --git a/src/locales/ar/unlock.json b/src/locales/ar/unlock.json deleted file mode 100644 index e97daa76..00000000 --- a/src/locales/ar/unlock.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "page": { - "actions": { - "testing": "Testing..." - }, - "empty": "No unlock test items", - "messages": { - "detectionTimeout": "Detection timeout or failed" - }, - "title": "Unlock Test" - } -} diff --git a/src/locales/de/index.ts b/src/locales/de/index.ts index 6c3e9449..3ece5e36 100644 --- a/src/locales/de/index.ts +++ b/src/locales/de/index.ts @@ -8,20 +8,18 @@ import rules from "./rules.json"; import settings from "./settings.json"; import shared from "./shared.json"; import tests from "./tests.json"; -import unlock from "./unlock.json"; const resources = { - shared: shared, + connections: connections, + home: home, + layout: layout, + logs: logs, profiles: profiles, proxies: proxies, - connections: connections, - tests: tests, - logs: logs, rules: rules, - home: home, - unlock: unlock, settings: settings, - layout: layout, + shared: shared, + tests: tests, }; export default resources; diff --git a/src/locales/de/tests.json b/src/locales/de/tests.json index 5b159e6e..74a74a1f 100644 --- a/src/locales/de/tests.json +++ b/src/locales/de/tests.json @@ -36,5 +36,17 @@ "unsupportedRegion": "Nicht unterstütztes Land/Region", "failedNetwork": "Failed (Network Connection)" } + }, + "unlock": { + "page": { + "actions": { + "testing": "Wird getestet..." + }, + "empty": "No unlock test items", + "messages": { + "detectionTimeout": "Detection timeout or failed" + }, + "title": "Entsperrungstest" + } } } diff --git a/src/locales/de/unlock.json b/src/locales/de/unlock.json deleted file mode 100644 index 444b722c..00000000 --- a/src/locales/de/unlock.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "page": { - "actions": { - "testing": "Wird getestet..." - }, - "empty": "No unlock test items", - "messages": { - "detectionTimeout": "Detection timeout or failed" - }, - "title": "Entsperrungstest" - } -} diff --git a/src/locales/en/index.ts b/src/locales/en/index.ts index 6c3e9449..3ece5e36 100644 --- a/src/locales/en/index.ts +++ b/src/locales/en/index.ts @@ -8,20 +8,18 @@ import rules from "./rules.json"; import settings from "./settings.json"; import shared from "./shared.json"; import tests from "./tests.json"; -import unlock from "./unlock.json"; const resources = { - shared: shared, + connections: connections, + home: home, + layout: layout, + logs: logs, profiles: profiles, proxies: proxies, - connections: connections, - tests: tests, - logs: logs, rules: rules, - home: home, - unlock: unlock, settings: settings, - layout: layout, + shared: shared, + tests: tests, }; export default resources; diff --git a/src/locales/en/tests.json b/src/locales/en/tests.json index 827ee056..513b70f1 100644 --- a/src/locales/en/tests.json +++ b/src/locales/en/tests.json @@ -36,5 +36,17 @@ "unsupportedRegion": "Unsupported Country/Region", "failedNetwork": "Failed (Network Connection)" } + }, + "unlock": { + "page": { + "actions": { + "testing": "Testing..." + }, + "empty": "No unlock test items", + "messages": { + "detectionTimeout": "Detection timeout or failed" + }, + "title": "Unlock Test" + } } } diff --git a/src/locales/en/unlock.json b/src/locales/en/unlock.json deleted file mode 100644 index e97daa76..00000000 --- a/src/locales/en/unlock.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "page": { - "actions": { - "testing": "Testing..." - }, - "empty": "No unlock test items", - "messages": { - "detectionTimeout": "Detection timeout or failed" - }, - "title": "Unlock Test" - } -} diff --git a/src/locales/es/index.ts b/src/locales/es/index.ts index 6c3e9449..3ece5e36 100644 --- a/src/locales/es/index.ts +++ b/src/locales/es/index.ts @@ -8,20 +8,18 @@ import rules from "./rules.json"; import settings from "./settings.json"; import shared from "./shared.json"; import tests from "./tests.json"; -import unlock from "./unlock.json"; const resources = { - shared: shared, + connections: connections, + home: home, + layout: layout, + logs: logs, profiles: profiles, proxies: proxies, - connections: connections, - tests: tests, - logs: logs, rules: rules, - home: home, - unlock: unlock, settings: settings, - layout: layout, + shared: shared, + tests: tests, }; export default resources; diff --git a/src/locales/es/tests.json b/src/locales/es/tests.json index d60d2b29..f95fb613 100644 --- a/src/locales/es/tests.json +++ b/src/locales/es/tests.json @@ -36,5 +36,17 @@ "unsupportedRegion": "País/región no soportado", "failedNetwork": "Failed (Network Connection)" } + }, + "unlock": { + "page": { + "actions": { + "testing": "Probando..." + }, + "empty": "No unlock test items", + "messages": { + "detectionTimeout": "Detection timeout or failed" + }, + "title": "Prueba de desbloqueo" + } } } diff --git a/src/locales/es/unlock.json b/src/locales/es/unlock.json deleted file mode 100644 index 077fec1c..00000000 --- a/src/locales/es/unlock.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "page": { - "actions": { - "testing": "Probando..." - }, - "empty": "No unlock test items", - "messages": { - "detectionTimeout": "Detection timeout or failed" - }, - "title": "Prueba de desbloqueo" - } -} diff --git a/src/locales/fa/index.ts b/src/locales/fa/index.ts index 6c3e9449..3ece5e36 100644 --- a/src/locales/fa/index.ts +++ b/src/locales/fa/index.ts @@ -8,20 +8,18 @@ import rules from "./rules.json"; import settings from "./settings.json"; import shared from "./shared.json"; import tests from "./tests.json"; -import unlock from "./unlock.json"; const resources = { - shared: shared, + connections: connections, + home: home, + layout: layout, + logs: logs, profiles: profiles, proxies: proxies, - connections: connections, - tests: tests, - logs: logs, rules: rules, - home: home, - unlock: unlock, settings: settings, - layout: layout, + shared: shared, + tests: tests, }; export default resources; diff --git a/src/locales/fa/tests.json b/src/locales/fa/tests.json index 15b8af21..a36d2b8a 100644 --- a/src/locales/fa/tests.json +++ b/src/locales/fa/tests.json @@ -36,5 +36,17 @@ "unsupportedRegion": "Unsupported Country/Region", "failedNetwork": "Failed (Network Connection)" } + }, + "unlock": { + "page": { + "actions": { + "testing": "Testing..." + }, + "empty": "No unlock test items", + "messages": { + "detectionTimeout": "Detection timeout or failed" + }, + "title": "Unlock Test" + } } } diff --git a/src/locales/fa/unlock.json b/src/locales/fa/unlock.json deleted file mode 100644 index e97daa76..00000000 --- a/src/locales/fa/unlock.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "page": { - "actions": { - "testing": "Testing..." - }, - "empty": "No unlock test items", - "messages": { - "detectionTimeout": "Detection timeout or failed" - }, - "title": "Unlock Test" - } -} diff --git a/src/locales/id/index.ts b/src/locales/id/index.ts index 6c3e9449..3ece5e36 100644 --- a/src/locales/id/index.ts +++ b/src/locales/id/index.ts @@ -8,20 +8,18 @@ import rules from "./rules.json"; import settings from "./settings.json"; import shared from "./shared.json"; import tests from "./tests.json"; -import unlock from "./unlock.json"; const resources = { - shared: shared, + connections: connections, + home: home, + layout: layout, + logs: logs, profiles: profiles, proxies: proxies, - connections: connections, - tests: tests, - logs: logs, rules: rules, - home: home, - unlock: unlock, settings: settings, - layout: layout, + shared: shared, + tests: tests, }; export default resources; diff --git a/src/locales/id/tests.json b/src/locales/id/tests.json index da0aac91..83538951 100644 --- a/src/locales/id/tests.json +++ b/src/locales/id/tests.json @@ -36,5 +36,17 @@ "unsupportedRegion": "Unsupported Country/Region", "failedNetwork": "Failed (Network Connection)" } + }, + "unlock": { + "page": { + "actions": { + "testing": "Testing..." + }, + "empty": "No unlock test items", + "messages": { + "detectionTimeout": "Detection timeout or failed" + }, + "title": "Unlock Test" + } } } diff --git a/src/locales/id/unlock.json b/src/locales/id/unlock.json deleted file mode 100644 index e97daa76..00000000 --- a/src/locales/id/unlock.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "page": { - "actions": { - "testing": "Testing..." - }, - "empty": "No unlock test items", - "messages": { - "detectionTimeout": "Detection timeout or failed" - }, - "title": "Unlock Test" - } -} diff --git a/src/locales/jp/index.ts b/src/locales/jp/index.ts index 6c3e9449..3ece5e36 100644 --- a/src/locales/jp/index.ts +++ b/src/locales/jp/index.ts @@ -8,20 +8,18 @@ import rules from "./rules.json"; import settings from "./settings.json"; import shared from "./shared.json"; import tests from "./tests.json"; -import unlock from "./unlock.json"; const resources = { - shared: shared, + connections: connections, + home: home, + layout: layout, + logs: logs, profiles: profiles, proxies: proxies, - connections: connections, - tests: tests, - logs: logs, rules: rules, - home: home, - unlock: unlock, settings: settings, - layout: layout, + shared: shared, + tests: tests, }; export default resources; diff --git a/src/locales/jp/tests.json b/src/locales/jp/tests.json index 19c76799..fccc19c6 100644 --- a/src/locales/jp/tests.json +++ b/src/locales/jp/tests.json @@ -36,5 +36,17 @@ "unsupportedRegion": "サポートされていない国/地域", "failedNetwork": "Failed (Network Connection)" } + }, + "unlock": { + "page": { + "actions": { + "testing": "テスト中..." + }, + "empty": "アンロックテスト項目はありません", + "messages": { + "detectionTimeout": "Detection timeout or failed" + }, + "title": "ロック解除テスト" + } } } diff --git a/src/locales/jp/unlock.json b/src/locales/jp/unlock.json deleted file mode 100644 index 1df645f5..00000000 --- a/src/locales/jp/unlock.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "page": { - "actions": { - "testing": "テスト中..." - }, - "empty": "アンロックテスト項目はありません", - "messages": { - "detectionTimeout": "Detection timeout or failed" - }, - "title": "ロック解除テスト" - } -} diff --git a/src/locales/ko/index.ts b/src/locales/ko/index.ts index 6c3e9449..3ece5e36 100644 --- a/src/locales/ko/index.ts +++ b/src/locales/ko/index.ts @@ -8,20 +8,18 @@ import rules from "./rules.json"; import settings from "./settings.json"; import shared from "./shared.json"; import tests from "./tests.json"; -import unlock from "./unlock.json"; const resources = { - shared: shared, + connections: connections, + home: home, + layout: layout, + logs: logs, profiles: profiles, proxies: proxies, - connections: connections, - tests: tests, - logs: logs, rules: rules, - home: home, - unlock: unlock, settings: settings, - layout: layout, + shared: shared, + tests: tests, }; export default resources; diff --git a/src/locales/ko/tests.json b/src/locales/ko/tests.json index 987f939f..fd6bf9db 100644 --- a/src/locales/ko/tests.json +++ b/src/locales/ko/tests.json @@ -36,5 +36,17 @@ "unsupportedRegion": "Unsupported Country/Region", "failedNetwork": "Failed (Network Connection)" } + }, + "unlock": { + "page": { + "actions": { + "testing": "테스트 중..." + }, + "empty": "No unlock test items", + "messages": { + "detectionTimeout": "Detection timeout or failed" + }, + "title": "Unlock Test" + } } } diff --git a/src/locales/ko/unlock.json b/src/locales/ko/unlock.json deleted file mode 100644 index d5711e4c..00000000 --- a/src/locales/ko/unlock.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "page": { - "actions": { - "testing": "테스트 중..." - }, - "empty": "No unlock test items", - "messages": { - "detectionTimeout": "Detection timeout or failed" - }, - "title": "Unlock Test" - } -} diff --git a/src/locales/ru/index.ts b/src/locales/ru/index.ts index 6c3e9449..3ece5e36 100644 --- a/src/locales/ru/index.ts +++ b/src/locales/ru/index.ts @@ -8,20 +8,18 @@ import rules from "./rules.json"; import settings from "./settings.json"; import shared from "./shared.json"; import tests from "./tests.json"; -import unlock from "./unlock.json"; const resources = { - shared: shared, + connections: connections, + home: home, + layout: layout, + logs: logs, profiles: profiles, proxies: proxies, - connections: connections, - tests: tests, - logs: logs, rules: rules, - home: home, - unlock: unlock, settings: settings, - layout: layout, + shared: shared, + tests: tests, }; export default resources; diff --git a/src/locales/ru/tests.json b/src/locales/ru/tests.json index 77fe8f27..b1035d45 100644 --- a/src/locales/ru/tests.json +++ b/src/locales/ru/tests.json @@ -36,5 +36,17 @@ "unsupportedRegion": "Страна/регион не поддерживается", "failedNetwork": "Ошибка подключения" } + }, + "unlock": { + "page": { + "actions": { + "testing": "Тестирование ..." + }, + "empty": "No unlock test items", + "messages": { + "detectionTimeout": "Detection timeout or failed" + }, + "title": "Тест доступности веб-сайтов" + } } } diff --git a/src/locales/ru/unlock.json b/src/locales/ru/unlock.json deleted file mode 100644 index d12d5a25..00000000 --- a/src/locales/ru/unlock.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "page": { - "actions": { - "testing": "Тестирование ..." - }, - "empty": "No unlock test items", - "messages": { - "detectionTimeout": "Detection timeout or failed" - }, - "title": "Тест доступности веб-сайтов" - } -} diff --git a/src/locales/tr/index.ts b/src/locales/tr/index.ts index 6c3e9449..3ece5e36 100644 --- a/src/locales/tr/index.ts +++ b/src/locales/tr/index.ts @@ -8,20 +8,18 @@ import rules from "./rules.json"; import settings from "./settings.json"; import shared from "./shared.json"; import tests from "./tests.json"; -import unlock from "./unlock.json"; const resources = { - shared: shared, + connections: connections, + home: home, + layout: layout, + logs: logs, profiles: profiles, proxies: proxies, - connections: connections, - tests: tests, - logs: logs, rules: rules, - home: home, - unlock: unlock, settings: settings, - layout: layout, + shared: shared, + tests: tests, }; export default resources; diff --git a/src/locales/tr/tests.json b/src/locales/tr/tests.json index 1db43d64..7e673e40 100644 --- a/src/locales/tr/tests.json +++ b/src/locales/tr/tests.json @@ -36,5 +36,17 @@ "unsupportedRegion": "Desteklenmeyen Ülke/Bölge", "failedNetwork": "Başarısız (Ağ Bağlantısı)" } + }, + "unlock": { + "page": { + "actions": { + "testing": "Test Ediliyor..." + }, + "empty": "No unlock test items", + "messages": { + "detectionTimeout": "Detection timeout or failed" + }, + "title": "Kilit Açma Testi" + } } } diff --git a/src/locales/tr/unlock.json b/src/locales/tr/unlock.json deleted file mode 100644 index 12099c33..00000000 --- a/src/locales/tr/unlock.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "page": { - "actions": { - "testing": "Test Ediliyor..." - }, - "empty": "No unlock test items", - "messages": { - "detectionTimeout": "Detection timeout or failed" - }, - "title": "Kilit Açma Testi" - } -} diff --git a/src/locales/tt/index.ts b/src/locales/tt/index.ts index 6c3e9449..3ece5e36 100644 --- a/src/locales/tt/index.ts +++ b/src/locales/tt/index.ts @@ -8,20 +8,18 @@ import rules from "./rules.json"; import settings from "./settings.json"; import shared from "./shared.json"; import tests from "./tests.json"; -import unlock from "./unlock.json"; const resources = { - shared: shared, + connections: connections, + home: home, + layout: layout, + logs: logs, profiles: profiles, proxies: proxies, - connections: connections, - tests: tests, - logs: logs, rules: rules, - home: home, - unlock: unlock, settings: settings, - layout: layout, + shared: shared, + tests: tests, }; export default resources; diff --git a/src/locales/tt/tests.json b/src/locales/tt/tests.json index ddb03074..a96085f8 100644 --- a/src/locales/tt/tests.json +++ b/src/locales/tt/tests.json @@ -36,5 +36,17 @@ "unsupportedRegion": "Unsupported Country/Region", "failedNetwork": "Failed (Network Connection)" } + }, + "unlock": { + "page": { + "actions": { + "testing": "Testing..." + }, + "empty": "No unlock test items", + "messages": { + "detectionTimeout": "Detection timeout or failed" + }, + "title": "Unlock Test" + } } } diff --git a/src/locales/tt/unlock.json b/src/locales/tt/unlock.json deleted file mode 100644 index e97daa76..00000000 --- a/src/locales/tt/unlock.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "page": { - "actions": { - "testing": "Testing..." - }, - "empty": "No unlock test items", - "messages": { - "detectionTimeout": "Detection timeout or failed" - }, - "title": "Unlock Test" - } -} diff --git a/src/locales/zh/index.ts b/src/locales/zh/index.ts index 6c3e9449..3ece5e36 100644 --- a/src/locales/zh/index.ts +++ b/src/locales/zh/index.ts @@ -8,20 +8,18 @@ import rules from "./rules.json"; import settings from "./settings.json"; import shared from "./shared.json"; import tests from "./tests.json"; -import unlock from "./unlock.json"; const resources = { - shared: shared, + connections: connections, + home: home, + layout: layout, + logs: logs, profiles: profiles, proxies: proxies, - connections: connections, - tests: tests, - logs: logs, rules: rules, - home: home, - unlock: unlock, settings: settings, - layout: layout, + shared: shared, + tests: tests, }; export default resources; diff --git a/src/locales/zh/tests.json b/src/locales/zh/tests.json index e7459867..86967597 100644 --- a/src/locales/zh/tests.json +++ b/src/locales/zh/tests.json @@ -36,5 +36,17 @@ "unsupportedRegion": "不支持的国家/地区", "failedNetwork": "测试失败(网络连接问题)" } + }, + "unlock": { + "page": { + "actions": { + "testing": "测试中..." + }, + "empty": "暂无解锁测试项目", + "messages": { + "detectionTimeout": "检测超时或失败" + }, + "title": "解锁测试" + } } } diff --git a/src/locales/zh/unlock.json b/src/locales/zh/unlock.json deleted file mode 100644 index f5e2cc41..00000000 --- a/src/locales/zh/unlock.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "page": { - "actions": { - "testing": "测试中..." - }, - "empty": "暂无解锁测试项目", - "messages": { - "detectionTimeout": "检测超时或失败" - }, - "title": "解锁测试" - } -} diff --git a/src/locales/zhtw/index.ts b/src/locales/zhtw/index.ts index 6c3e9449..3ece5e36 100644 --- a/src/locales/zhtw/index.ts +++ b/src/locales/zhtw/index.ts @@ -8,20 +8,18 @@ import rules from "./rules.json"; import settings from "./settings.json"; import shared from "./shared.json"; import tests from "./tests.json"; -import unlock from "./unlock.json"; const resources = { - shared: shared, + connections: connections, + home: home, + layout: layout, + logs: logs, profiles: profiles, proxies: proxies, - connections: connections, - tests: tests, - logs: logs, rules: rules, - home: home, - unlock: unlock, settings: settings, - layout: layout, + shared: shared, + tests: tests, }; export default resources; diff --git a/src/locales/zhtw/tests.json b/src/locales/zhtw/tests.json index 4dbcdeec..b57d08fd 100644 --- a/src/locales/zhtw/tests.json +++ b/src/locales/zhtw/tests.json @@ -36,5 +36,17 @@ "unsupportedRegion": "不支援的國家/地區", "failedNetwork": "測試失敗(網路連線問題)" } + }, + "unlock": { + "page": { + "actions": { + "testing": "測試中..." + }, + "empty": "目前沒有解鎖測試項目", + "messages": { + "detectionTimeout": "檢測逾時或失敗" + }, + "title": "解鎖測試" + } } } diff --git a/src/locales/zhtw/unlock.json b/src/locales/zhtw/unlock.json deleted file mode 100644 index 364bcf0d..00000000 --- a/src/locales/zhtw/unlock.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "page": { - "actions": { - "testing": "測試中..." - }, - "empty": "目前沒有解鎖測試項目", - "messages": { - "detectionTimeout": "檢測逾時或失敗" - }, - "title": "解鎖測試" - } -} diff --git a/src/pages/unlock.tsx b/src/pages/unlock.tsx index 5fda155c..a2202e12 100644 --- a/src/pages/unlock.tsx +++ b/src/pages/unlock.tsx @@ -163,7 +163,8 @@ const UnlockPage = () => { invoke(cmd, args), new Promise((_, reject) => setTimeout( - () => reject(new Error(t("unlock.page.messages.detectionTimeout"))), + () => + reject(new Error(t("tests.unlock.page.messages.detectionTimeout"))), timeout, ), ), @@ -263,7 +264,7 @@ const UnlockPage = () => { return ( @@ -295,7 +296,7 @@ const UnlockPage = () => { height: "50%", }} > - + ) : (