Sha256: 3c4e7973734b4cac38b810c29e4204451b2f3739c50fabc94bc57e2381d7baac

Contents?: true

Size: 912 Bytes

Versions: 5

Compression:

Stored size: 912 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 %>
  <li>
    <%= form_tag(admin_set_locale_path(format: :html), method: :put, style: "width: 100%;") do %>
      <label>
        <svg aria-hidden="true"><use xlink:href="<%= image_path('spree/backend/themes/solidus_admin/remixicon.symbol.svg') %>#ri-global-line"></use></svg>
        <select name="switch_to_locale" onchange="this.form.requestSubmit()">
          <%= options_for_select(available_locale_options_for_select, selected: I18n.locale) %>
        </select>
        <svg aria-hidden="true"><use xlink:href="<%= image_path('spree/backend/themes/solidus_admin/remixicon.symbol.svg') %>#ri-expand-up-down-line"></use></svg>
      </label>
    <% end %>
  </li>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_backend-4.3.4 app/views/spree/admin/shared/_locale_selection_solidus_admin.html.erb
solidus_backend-4.3.3 app/views/spree/admin/shared/_locale_selection_solidus_admin.html.erb
solidus_backend-4.3.2 app/views/spree/admin/shared/_locale_selection_solidus_admin.html.erb
solidus_backend-4.3.1 app/views/spree/admin/shared/_locale_selection_solidus_admin.html.erb
solidus_backend-4.3.0 app/views/spree/admin/shared/_locale_selection_solidus_admin.html.erb