

Every state


default


hover


focus


focus-stay


german


french
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| pageLanguage | string | "nl" | Code of the language the page is in ("nl"). |
| offers | Record<string, LocalePickerSuggestionOffer> | { en: { title: "Switch to English?", text: "This page is also in English, with the same prices and delivery.", switch… | What to say for each language the site has, keyed by BCP 47 code ("en", "de"). |
| suggest | string | null | "en" | The language offered on the server and first render (a guess from Accept-Language, or the demo). Null: no bar until the browser is read. |
| detect | boolean | true | Read navigator.languages after mounting and offer the best match. False: show `suggest` as given. |
| onDismiss | (offered: string) => void | – | Called when the visitor keeps the page's language, so you can stop asking. |
| onSwitch | (code: string) => void | – | Called with the language code before the switch link is followed. |
| className | string | – | Extra classes on the outer element. |
More locale pickers
All 4locale-picker-04 is in UI ProGet UI Pro, €199


