[PR #4386] [MERGED] fix: add i18n translations for Allow private address node option across all locales #5679

Closed
opened 2026-11-02 04:03:16 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/4386
Author: @abdalrahmanx9
Created: 5/14/2026
Status: ✅ Merged
Merged: 5/15/2026
Merged by: @MHSanaei

Base: main ← Head: fix/chinese-locale-allow-private-address


📝 Commits (2)

  • 959e4f3 fix: add Chinese locale translations for Allow private address node option
  • 49aa999 fix: add Allow private address translations to all remaining locale files

📊 Changes

14 files changed (+28 additions, -2 deletions)

View changed files

📝 frontend/src/pages/nodes/NodeFormModal.vue (+2 -2)
📝 web/translation/ar-EG.json (+2 -0)
📝 web/translation/en-US.json (+2 -0)
📝 web/translation/es-ES.json (+2 -0)
📝 web/translation/fa-IR.json (+2 -0)
📝 web/translation/id-ID.json (+2 -0)
📝 web/translation/ja-JP.json (+2 -0)
📝 web/translation/pt-BR.json (+2 -0)
📝 web/translation/ru-RU.json (+2 -0)
📝 web/translation/tr-TR.json (+2 -0)
📝 web/translation/uk-UA.json (+2 -0)
📝 web/translation/vi-VN.json (+2 -0)
📝 web/translation/zh-CN.json (+2 -0)
📝 web/translation/zh-TW.json (+2 -0)

📄 Description

Add Chinese localization for "Allow private address" node option

Closes #4378

The "Allow private address" switch and its hint text on the node
form modal were hardcoded in English. This PR:

  • Replaces the hardcoded English strings with t() i18n calls
  • Adds English source keys to en-US.json (fallback locale)
  • Adds Simplified Chinese (zh-CN) translations
  • Adds Traditional Chinese (zh-TW) translations

Other locales fall back to English via vue-i18n's fallbackLocale setting.

Files changed

  • frontend/src/pages/nodes/NodeFormModal.vue
  • web/translation/en-US.json
  • web/translation/zh-CN.json
  • web/translation/zh-TW.json

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/4386 **Author:** [@abdalrahmanx9](https://github.com/abdalrahmanx9) **Created:** 5/14/2026 **Status:** ✅ Merged **Merged:** 5/15/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `fix/chinese-locale-allow-private-address` --- ### 📝 Commits (2) - [`959e4f3`](https://github.com/MHSanaei/3x-ui/commit/959e4f36c97dedd7ec45f21e35bb4805fe9a6c4f) fix: add Chinese locale translations for Allow private address node option - [`49aa999`](https://github.com/MHSanaei/3x-ui/commit/49aa9995bb7e5a7ea1ccd4e0d79e1a3213bc431c) fix: add Allow private address translations to all remaining locale files ### 📊 Changes **14 files changed** (+28 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/pages/nodes/NodeFormModal.vue` (+2 -2) 📝 `web/translation/ar-EG.json` (+2 -0) 📝 `web/translation/en-US.json` (+2 -0) 📝 `web/translation/es-ES.json` (+2 -0) 📝 `web/translation/fa-IR.json` (+2 -0) 📝 `web/translation/id-ID.json` (+2 -0) 📝 `web/translation/ja-JP.json` (+2 -0) 📝 `web/translation/pt-BR.json` (+2 -0) 📝 `web/translation/ru-RU.json` (+2 -0) 📝 `web/translation/tr-TR.json` (+2 -0) 📝 `web/translation/uk-UA.json` (+2 -0) 📝 `web/translation/vi-VN.json` (+2 -0) 📝 `web/translation/zh-CN.json` (+2 -0) 📝 `web/translation/zh-TW.json` (+2 -0) </details> ### 📄 Description ## Add Chinese localization for "Allow private address" node option Closes #4378 The "Allow private address" switch and its hint text on the node form modal were hardcoded in English. This PR: - Replaces the hardcoded English strings with `t()` i18n calls - Adds English source keys to en-US.json (fallback locale) - Adds Simplified Chinese (zh-CN) translations - Adds Traditional Chinese (zh-TW) translations Other locales fall back to English via vue-i18n's fallbackLocale setting. ### Files changed - `frontend/src/pages/nodes/NodeFormModal.vue` - `web/translation/en-US.json` - `web/translation/zh-CN.json` - `web/translation/zh-TW.json` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:03:16 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5679
No description provided.