From cdfbb1c2d8ffb7bed4a68f2ea8fa351eb2f5991d Mon Sep 17 00:00:00 2001 From: Zakk Date: Fri, 18 Sep 2026 01:06:51 +1000 Subject: [PATCH] fix(gui): localize proxy-group strings, fit the DNS dialog on phones, allow zoom outboundGroupPanel had two hard-coded Chinese strings and a dead $t() || fallback (vue-i18n never returns a falsy value). zh.js lacked subscription.autoSelect, so the checkbox label fell back to English. The DNS dialog forced min-width: 680px, which beats max-width: 95vw and made the page scroll sideways on phones; cap it at the viewport and let the grid columns shrink. The viewport meta disabled pinch zoom. --- gui/index.html | 2 +- gui/src/components/modalDnsSetting.vue | 20 +++++++++++++++++++- gui/src/components/outboundGroupPanel.vue | 6 +++--- gui/src/locales/en.js | 1 + gui/src/locales/ko.js | 1 + gui/src/locales/zh.js | 2 ++ 6 files changed, 27 insertions(+), 5 deletions(-) diff --git a/gui/index.html b/gui/index.html index 1fd27671..7fa0da6e 100644 --- a/gui/index.html +++ b/gui/index.html @@ -3,7 +3,7 @@ - + v2rayA diff --git a/gui/src/components/modalDnsSetting.vue b/gui/src/components/modalDnsSetting.vue index 8455f66c..60a8bfe6 100644 --- a/gui/src/components/modalDnsSetting.vue +++ b/gui/src/components/modalDnsSetting.vue @@ -1,5 +1,5 @@ diff --git a/gui/src/locales/en.js b/gui/src/locales/en.js index 53d725c2..4e07d05a 100644 --- a/gui/src/locales/en.js +++ b/gui/src/locales/en.js @@ -390,6 +390,7 @@ export default { pickTitle: "Add to Proxy Group", pickMessage: "Choose the proxy group this node should join.", group: "Proxy Group", + searchNodes: "Search nodes...", }, log: { logModalTitle: "View logs", diff --git a/gui/src/locales/ko.js b/gui/src/locales/ko.js index 88302d50..45d2b9a0 100644 --- a/gui/src/locales/ko.js +++ b/gui/src/locales/ko.js @@ -397,6 +397,7 @@ export default { pickTitle: "프록시 그룹에 추가", pickMessage: "이 노드가 참여할 프록시 그룹을 선택하세요.", group: "프록시 그룹", + searchNodes: "노드 검색...", }, driver: { welcome: [ diff --git a/gui/src/locales/zh.js b/gui/src/locales/zh.js index c9942b4b..d9cdb44e 100644 --- a/gui/src/locales/zh.js +++ b/gui/src/locales/zh.js @@ -66,6 +66,7 @@ export default { timeLastUpdate: "上次更新时间", numberServers: "节点数", subscription: "订阅", + autoSelect: "订阅自动更新后自动连接其中的新节点", }, operations: { tproxyWhiteIpGroups: "直通白名单IP组", @@ -382,6 +383,7 @@ export default { pickTitle: "添加到代理分组", pickMessage: "选择要加入的代理分组。", group: "代理分组", + searchNodes: "搜索节点...", }, driver: { welcome: [