Sha256: a0542b0659d260392d0f0043d8f5dd13e72ac273ad0da3a7e587a5dffb2e38c4

Contents?: true

Size: 712 Bytes

Versions: 4

Compression:

Stored size: 712 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(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.3.3 app/views/spree/admin/shared/_locale_selection.html.erb
solidus_backend-4.3.2 app/views/spree/admin/shared/_locale_selection.html.erb
solidus_backend-4.3.1 app/views/spree/admin/shared/_locale_selection.html.erb
solidus_backend-4.3.0 app/views/spree/admin/shared/_locale_selection.html.erb