Skip to content

LocaleSelect

Choose one of Switzerland’s four national languages.

alpina-ui/swiss/locale-select

Interactive preview

Neighbourhood office

Correspondence

SalutationBuongiornoit-CH

Usage notes

An empty language list disables the selector. Available languages retain caller-defined order, endonyms and language attributes.

When to use

Let a person switch the language of an application or a specific form using language names in their own spelling.

When to avoid

Use MultilingualField for editing different translations of one piece of content.

Accessibility

Label the scope of the switch. After a page-wide change, update the document language and retain focus or restore it to an equivalent control.

Keys
KeyAction
Tab / Shift+TabFocus or leave a closed select.
Space / ↓Open the single-choice picker.
↑ / ↓Move through enabled options in the open picker.
Home / EndMove to the first or last enabled option in the open picker.
TypeFind an option by its label in the open picker.
EnterConfirm the highlighted option and return focus to the select.
EscapeClose the picker and keep the previously selected value.

Content

Use the language’s own name as its option. Keep the label to a noun phrase that says what will change.

Use
Form language
Avoid
Choose country flag

Copy in four languages

German
Formularsprache15 characters
French
Langue du formulaire20 characters
Italian
Lingua del modulo17 characters
Romansh
Lingua dal formular19 characters
Add to your project
npx --no-install alpina add locale-select