What the person is doing
Users may arrive through search, shared links, bookmarks, redirects, browser language negotiation, account preferences, device locale, or location hints.
Foundation · lesson 4 of 12 · Personalization And Preference
Underlying principle: Preferences help a recurring task when the saved choice is visible, reversible, and scoped to the right person and device. Defaults should preserve a clear starting point.
Provide a visible language selector with native labels, current-language state, equivalent-content rules, explicit override persistence, programmatic language metadata, fallback handling, and task-context preservation.
Preferences help a recurring task when the saved choice is visible, reversible, and scoped to the right person and device. Defaults should preserve a clear starting point.
Users may arrive through search, shared links, bookmarks, redirects, browser language negotiation, account preferences, device locale, or location hints.
Provide a visible language selector with native labels, current-language state, equivalent-content rules, explicit override persistence, programmatic language metadata, fallback handling, and task-context preservation.
Default detected-language state with visible current language and manual override.
Which languages are equivalent for this exact page or task, and which are partial, missing, fallback, or machine-translated?
The selector names the current language and available alternatives in language labels users can recognize.
Users may arrive through search, shared links, bookmarks, redirects, browser language negotiation, account preferences, device locale, or location hints.
Open the working example, try its controls, and compare the behavior against the decision guidance.
Users may arrive through search, shared links, bookmarks, redirects, browser language negotiation, account preferences, device locale, or location hints.
Provide a visible language selector with native labels, current-language state, equivalent-content rules, explicit override persistence, programmatic language metadata, fallback handling, and task-context preservation.
Default detected-language state with visible current language and manual override.
Flag-only choices confuse language with nationality or region.
Identify the default page language with the document lang attribute after selection.
U.S. Web Design System - checked
Supports language-selector variants, equivalent content expectations, visible labels, lang attributes, contrast, and list semantics.
W3C Internationalization - checked
Supports visible manual override and sticky explicit language choice alongside automatic negotiation.
W3C WAI - checked
Supports programmatic page-language identification after language selection.
W3C WAI - checked
Supports language attributes for alternate-language labels and mixed-language content.
MDN Web Docs - checked
Supports treating browser language as a hint rather than overriding explicit user choice.
Source trail checked: