This if can be replaced with `$select.val(curLocale);` after `entries.forEach`.