Languages Selector

API Reference vce-languages-selector

HTML Attributes API

Name Description Type Required Default value
available-languages Array of IETF language codes String Array []
master IETF code of the master language string ''
selected IETF code of the currently selected language string ''

Events

Event Description Returns
language-change Called on language select.
event.detail contains the changed IETF code of the selected language.
{bubbles: true, detail: value}
analytics Called on language select.
event.detail contains the event action and event label for Google Analytics.
 {
  detail: { eventAction: string, eventLabel:string }
  bubbles: true
}