Skip to content

MultilingualField

Edit translations for all four national languages with character counts and per-language form values.

alpina-ui/swiss/multilingual-field

Interactive preview

Exhibition title
19 characters · Complete

Usage notes

Use name to submit translations as title[de], title[fr], title[it] and title[rm]. includeEnglish adds English. Select variant=textarea for long copy or layout=columns to compare translations. Copy fills an empty language from sourceLanguage.

When to use

Edit several translations of the same title or description and see which languages still need text.

When to avoid

Use LocaleSelect when only the language of the interface changes.

Accessibility

Keep each field associated with its language and label. Test moving between languages by keyboard and announcing completion independently of colour.

Keys
KeyAction
← / →Switch the active language while a language tab has focus.
Home / EndFocus the first or last language tab.
Tab / Shift+TabMove between the editor and its available actions.
Enter / SpaceCopy the source text using the button in an empty translation.

Content

Write one source phrase per field. Agree a length budget in each language and review the copied wording before publishing.

Use
Publication title · Français
Avoid
Translation 2

Copy in four languages

German
Titel der Publikation21 characters
French
Titre de la publication23 characters
Italian
Titolo della pubblicazione26 characters
Romansh
Titel da la publicaziun23 characters
Add to your project
npx --no-install alpina add multilingual-field