mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6394] [MERGED] fix(frontend): isolate subscription language preference #6247
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#6247
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/6394
Author: @dawNotPoi
Created: 9/3/2026
Status: ✅ Merged
Merged: 9/3/2026
Merged by: @MHSanaei
Base:
main← Head:fix/6386-subscription-language-cookie📝 Commits (2)
bda80c4fix(frontend): isolate subscription language preference3b1f1bdfix(frontend): defer date locale resolution📊 Changes
5 files changed (+95 additions, -23 deletions)
View changed files
📝
frontend/src/entries/subpage.tsx(+1 -1)📝
frontend/src/i18n/react.ts(+9 -8)📝
frontend/src/pages/sub/SubPage.tsx(+7 -5)➕
frontend/src/test/language-scope.test.ts(+52 -0)📝
frontend/src/utils/index.ts(+26 -9)📄 Description
Summary
Keep the public subscription page's language preference separate from the panel and login preference.
langcookie for panel and login pages.subLang, with a one-time migration from a valid existinglangvalue.Closes #6386
Type of change
Areas affected
How has this been tested?
npx vitest run --project unit src/test/language-scope.test.tsnpm run typecheckoxlintandoxfmt --checknpx vite buildScreenshots / recordings
N/A — this changes preference persistence only and does not change layout or styling.
Breaking changes
None.
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.