Language Switch

<sw-language-switch>

ready
Renders a language switcher.

Usage

<sw-language-switch></sw-language-info>

Component properties

Property name Type Default
disabled Boolean false
changeGlobalLanguage Boolean true
abortChangeFunction Function
saveChangesFunction Function

Methods

Method name Parameters
createdComponent No parameters
destroyedComponent No parameters
onInput No parameters
checkAbort No parameters
emitChange No parameters
onCloseChangesModal No parameters
onClickSaveChanges No parameters
onClickRevertUnsavedChanges No parameters
changeToNewLanguage languageId

Imports

  • ./sw-language-switch.html.twig
  • ./sw-language-switch.scss

Twig blocks

  • sw_language_switch_message
  • sw_language_switch_footer_button_close
  • sw_language_switch_footer_button_revert
  • sw_language_switch_footer_button_save
  • sw_language_switch_footer
  • sw_language_switch_modal
  • sw_language_switch_select
  • sw_language_switch