<div class="locale">
  <form class="locale-form">
    <label class="inline-block" for="locale-switcher">
      <%= t("layouts.header.locale") %>
    </label>
    <select class="js-location-changer locale-switcher inline-block" name="locale-switcher" id="locale-switcher">
      <% locales.map do |loc| %>
        <option <%= "selected" if loc == I18n.locale %>
                value="<%= current_path_with_query_params(locale: loc) %>"><%= name_for_locale(loc) %></option>
      <% end %>
    </select>
  </form>
</div>

<div class="locale">
  <form class="locale-form">
    <label class="inline-block" for="locale-switcher">
      <%= t("layouts.header.locale") %>
    </label>
    <select class="js-location-changer locale-switcher inline-block" name="locale-switcher" id="locale-switcher">
      <% locales.map do |loc| %>
        <option lang="<%= loc %>" <%= "selected" if loc == I18n.locale %>
                value="<%= current_path_with_query_params(locale: loc) %>"><%= name_for_locale(loc) %></option>
      <% end %>
    </select>
  </form>
</div>

Add a `lang` attribute to language options
Add a `lang` attribute to language options

I'm not sure screen readers recognize this attribute inside `<option>`
tags, but if they do, it'll probably be helpful. And if they don't, no
harm will be done.
