Sha256: 955f779baf957f89596add3c311e900fc7464b1eece8a4613c04bc373e6ba7be

Contents?: true

Size: 658 Bytes

Versions: 2

Compression:

Stored size: 658 Bytes

Contents

<%#
    name: headmin/layout/header/locale
    accepts block: yes
    parameters: none
%>

<div class="btn-group dropdown">
  <button class="btn dropdown-toggle d-flex align-items-center" type="button" id="locale-dropdown" data-bs-toggle="dropdown" aria-expanded="false">
    <%= bootstrap_icon('globe', class: 'me-2') %>
    <%= t('language_name', locale: ::I18n.locale) %>
  </button>
  <ul class="dropdown-menu" aria-labelledby="locale-dropdown">
    <% I18n.available_locales.each do |locale| %>
      <li>
        <%= link_to t('language_name', locale: locale), { locale: locale.to_s }, class: 'dropdown-item' %>
      <li>
    <% end %>
  </ul>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
headmin-0.1.2 app/views/headmin/layout/header/_locale.html.erb
headmin-0.1.1 app/views/headmin/layout/header/_locale.html.erb