function onSetLanguageCode() {
  var languageCode = $('#language-code').val() || null;
  try {
    auth.languageCode = languageCode;
    alertSuccess('Language code changed to "' + languageCode + '".');
  } catch (error) {
    alertError('Error: ' + error.code);
  }
}
function onSetLanguageCode() {
  var languageCode = $('#language-code').val() || null;
  try {
    auth.languageCode = languageCode;
    alertSuccess('Language code changed to "' + languageCode + '".');
  } catch (error) {
    alertError('Error: ' + error.code);
  }
}
function onSetLanguageCode ( ) { var languageCode = $ ( '#language-code' ) . val ( ) || null ; try { auth . languageCode = languageCode ; alertSuccess ( 'Language code changed to "' + languageCode + '".' ) ; } catch ( error ) { alertError ( 'Error: ' + error . code ) ; } }
Saves the new language code provided in the language code input field.
Saves the new language code provided in the language code input field .
Set the language code