Răsfoiți Sursa

fix(i18n): localize Chinese Xray labels (#6202)

* fix(i18n): localize Traditional Chinese Xray labels

Several navigation, outbound, balancer, VPN, and DNS labels still displayed their English source text in the zh-TW interface. Translate the non-protocol labels while retaining established Xray terminology.

* fix(i18n): localize Simplified Chinese Xray labels

Mirror the reviewed Xray UI coverage in zh-CN so the same labels no longer fall back to English there.

Signed-off-by: 陳廷安 <[email protected]>

---------

Signed-off-by: 陳廷安 <[email protected]>
Co-authored-by: Sanaei <[email protected]>
Chen, Ting-An 3 ore în urmă
părinte
comite
69a8237581
2 a modificat fișierele cu 17 adăugiri și 17 ștergeri
  1. 8 8
      internal/web/translation/zh-CN.json
  2. 9 9
      internal/web/translation/zh-TW.json

+ 8 - 8
internal/web/translation/zh-CN.json

@@ -1503,8 +1503,8 @@
       },
       "outbound": {
         "tag": "标签",
-        "egress": "Egress",
-        "egressHint": "Run an HTTP test to show egress IP and country.",
+        "egress": "出口",
+        "egressHint": "执行 HTTP 测试以显示出口 IP 和所在国家/地区。",
         "outboundStatus": "出站状态",
         "sendThrough": "发送通过",
         "targetStrategy": "目标解析策略",
@@ -1607,14 +1607,14 @@
         "tagDuplicate": "该标签已被其他均衡器使用",
         "tagPlaceholder": "唯一均衡器标签",
         "selector": "选择器",
-        "fallback": "Fallback",
+        "fallback": "备用负载均衡器",
         "cycleTooltip": "循环: {path} → (回到 {start})",
         "expected": "期望",
         "expectedPlaceholder": "最佳节点数",
         "maxRtt": "最大 RTT",
         "tolerance": "容差",
-        "baselines": "Baselines",
-        "costs": "Costs",
+        "baselines": "基准值",
+        "costs": "成本设置",
         "costMatch": "标签匹配模式",
         "costValue": "权重",
         "costRegexp": "正则表达式匹配",
@@ -1635,7 +1635,7 @@
         "userLevel": "用户级别"
       },
       "nord": {
-        "accessToken": "Access token",
+        "accessToken": "访问令牌",
         "privateKey": "私钥",
         "noServers": "未找到选定国家/地区的服务器",
         "noPublicKey": "选定的服务器未公布 NordLynx 公钥。",
@@ -1651,7 +1651,7 @@
         "licenseError": "设置 WARP 许可证失败。",
         "fetchFirst": "请先获取 WARP 配置。",
         "createAccount": "创建 WARP 账户",
-        "accessToken": "Access token",
+        "accessToken": "访问令牌",
         "deviceId": "设备 ID",
         "licenseKey": "许可证密钥",
         "privateKey": "私钥",
@@ -1702,7 +1702,7 @@
         "timeoutMs": "超时 (毫秒)",
         "skipFallback": "跳过回退",
         "finalQuery": "最终查询",
-        "hosts": "Hosts",
+        "hosts": "主机映射",
         "hostsAdd": "添加 Host",
         "hostsEmpty": "未定义任何 Host",
         "hostsDomain": "域名 (例如 domain:example.com)",

+ 9 - 9
internal/web/translation/zh-TW.json

@@ -107,7 +107,7 @@
     "outbounds": "出站",
     "apiDocs": "API 文件",
     "donate": "捐贈",
-    "hosts": "Hosts",
+    "hosts": "主機",
     "docs": "文件",
     "openMenu": "開啟選單",
     "pinSidebar": "固定側邊欄",
@@ -1503,8 +1503,8 @@
       },
       "outbound": {
         "tag": "標籤",
-        "egress": "Egress",
-        "egressHint": "Run an HTTP test to show egress IP and country.",
+        "egress": "出口",
+        "egressHint": "執行 HTTP 測試以顯示出口 IP 與所在國家/地區。",
         "outboundStatus": "出站狀態",
         "sendThrough": "傳送通過",
         "targetStrategy": "目標解析策略",
@@ -1607,14 +1607,14 @@
         "tagDuplicate": "該標籤已被其他均衡器使用",
         "tagPlaceholder": "唯一均衡器標籤",
         "selector": "選擇器",
-        "fallback": "Fallback",
+        "fallback": "備用負載平衡器",
         "cycleTooltip": "循環: {path} → (回到 {start})",
         "expected": "期望",
         "expectedPlaceholder": "最佳節點數",
         "maxRtt": "最大 RTT",
         "tolerance": "容差",
-        "baselines": "Baselines",
-        "costs": "Costs",
+        "baselines": "基準值",
+        "costs": "成本設定",
         "costMatch": "標籤比對模式",
         "costValue": "權重",
         "costRegexp": "正規表示式比對",
@@ -1635,7 +1635,7 @@
         "userLevel": "用戶級別"
       },
       "nord": {
-        "accessToken": "Access token",
+        "accessToken": "存取權杖",
         "privateKey": "私鑰",
         "noServers": "未找到選定國家/地區的伺服器",
         "noPublicKey": "選定的伺服器未公布 NordLynx 公鑰。",
@@ -1651,7 +1651,7 @@
         "licenseError": "設定 WARP 授權失敗。",
         "fetchFirst": "請先取得 WARP 設定。",
         "createAccount": "建立 WARP 帳號",
-        "accessToken": "Access token",
+        "accessToken": "存取權杖",
         "deviceId": "裝置 ID",
         "licenseKey": "授權金鑰",
         "privateKey": "私鑰",
@@ -1702,7 +1702,7 @@
         "timeoutMs": "逾時 (毫秒)",
         "skipFallback": "跳過回退",
         "finalQuery": "最終查詢",
-        "hosts": "Hosts",
+        "hosts": "主機對應",
         "hostsAdd": "新增 Host",
         "hostsEmpty": "未定義任何 Host",
         "hostsDomain": "網域 (例如 domain:example.com)",