mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 18:26:21 +00:00
feat: soportar varios idiomas
This commit is contained in:
parent
2f3a596fa5
commit
5ac72f8b2b
1 changed files with 3 additions and 2 deletions
|
@ -23,5 +23,6 @@
|
|||
= link_to t('.logout'), main_app.destroy_usuarie_session_path,
|
||||
method: :delete, role: 'button', class: 'btn'
|
||||
- else
|
||||
- other_locale = I18n.available_locales.find { |locale| locale != I18n.locale }
|
||||
= link_to t(other_locale), "?change_locale_to=#{other_locale}"
|
||||
- I18n.available_locales.each do |locale|
|
||||
- next if locale == I18n.locale
|
||||
= link_to t(locale), "?change_locale_to=#{locale}"
|
||||
|
|
Loading…
Reference in a new issue