refactor(i18n): unify unlock UI translations under tests namespace

This commit is contained in:
Slinetrac
2025-11-06 12:26:34 +08:00
Unverified
parent 1ce192dfeb
commit 9fb46fd3e0
40 changed files with 239 additions and 264 deletions

View File

@@ -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;

View File

@@ -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"
}
}
}

View File

@@ -1,12 +0,0 @@
{
"page": {
"actions": {
"testing": "Testing..."
},
"empty": "No unlock test items",
"messages": {
"detectionTimeout": "Detection timeout or failed"
},
"title": "Unlock Test"
}
}

View File

@@ -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;

View File

@@ -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"
}
}
}

View File

@@ -1,12 +0,0 @@
{
"page": {
"actions": {
"testing": "Wird getestet..."
},
"empty": "No unlock test items",
"messages": {
"detectionTimeout": "Detection timeout or failed"
},
"title": "Entsperrungstest"
}
}

View File

@@ -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;

View File

@@ -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"
}
}
}

View File

@@ -1,12 +0,0 @@
{
"page": {
"actions": {
"testing": "Testing..."
},
"empty": "No unlock test items",
"messages": {
"detectionTimeout": "Detection timeout or failed"
},
"title": "Unlock Test"
}
}

View File

@@ -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;

View File

@@ -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"
}
}
}

View File

@@ -1,12 +0,0 @@
{
"page": {
"actions": {
"testing": "Probando..."
},
"empty": "No unlock test items",
"messages": {
"detectionTimeout": "Detection timeout or failed"
},
"title": "Prueba de desbloqueo"
}
}

View File

@@ -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;

View File

@@ -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"
}
}
}

View File

@@ -1,12 +0,0 @@
{
"page": {
"actions": {
"testing": "Testing..."
},
"empty": "No unlock test items",
"messages": {
"detectionTimeout": "Detection timeout or failed"
},
"title": "Unlock Test"
}
}

View File

@@ -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;

View File

@@ -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"
}
}
}

View File

@@ -1,12 +0,0 @@
{
"page": {
"actions": {
"testing": "Testing..."
},
"empty": "No unlock test items",
"messages": {
"detectionTimeout": "Detection timeout or failed"
},
"title": "Unlock Test"
}
}

View File

@@ -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;

View File

@@ -36,5 +36,17 @@
"unsupportedRegion": "サポートされていない国/地域",
"failedNetwork": "Failed (Network Connection)"
}
},
"unlock": {
"page": {
"actions": {
"testing": "テスト中..."
},
"empty": "アンロックテスト項目はありません",
"messages": {
"detectionTimeout": "Detection timeout or failed"
},
"title": "ロック解除テスト"
}
}
}

View File

@@ -1,12 +0,0 @@
{
"page": {
"actions": {
"testing": "テスト中..."
},
"empty": "アンロックテスト項目はありません",
"messages": {
"detectionTimeout": "Detection timeout or failed"
},
"title": "ロック解除テスト"
}
}

View File

@@ -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;

View File

@@ -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"
}
}
}

View File

@@ -1,12 +0,0 @@
{
"page": {
"actions": {
"testing": "테스트 중..."
},
"empty": "No unlock test items",
"messages": {
"detectionTimeout": "Detection timeout or failed"
},
"title": "Unlock Test"
}
}

View File

@@ -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;

View File

@@ -36,5 +36,17 @@
"unsupportedRegion": "Страна/регион не поддерживается",
"failedNetwork": "Ошибка подключения"
}
},
"unlock": {
"page": {
"actions": {
"testing": "Тестирование ..."
},
"empty": "No unlock test items",
"messages": {
"detectionTimeout": "Detection timeout or failed"
},
"title": "Тест доступности веб-сайтов"
}
}
}

View File

@@ -1,12 +0,0 @@
{
"page": {
"actions": {
"testing": "Тестирование ..."
},
"empty": "No unlock test items",
"messages": {
"detectionTimeout": "Detection timeout or failed"
},
"title": "Тест доступности веб-сайтов"
}
}

View File

@@ -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;

View File

@@ -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"
}
}
}

View File

@@ -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"
}
}

View File

@@ -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;

View File

@@ -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"
}
}
}

View File

@@ -1,12 +0,0 @@
{
"page": {
"actions": {
"testing": "Testing..."
},
"empty": "No unlock test items",
"messages": {
"detectionTimeout": "Detection timeout or failed"
},
"title": "Unlock Test"
}
}

View File

@@ -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;

View File

@@ -36,5 +36,17 @@
"unsupportedRegion": "不支持的国家/地区",
"failedNetwork": "测试失败(网络连接问题)"
}
},
"unlock": {
"page": {
"actions": {
"testing": "测试中..."
},
"empty": "暂无解锁测试项目",
"messages": {
"detectionTimeout": "检测超时或失败"
},
"title": "解锁测试"
}
}
}

View File

@@ -1,12 +0,0 @@
{
"page": {
"actions": {
"testing": "测试中..."
},
"empty": "暂无解锁测试项目",
"messages": {
"detectionTimeout": "检测超时或失败"
},
"title": "解锁测试"
}
}

View File

@@ -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;

View File

@@ -36,5 +36,17 @@
"unsupportedRegion": "不支援的國家/地區",
"failedNetwork": "測試失敗(網路連線問題)"
}
},
"unlock": {
"page": {
"actions": {
"testing": "測試中..."
},
"empty": "目前沒有解鎖測試項目",
"messages": {
"detectionTimeout": "檢測逾時或失敗"
},
"title": "解鎖測試"
}
}
}

View File

@@ -1,12 +0,0 @@
{
"page": {
"actions": {
"testing": "測試中..."
},
"empty": "目前沒有解鎖測試項目",
"messages": {
"detectionTimeout": "檢測逾時或失敗"
},
"title": "解鎖測試"
}
}

View File

@@ -163,7 +163,8 @@ const UnlockPage = () => {
invoke<T>(cmd, args),
new Promise<T>((_, 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 (
<BasePage
title={t("unlock.page.title")}
title={t("tests.unlock.page.title")}
header={
<Box sx={{ display: "flex", alignItems: "center", gap: 1 }}>
<Button
@@ -280,7 +281,7 @@ const UnlockPage = () => {
}
>
{isCheckingAll
? t("unlock.page.actions.testing")
? t("tests.unlock.page.actions.testing")
: t("tests.page.actions.testAll")}
</Button>
</Box>
@@ -295,7 +296,7 @@ const UnlockPage = () => {
height: "50%",
}}
>
<BaseEmpty textKey="unlock.page.empty" />
<BaseEmpty textKey="tests.unlock.page.empty" />
</Box>
) : (
<Grid container spacing={1.5} columns={{ xs: 1, sm: 2, md: 3 }}>