5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-25 19:46:21 +00:00
panel/app/views/layouts/_link_rel_alternate.haml
f 9aa99e2754
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
feat: establecer los metadatos para cambiar el idioma #12925
2023-04-11 12:09:13 -03:00

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 }