function languageDropdown(languageSelect) {
  for(var langKey in langs) {
    const langOption = document.createElement("option");
    langOption.value = langKey;
    langOption.innerText = langs[langKey];
    languageSelect.appendChild(langOption);
  }
  languageSelect.value = "en";
}
/**
 * Builds the language dropdown for a given select box.
 *
 * @param {Element} languageSelect The select box to add elements to.
 */
Builds the language dropdown for a given select box.
@param {Element} languageSelect The select box to add elements to.
Builds the language dropdown for a given select box . @param { Element } languageSelect The select box to add elements to .
function languageDropdown(languageSelect) {
  for(var langKey in langs) {
    const langOption = document.createElement("option");
    langOption.value = langKey;
    langOption.innerText = langs[langKey];
    languageSelect.appendChild(langOption);
  }
  languageSelect.value = "en";
}
function languageDropdown ( languageSelect ) { for ( var langKey in langs ) { const langOption = document . createElement ( "option" ) ; langOption . value = langKey ; langOption . innerText = langs [ langKey ] ; languageSelect . appendChild ( langOption ) ; } languageSelect . value = "en" ; }
Builds the language dropdown for a given select box.
Builds the language dropdown for a given select box .