Skip to content

Persist selected language for plain layout pages - #3244

Open
AlexAndBear wants to merge 3 commits into
mainfrom
fix/plain-layout-language-storage-fallback
Open

Persist selected language for plain layout pages#3244
AlexAndBear wants to merge 3 commits into
mainfrom
fix/plain-layout-language-storage-fallback

Conversation

@AlexAndBear

@AlexAndBear AlexAndBear commented Aug 27, 2026

Copy link
Copy Markdown
Member

Description

This fixes language fallback behavior for pages rendered via the plain layout when no user context is available.

The runtime now resolves the initial language in this order:

  1. user setting (applied when available and persisted)
  2. stored language from local storage
  3. browser language

This keeps the UI language stable on plain-layout pages such as /access-denied after users previously selected English.

Related Issue

  • Fixes N/A

How Has This Been Tested?

  • test environment: local development on macOS
  • test case 1: pnpm test:unit --run packages/web-runtime/tests/unit/helpers/language.spec.ts packages/web-runtime/tests/unit/container/bootstrap.spec.ts packages/web-runtime/tests/unit/pages/account/accountPreferences.spec.ts
  • test case 2: pnpm exec eslint packages/web-runtime/src/helpers/language.ts packages/web-runtime/src/container/bootstrap.ts packages/web-runtime/tests/unit/helpers/language.spec.ts
  • test case 3: verified helper behavior for stored-vs-browser language fallback via unit tests

Types of changes

  • Bugfix
  • Enhancement (a change that does not break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear AlexAndBear self-assigned this Aug 27, 2026
@github-project-automation github-project-automation Bot moved this to Qualification in OpenCloud Team Board Aug 27, 2026
@AlexAndBear AlexAndBear moved this from Qualification to In Progress in OpenCloud Team Board Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

1 participant