Commit a7520e31ff373d5104c7f5acd23090eabf35b1ec
1 parent
b16592b0
Exists in
colab
and in
4 other branches
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 | 77 | <span class="caret"></span> |
| 78 | 78 | </a> |
| 79 | 79 | <ul class="dropdown-menu" role="menu"> |
| 80 | - <% [:en, :pt].each do |locale| %> | |
| 80 | + <% I18n.available_locales.each do |locale| %> | |
| 81 | 81 | <li><%= link_to(locale.to_s, url_for(locale: locale), data: { no_turbolink: true }) %></li> |
| 82 | 82 | <% end %> |
| 83 | 83 | </ul> | ... | ... |