mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 14:41:41 +00:00
fix: poder cambiar de idioma manteniendo los parametros #12886
This commit is contained in:
parent
3e6288fefe
commit
059230ad6b
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue