CMT Sites Documentation

Language Selector

Figma Component: 24680-458494

Last modified with commit 449aa34 on by Sara Deric.

A dropdown popover component that allows users to select their preferred language for viewing the website. Displays available language options with flag icons and language names. Appears in the header as a button showing current language and a globe icon.

Functional Documentation

RoleScenarioDescription
systemDisplay current language on buttonShows the current language code (e.g., "SI") and a globe icon on the language selector button in the header. Button styled as text-only variant.
systemOpen language popover on clickWhen user clicks the language button, displays a dropdown popover with list of available language options.
systemShow language options with flagsEach language option in the popover shows a flag icon and the language name in that language (e.g., "Slovenščina", "English").
systemClose popover after selectionWhen user selects a language from the popover, closes the dropdown and switches site language to selected option.
userSwitch languageUser clicks the language button in header, reviews available languages in the popover, and clicks their preferred language to switch the site content.
userView current languageUser can see which language is currently active by viewing the language code displayed on the language button (e.g., "SI" for Slovenščina).

Properties

Responsive (Variant)

ValueExample
Desktop
Mobile

Popover (Variant)

ValueExample
Other languages