From d521191e874279fd19269ba8ce62d93c25bc98ba Mon Sep 17 00:00:00 2001 From: IanShaw027 <131567472+IanShaw027@users.noreply.github.com> Date: Sat, 27 Dec 2025 20:11:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=E4=BF=AE=E5=A4=8Di18n?= =?UTF-8?q?=E7=BF=BB=E8=AF=91=E4=B8=AD=E7=9A=84Invalid=20linked=20format?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 问题: - admin/settings页面无法访问,报错'Invalid linked format' - vue-i18n解析器将{'@'}误认为链接格式语法 修复: - 将zh.ts和en.ts中的{'@'}替换为直接的@字符 - 影响范围:代理配置相关的翻译字符串 --- frontend/src/i18n/locales/en.ts | 4 ++-- frontend/src/i18n/locales/zh.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/i18n/locales/en.ts b/frontend/src/i18n/locales/en.ts index 3c3e2a93..6e185ef7 100644 --- a/frontend/src/i18n/locales/en.ts +++ b/frontend/src/i18n/locales/en.ts @@ -1172,9 +1172,9 @@ export default { batchAdd: 'Quick Add', batchInput: 'Proxy List', batchInputPlaceholder: - "Enter one proxy per line in the following formats:\nsocks5://user:pass{'@'}192.168.1.1:1080\nhttp://192.168.1.1:8080\nhttps://user:pass{'@'}proxy.example.com:443", + "Enter one proxy per line in the following formats:\nsocks5://user:pass@192.168.1.1:1080\nhttp://192.168.1.1:8080\nhttps://user:pass@proxy.example.com:443", batchInputHint: - "Supports http, https, socks5 protocols. Format: protocol://[user:pass{'@'}]host:port", + "Supports http, https, socks5 protocols. Format: protocol://[user:pass@]host:port", parsedCount: '{count} valid', invalidCount: '{count} invalid', duplicateCount: '{count} duplicate', diff --git a/frontend/src/i18n/locales/zh.ts b/frontend/src/i18n/locales/zh.ts index 50aa911b..5eac5307 100644 --- a/frontend/src/i18n/locales/zh.ts +++ b/frontend/src/i18n/locales/zh.ts @@ -1321,8 +1321,8 @@ export default { batchAdd: '快捷添加', batchInput: '代理列表', batchInputPlaceholder: - "每行输入一个代理,支持以下格式:\nsocks5://user:pass{'@'}192.168.1.1:1080\nhttp://192.168.1.1:8080\nhttps://user:pass{'@'}proxy.example.com:443", - batchInputHint: "支持 http、https、socks5 协议,格式:协议://[用户名:密码{'@'}]主机:端口", + "每行输入一个代理,支持以下格式:\nsocks5://user:pass@192.168.1.1:1080\nhttp://192.168.1.1:8080\nhttps://user:pass@proxy.example.com:443", + batchInputHint: "支持 http、https、socks5 协议,格式:协议://[用户名:密码@]主机:端口", parsedCount: '有效 {count} 个', invalidCount: '无效 {count} 个', duplicateCount: '重复 {count} 个',