Get current language of storefront. The function is available as soon as Ecwid store starts to load.
var lang = Ecwid.getStorefrontLang();
console.log(lang);
//prints
// "en"
Subscribe to the Ecwid.OnAPILoaded
JS API event to ensure availability of this function.