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

Merge branch 'issue-12886' into 'rails'

fix: poder cambiar de idioma manteniendo los parametros #12886

See merge request sutty/sutty!137
This commit is contained in:
fauno 2023-04-10 15:35:51 +00:00
commit 4be89dcbee

View file

@ -23,6 +23,7 @@
= link_to t('.logout'), main_app.destroy_usuarie_session_path,
method: :delete, role: 'button', class: 'btn'
- else
- params.permit!
- I18n.available_locales.each do |locale|
- next if locale == I18n.locale
= link_to t(locale), "?change_locale_to=#{locale}"
= link_to t(locale), params.to_h.merge(change_locale_to: locale)