[PR #2987] [MERGED] chore: toasts translation refactoring #5318

Closed
opened 2026-10-31 20:46:10 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/2987
Author: @sh1shd
Created: 5/9/2025
Status: ✅ Merged
Merged: 5/9/2025
Merged by: @sh1shd

Base: main ← Head: refactor/refactor


📝 Commits (3)

  • 801cfd8 chore: toasts translation refactoring
  • 44e5edd chore: add toast for successful change admin credentials
  • 902c94d Merge branch 'main' into refactor/refactor

📊 Changes

20 files changed (+536 additions, -132 deletions)

View changed files

📝 web/controller/inbound.go (+33 -33)
📝 web/controller/server.go (+10 -10)
📝 web/controller/setting.go (+3 -3)
📝 web/controller/util.go (+2 -2)
📝 web/controller/xray_setting.go (+2 -2)
📝 web/html/inbounds.html (+2 -2)
📝 web/html/modals/warp_modal.html (+2 -2)
📝 web/translation/translate.ar_EG.toml (+37 -6)
📝 web/translation/translate.en_US.toml (+37 -7)
📝 web/translation/translate.es_ES.toml (+37 -6)
📝 web/translation/translate.fa_IR.toml (+37 -6)
📝 web/translation/translate.id_ID.toml (+37 -6)
📝 web/translation/translate.ja_JP.toml (+37 -6)
📝 web/translation/translate.pt_BR.toml (+37 -6)
📝 web/translation/translate.ru_RU.toml (+38 -7)
📝 web/translation/translate.tr_TR.toml (+37 -6)
📝 web/translation/translate.uk_UA.toml (+37 -6)
📝 web/translation/translate.vi_VN.toml (+37 -6)
📝 web/translation/translate.zh_CN.toml (+37 -6)
📝 web/translation/translate.zh_TW.toml (+37 -4)

📄 Description

What is the pull request?

This pull request refactors the translation logic in toast.

Previously, a message about the success of something was done as follows: “action” (create, restart panel) + ‘Successfully/Error’.
Now these messages are translated separately

Also this pull request adds missing translations (reset client traffic, xray restart message and etc.)

Which part of the application is affected by the change?

  • Frontend
  • Backend

Type of Changes

  • Bug fix
  • New feature
  • Refactoring
  • Other

Screenshots

Before After
image image
image image

🔄 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/2987 **Author:** [@sh1shd](https://github.com/sh1shd) **Created:** 5/9/2025 **Status:** ✅ Merged **Merged:** 5/9/2025 **Merged by:** [@sh1shd](https://github.com/sh1shd) **Base:** `main` ← **Head:** `refactor/refactor` --- ### 📝 Commits (3) - [`801cfd8`](https://github.com/MHSanaei/3x-ui/commit/801cfd86b3eff5d86ce46872b741192b98c5753c) chore: toasts translation refactoring - [`44e5edd`](https://github.com/MHSanaei/3x-ui/commit/44e5eddf8644fa60a5db97563b287e869999aae7) chore: add toast for successful change admin credentials - [`902c94d`](https://github.com/MHSanaei/3x-ui/commit/902c94d8429e3190492e23d1f9ac55ac3d68bd82) Merge branch 'main' into refactor/refactor ### 📊 Changes **20 files changed** (+536 additions, -132 deletions) <details> <summary>View changed files</summary> 📝 `web/controller/inbound.go` (+33 -33) 📝 `web/controller/server.go` (+10 -10) 📝 `web/controller/setting.go` (+3 -3) 📝 `web/controller/util.go` (+2 -2) 📝 `web/controller/xray_setting.go` (+2 -2) 📝 `web/html/inbounds.html` (+2 -2) 📝 `web/html/modals/warp_modal.html` (+2 -2) 📝 `web/translation/translate.ar_EG.toml` (+37 -6) 📝 `web/translation/translate.en_US.toml` (+37 -7) 📝 `web/translation/translate.es_ES.toml` (+37 -6) 📝 `web/translation/translate.fa_IR.toml` (+37 -6) 📝 `web/translation/translate.id_ID.toml` (+37 -6) 📝 `web/translation/translate.ja_JP.toml` (+37 -6) 📝 `web/translation/translate.pt_BR.toml` (+37 -6) 📝 `web/translation/translate.ru_RU.toml` (+38 -7) 📝 `web/translation/translate.tr_TR.toml` (+37 -6) 📝 `web/translation/translate.uk_UA.toml` (+37 -6) 📝 `web/translation/translate.vi_VN.toml` (+37 -6) 📝 `web/translation/translate.zh_CN.toml` (+37 -6) 📝 `web/translation/translate.zh_TW.toml` (+37 -4) </details> ### 📄 Description ## What is the pull request? This pull request refactors the translation logic in toast. Previously, a message about the success of something was done as follows: “action” (create, restart panel) + ‘Successfully/Error’. Now these messages are translated separately Also this pull request adds missing translations (reset client traffic, xray restart message and etc.) ## Which part of the application is affected by the change? - [x] Frontend - [X] Backend ## Type of Changes - [ ] Bug fix - [ ] New feature - [X] Refactoring - [ ] Other ## Screenshots | Before | After | | - | - | | ![image](https://github.com/user-attachments/assets/756e195f-b50c-40da-93f4-69b197eb69f9) | ![image](https://github.com/user-attachments/assets/92c84f09-8487-4d5f-8ca2-e251eef4185e) | | ![image](https://github.com/user-attachments/assets/98963769-9706-4292-b171-83bffa8a6464) | ![image](https://github.com/user-attachments/assets/d23a0c02-13dc-489f-a219-ec0298bb1586) | --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:46:10 +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#5318
No description provided.