function randomLocale(language) {
  var choices = LOCALES.slice(0);

  if (language) {
    choices = choices.filter(function (locale) {