[PR #34] [CLOSED] feat(i18n): default to browser language and add login language toggle #70

Closed
opened 2026-02-27 16:42:25 +03:00 by kerem · 0 comments
Owner

📋 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: mainHead: feature/login-language-toggle


📝 Commits (2)

  • 643e9e6 feat(i18n): default to browser language and add login language toggle
  • 9af165d refactor(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.

## 📋 Pull Request Information **Original PR:** https://github.com/router-for-me/Cli-Proxy-API-Management-Center/pull/34 **Author:** [@mvelbaum](https://github.com/mvelbaum) **Created:** 12/28/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feature/login-language-toggle` --- ### 📝 Commits (2) - [`643e9e6`](https://github.com/router-for-me/Cli-Proxy-API-Management-Center/commit/643e9e609e103fc2b495aa1b977ad7d7b7aecb83) feat(i18n): default to browser language and add login language toggle - [`9af165d`](https://github.com/router-for-me/Cli-Proxy-API-Management-Center/commit/9af165de4259fec669814fd7d21b3fcf0a29d925) refactor(i18n): centralize language validation ### 📊 Changes **4 files changed** (+96 additions, -26 deletions) <details> <summary>View changed files</summary> 📝 `src/i18n/index.ts` (+60 -2) 📝 `src/pages/LoginPage.tsx` (+9 -3) 📝 `src/stores/useLanguageStore.ts` (+22 -21) 📝 `src/styles/layout.scss` (+5 -0) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 16:42:25 +03: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
starred/Cli-Proxy-API-Management-Center#70
No description provided.