LocaleSelect
Choose one of Switzerland’s four national languages.
alpina-ui/swiss/locale-selectNeighbourhood office
Correspondence
Salutationit-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.
| Key | Action |
|---|---|
| Tab / Shift+Tab | Focus or leave a closed select. |
| Space / ↓ | Open the single-choice picker. |
| ↑ / ↓ | Move through enabled options in the open picker. |
| Home / End | Move to the first or last enabled option in the open picker. |
| Type | Find an option by its label in the open picker. |
| Enter | Confirm the highlighted option and return focus to the select. |
| Escape | Close 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
npx --no-install alpina add locale-select