scripts/index.js
/**
 * Update language-select value and trigger a change event
 * @param {String} lang
 */
Update language-select value and trigger a change event
@param {String} lang
Update language - select value and trigger a change event @param { String } lang
function changeLanguage(lang) {
    settings.languageCode = lang;
    $("#language-select").val(settings.languageCode);
    $("#language-select")[0].dispatchEvent(new Event("change"));
}
function changeLanguage ( lang ) { settings . languageCode = lang ; $ ( "#language-select" ) . val ( settings . languageCode ) ; $ ( "#language-select" ) [ 0 ] . dispatchEvent ( new Event ( "change" ) ) ; }
Update language-select value and trigger a change event
 @param {String} lang
Update language - select value and trigger a change event @param { String } lang
// Manually trigger change in language-select