<%- content_for :title, t('project_name') %>

<div class="msg__container msg__container-language">
  <% I18n.available_locales.each do |l| %>
    <%= tag.h1 t('hello', locale: l), data: {locale: l} %>
  <% end %>

  <% I18n.available_locales.each do |l| %>
  <%= tag.div t('please_select_a_language_to_get_started', locale: l), data: {locale: l}  %>
  <% end %>

  <div class="form__container">
    <div class="language__selector-select">
      <%= select_tag :language, options_for_select(languages_for_select, accept_language), id: 'language_select' %>
    </div>
    <button type="button" class="button__base" id="confirm_btn">
      <% I18n.available_locales.each do |l| %>
        <%= tag.span t('confirm', locale: l), data: {locale: l} %>
      <% end %>
    </button>
  </div>
</div>