Sha256: 7b90b4eeb61959db831904110e18733b1a2d9479e2054206466a1e28846ee044

Contents?: true

Size: 653 Bytes

Versions: 1

Compression:

Stored size: 653 Bytes

Contents

<%
  available_locales = current_store.available_locales.map do |locale|
    [
      I18n.t('spree.i18n.this_file_language',
      locale: locale,
      default: locale.to_s,
      fallback: false), locale
    ]
  end.sort
%>

<% if available_locales.many? %>
  <div class="locale-selector">
    <%= form_tag spree.select_locale_path do %>
      <%= render(
        "spree/components/forms/inputs/select_input",
        name: :switch_to_locale,
        options: available_locales,
        selected: I18n.locale,
        label: I18n.t('spree.i18n.language'),
        classes: ['locale-selector__select-input']
      ) %>
    <% end %>
  </div>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_starter_frontend-0.1.0 app/views/spree/components/navigation/_locale_selector.html.erb