ms.languages

This widget is used to manage the languages of the store. Here you can get the list of all the languages enabled in your store and apply one of the languages in the store.


Variables

languagesIt provides the list of all the languages enabled in the store from admin panel.
baseLanguageIt provides the current language or initially default language set in your store.

Methods

setLanguageThis is used to set or change the language in the store from the storefront. You need to pass "selected_language" as the parameter in the setLanguage(selected_language).