<%= tag.div class: 'field' do %>
  <div>
    <%= f.label attr, local_assigns[:label], for: nil, class: 'i18n__label' unless local_assigns[:skip_label] %>
  </div>

  <div>
    <%- available_locales.each do |locale| %>
      <%- i18n_attr = "#{attr}_#{locale}" -%>
      <%= f.label i18n_attr, class: "input-box i18n__input i18n__input-#{locale}" do %>    
        
        <%= f.select i18n_attr,
              choices[locale],               
              { 
                include_blank: local_assigns[:include_blank].nil? ? true : local_assigns[:include_blank],
                multiple: local_assigns[:multiple]
              },
              { data: { 
                  controller: 'select', 
                  tags: local_assigns[:tags]
                } 
              } %>   
      <% end %>

      <%- f.object.errors.full_messages_for(i18n_attr).uniq.each do |msg| -%>
        <%= content_tag :p, msg, role: 'alert' %>
      <% end %>
    <% end %>  


   
  </div>  
<%- end -%>
