mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #7044] [MERGED] fix(sub): map single-bracket UI tokens and clarify host remark hint #6597
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#6597
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/7044
Author: @DoctorGuidance
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @MHSanaei
Base:
main← Head:fix/sub-ui-tokens-host-remark📝 Commits (3)
7d2f454fix(sub): map single-bracket UI tokens and clarify host remark hint99c39d4Merge remote-tracking branch 'origin/main' into pr/7044c9d375ffix(sub): keep the single-brace token list as it was📊 Changes
14 files changed (+14 additions, -14 deletions)
View changed files
📝
internal/web/translation/ar-EG.json(+1 -1)📝
internal/web/translation/en-US.json(+1 -1)📝
internal/web/translation/es-ES.json(+1 -1)📝
internal/web/translation/fa-IR.json(+1 -1)📝
internal/web/translation/id-ID.json(+1 -1)📝
internal/web/translation/ja-JP.json(+1 -1)📝
internal/web/translation/pt-BR.json(+1 -1)📝
internal/web/translation/ru-RU.json(+1 -1)📝
internal/web/translation/sk-SK.json(+1 -1)📝
internal/web/translation/tr-TR.json(+1 -1)📝
internal/web/translation/uk-UA.json(+1 -1)📝
internal/web/translation/vi-VN.json(+1 -1)📝
internal/web/translation/zh-CN.json(+1 -1)📝
internal/web/translation/zh-TW.json(+1 -1)📄 Description
Summary
This PR addresses two closely related issues regarding subscription template token expansion and host remark documentation:
Map Missing Single-Bracket Tokens in
uiTokenMap:uiTokenMapininternal/sub/remark_vars.gopreviously only mapped 13 tokens. Operator-facing single-bracket tokens such as{HOST},{INBOUND},{ID},{SHORT_ID},{TELEGRAM_ID},{SUB_ID},{COMMENT},{STATUS},{EXPIRE_UNIX},{CREATED_UNIX},{TRAFFIC_*}bytes/totals,{UP},{DOWN},{RESET_DAYS},{RESET_DAY}, and{USERNAME}were not included. As a result, when operators wrote{HOST}or{INBOUND}in their remark fields, they remained unexpanded in single brackets. All supported tokens fromremarkVarValueare now mapped.Clarify
pages.hosts.hints.remarkAcross All 14 Locales:The hint tooltip in
pages.hosts.hints.remarkpreviously stated:Related Issues
Testing
{HOST}and{INBOUND}single-bracket translations inTestTranslateUISingleBracketsandTestExpandRemarkVars_SingleBracketUI.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
[PR #7044] fix(sub): map single-bracket UI tokens and clarify host remark hintto [PR #7044] [MERGED] fix(sub): map single-bracket UI tokens and clarify host remark hint