From 72177c2c50d6b34cf3486e52da114e5b68a2357d Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 25 Sep 2025 17:43:38 +0000 Subject: [PATCH] fix(i18n): nest common.changeLanguage under common object - Restructured the `common.changeLanguage` key to be nested under a `common` object in `en.json`, `fr.json`, and `zh.json`. - This change improves the organization of the translation files and aligns with best practices for i18next. --- web/src/i18n/locales/en.json | 4 +++- web/src/i18n/locales/fr.json | 6 ++++-- web/src/i18n/locales/zh.json | 4 +++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/web/src/i18n/locales/en.json b/web/src/i18n/locales/en.json index 7f2e89943..e18ea85a6 100644 --- a/web/src/i18n/locales/en.json +++ b/web/src/i18n/locales/en.json @@ -2130,5 +2130,7 @@ "域名黑名单": "Domain Blacklist", "白名单": "Whitelist", "黑名单": "Blacklist", - "common.changeLanguage": "Change Language" + "common": { + "changeLanguage": "Change Language" + } } diff --git a/web/src/i18n/locales/fr.json b/web/src/i18n/locales/fr.json index c739ed955..354ab6917 100644 --- a/web/src/i18n/locales/fr.json +++ b/web/src/i18n/locales/fr.json @@ -2127,11 +2127,13 @@ "白名单": "Liste blanche", "黑名单": "Liste noire", "切换语言": "Changer de langue", - "common.changeLanguage": "Changer de langue", "closeSidebar": "Fermer la barre latérale", "pricing": "Tarification", "language": "Langue", "关闭侧边栏": "Fermer la barre latérale", "定价": "Tarification", - "语言": "Langue" + "语言": "Langue", + "common": { + "changeLanguage": "Changer de langue" + } } \ No newline at end of file diff --git a/web/src/i18n/locales/zh.json b/web/src/i18n/locales/zh.json index e13bfc204..b423a7959 100644 --- a/web/src/i18n/locales/zh.json +++ b/web/src/i18n/locales/zh.json @@ -33,5 +33,7 @@ "输入端口后回车,如:80 或 8000-8999": "输入端口后回车,如:80 或 8000-8999", "更新SSRF防护设置": "更新SSRF防护设置", "域名IP过滤详细说明": "⚠️此功能为实验性选项,域名可能解析到多个 IPv4/IPv6 地址,若开启,请确保 IP 过滤列表覆盖这些地址,否则可能导致访问失败。", - "common.changeLanguage": "切换语言" + "common": { + "changeLanguage": "切换语言" + } }