Commit a7520e31ff373d5104c7f5acd23090eabf35b1ec

Authored by Rafael Manzo
1 parent b16592b0

Without devise-i18n there is no need to force the locales on the layout menu.

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/views/layouts/application.html.erb
@@ -77,7 +77,7 @@ @@ -77,7 +77,7 @@
77 <span class="caret"></span> 77 <span class="caret"></span>
78 </a> 78 </a>
79 <ul class="dropdown-menu" role="menu"> 79 <ul class="dropdown-menu" role="menu">
80 - <% [:en, :pt].each do |locale| %> 80 + <% I18n.available_locales.each do |locale| %>
81 <li><%= link_to(locale.to_s, url_for(locale: locale), data: { no_turbolink: true }) %></li> 81 <li><%= link_to(locale.to_s, url_for(locale: locale), data: { no_turbolink: true }) %></li>
82 <% end %> 82 <% end %>
83 </ul> 83 </ul>