mirror of
https://github.com/router-for-me/Cli-Proxy-API-Management-Center.git
synced 2026-04-25 23:56:00 +03:00
[PR #34] [CLOSED] feat(i18n): default to browser language and add login language toggle #70
Labels
No labels
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Cli-Proxy-API-Management-Center#70
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/router-for-me/Cli-Proxy-API-Management-Center/pull/34
Author: @mvelbaum
Created: 12/28/2025
Status: ❌ Closed
Base:
main← Head:feature/login-language-toggle📝 Commits (2)
643e9e6feat(i18n): default to browser language and add login language toggle9af165drefactor(i18n): centralize language validation📊 Changes
4 files changed (+96 additions, -26 deletions)
View changed files
📝
src/i18n/index.ts(+60 -2)📝
src/pages/LoginPage.tsx(+9 -3)📝
src/stores/useLanguageStore.ts(+22 -21)📝
src/styles/layout.scss(+5 -0)📄 Description
Fix initial locale selection by removing hard-coded zh-CN default. Use saved language (migrating legacy persisted format) or fall back to browser locale, and expose the language toggle on the login page.
This makes it so that the Login screen chooses the correct language by default, or at least has a language toggle button to switch.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.