The user's URL options should (must!) override the brand-local request.
This commit is contained in:
parent
058cdc5180
commit
3aae23e23f
|
@ -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,
|
||||
|
|
Reference in New Issue