mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 23:46:22 +00:00
7 lines
337 B
Text
7 lines
337 B
Text
- unless current_usuarie
|
|
- params.permit!
|
|
- I18n.available_locales.each do |locale|
|
|
- url = url_for(**params.to_h.merge(change_locale_to: locale), only_path: false)
|
|
- if locale == I18n.default_locale
|
|
%link{ rel: 'alternate', hreflang: 'x-default', href: url }
|
|
%link{ rel: 'alternate', hreflang: locale, href: url }
|