diff --git a/web/packages/authentik/src/elements/ak-locale-context/helpers.ts b/web/packages/authentik/src/elements/ak-locale-context/helpers.ts index 51ef76509..a50271a17 100644 --- a/web/packages/authentik/src/elements/ak-locale-context/helpers.ts +++ b/web/packages/authentik/src/elements/ak-locale-context/helpers.ts @@ -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,