app/views/components/lolita/translation/_switch.html.erb in lolita-translation-0.1.3 vs app/views/components/lolita/translation/_switch.html.erb in lolita-translation-0.1.4
- old
+ new
@@ -1,6 +1,6 @@
<ul class="tab-language-switch" id="<%=tab.name%>_language_swith">
- <% I18n.available_locales.each do |short_locale| %>
+ <% I18n.available_locales.sort.each do |short_locale| %>
<% active = I18n.default_locale == short_locale %>
<li class="<%=active ? "active" : ""%>" data-locale="<%=short_locale%>" data-tab="<%=tab.name%>">
<%= short_locale.to_s.capitalize %>
</li>
<% end %>
\ No newline at end of file