5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 16:11:42 +00:00

fix: poder cambiar de idioma manteniendo los parametros #12886

This commit is contained in:
f 2023-03-30 19:33:04 -03:00
parent 3e6288fefe
commit 059230ad6b

View file

@ -23,6 +23,7 @@
= link_to t('.logout'), main_app.destroy_usuarie_session_path, = link_to t('.logout'), main_app.destroy_usuarie_session_path,
method: :delete, role: 'button', class: 'btn' method: :delete, role: 'button', class: 'btn'
- else - else
- params.permit!
- I18n.available_locales.each do |locale| - I18n.available_locales.each do |locale|
- next if locale == I18n.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)