mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-25 02:26:22 +00:00
8 lines
337 B
Text
8 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 }
|