The user's URL options should (must!) override the brand-local request.

This commit is contained in:
Ken Sternberg 2024-01-09 11:12:23 -08:00
parent 058cdc5180
commit 3aae23e23f
1 changed files with 1 additions and 1 deletions

View File

@ -47,8 +47,8 @@ const isLocaleCandidate = (v: unknown): v is string =>
export function autoDetectLanguage(requestedCode?: string): string {
const localeCandidates: string[] = [
globalAK()?.locale ?? TOMBSTONE,
localeCodeFromUrl("locale"),
globalAK()?.locale ?? TOMBSTONE,
requestedCode ?? TOMBSTONE,
window.navigator?.language ?? TOMBSTONE,
DEFAULT_LOCALE,