5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-06-02 04:44:15 +00:00

feat: soportar varios idiomas

This commit is contained in:
f 2023-03-17 15:32:56 -03:00
parent 2f3a596fa5
commit 5ac72f8b2b

View file

@ -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}"