Sha256: 5740b31949345303a6880030826ef2461f97a063bb19b51ee65af0d5a4582236

Contents?: true

Size: 718 Bytes

Versions: 4

Compression:

Stored size: 718 Bytes

Contents

<% available_locale_options_for_select = Spree.i18n_available_locales.map {
  [I18n.t('spree.i18n.this_file_language', locale: _1, default: _1.to_s, fallback: false), _1]
}.sort %>

<% if available_locale_options_for_select.size > 1 %>
  <%= form_tag(spree.admin_set_locale_path(format: :html), method: :put, style: "width: 100%;") do %>
    <label class="admin-navbar-selection admin-locale-selection">
      <i class="fa fa-globe fa-fw" title="<%= I18n.t('spree.choose_dashboard_locale') %>"></i>
      <select class="custom-select fullwidth" onchange="this.form.requestSubmit()">
        <%= options_for_select(available_locale_options_for_select, I18n.locale) %>
      </select>
    </label>
  <% end %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solidus_backend-4.4.2 app/views/spree/admin/shared/_locale_selection.html.erb
solidus_backend-4.4.1 app/views/spree/admin/shared/_locale_selection.html.erb
solidus_backend-4.4.0 app/views/spree/admin/shared/_locale_selection.html.erb
solidus_backend-4.3.4 app/views/spree/admin/shared/_locale_selection.html.erb