2022-05-11 16:08:48 +02:00
|
|
|
.dropdown.locale-dropdown.header-menu-opener{ data: { controller: 'menu-button' } }
|
|
|
|
%button.button.dropdown-button.icon-only.header-menu-button{ title: t('.languages'), data: { menu_button_target: 'button' } }
|
2021-08-24 16:45:47 +02:00
|
|
|
.hidden t('.languages')
|
|
|
|
= image_tag "icons/translate-icon.svg", alt: t('.languages'), width: 24, height: 24, lazy: true, aria: { hidden: true }
|
2022-05-11 16:08:48 +02:00
|
|
|
%ul.header-menu.dropdown-content{ data: { menu_button_target: 'menu' } }
|
2021-05-12 16:30:35 +02:00
|
|
|
%li
|
2021-08-24 16:54:57 +02:00
|
|
|
= active_link_to save_locale_path(locale: :fr), method: :post, class: "menu-item menu-link", active: I18n.locale == :fr do
|
2021-08-24 16:46:40 +02:00
|
|
|
Français
|
2021-08-24 16:57:43 +02:00
|
|
|
%li
|
|
|
|
= active_link_to save_locale_path(locale: :en), method: :post, class: "menu-item menu-link", active: I18n.locale == :en do
|
|
|
|
English
|