Skip to content
Language dialog, light
Light
Language dialog, dark
Dark

Every state

  • Language dialog, default, light
    Language dialog, default, dark

    default

  • Language dialog, hover, light
    Language dialog, hover, dark

    hover

  • Language dialog, focus, light
    Language dialog, focus, dark

    focus

  • Language dialog, other-language, light
    Language dialog, other-language, dark

    other-language

  • Language dialog, open, light
    Language dialog, open, dark

    open

  • Language dialog, focus-option, light
    Language dialog, focus-option, dark

    focus-option

  • Language dialog, hover-option, light
    Language dialog, hover-option, dark

    hover-option

Props

PropTypeDefaultWhat it does
languagesLocalePickerLanguage[][ { code: "en", ownName: "English", name: null, href: "/en/" }, { code: "nl", ownName: "Nederlands", name: "Dutch", h…Languages.
currentstring"en"Code of the language the page is in; it is marked and named on the button.
titlestring"Choose your language"Title text.
introstring | null"The shop, prices and delivery stay the same."A line under the title. Null or left out: no line.
buttonLabelstring"Language:"Accessible name of the button, before the current language ("Language:").
closeLabelstring"Close"Close label.
defaultOpenboolean–Open the dialog on mount (previews, a first visit).
onSelect(language: LocalePickerLanguage) => void–Called with the chosen language before the link is followed.
classNamestring–Extra classes on the outer element.

More locale pickers

All 4
locale-picker-02 is in UI ProGet UI Pro, €199

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans