[PR #9998] fix(app): respect navigator.languages priority for locale (#9996) #13294

Open
opened 2026-02-16 18:18:09 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/9998

State: open
Merged: No


What does this PR do?

Resolves #9996. English locale detection in the web UI could fall through to a later supported locale (ru/fr/etc) even when navigator.languages prefers en*, because en was not explicitly matched.

How did you verify your code works?

Verification:

  • Started API server: bun dev serve
  • Started app dev server: bun run --cwd packages/app dev
  • Confirmed navigator.languages like ['en-US','en-GB','nl','fr'] resolves to English.
  • Manually tested in Chrome 143.0.7499.194, Safari 26.2, and Firefox 148.0b2.
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/9998 **State:** open **Merged:** No --- ### What does this PR do? Resolves #9996. English locale detection in the web UI could fall through to a later supported locale (ru/fr/etc) even when `navigator.languages` prefers `en*`, because `en` was not explicitly matched. ### How did you verify your code works? Verification: - Started API server: `bun dev serve` - Started app dev server: `bun run --cwd packages/app dev` - Confirmed `navigator.languages` like ['en-US','en-GB','nl','fr'] resolves to English. - Manually tested in Chrome 143.0.7499.194, Safari 26.2, and Firefox 148.0b2.
yindo added the pull-request label 2026-02-16 18:18:09 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13294