i18n: properly translate the locale dropdown title
This commit is contained in:
parent
83b04aca59
commit
47e1555dce
4 changed files with 9 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
.dropdown.locale-dropdown.header-menu-opener
|
||||
%button.button.dropdown-button.icon-only.header-menu-button{ title: "Translate", aria: { expanded: 'false', controls: 'locale_menu' } }
|
||||
.hidden Translate
|
||||
= image_tag "icons/translate-icon.svg", alt: 'Translate', width: 24, height: 24, lazy: true, aria: { hidden: true }
|
||||
%button.button.dropdown-button.icon-only.header-menu-button{ title: t('.languages'), aria: { expanded: 'false', controls: 'locale_menu' } }
|
||||
.hidden t('.languages')
|
||||
= image_tag "icons/translate-icon.svg", alt: t('.languages'), width: 24, height: 24, lazy: true, aria: { hidden: true }
|
||||
%ul.header-menu.dropdown-content
|
||||
%li
|
||||
= link_to save_locale_path(locale: :en), method: :post, class: "menu-item menu-link" do
|
||||
|
|
|
@ -51,6 +51,8 @@ en:
|
|||
line1: A simple tool
|
||||
line2: to manage dematerialized
|
||||
line3: administrative forms.
|
||||
locale_dropdown:
|
||||
languages: "Languages"
|
||||
views:
|
||||
commencer:
|
||||
show:
|
||||
|
|
|
@ -41,6 +41,8 @@ fr:
|
|||
line1: Un outil simple
|
||||
line2: pour gérer les formulaires
|
||||
line3: administratifs dématérialisés.
|
||||
locale_dropdown:
|
||||
languages: "Langues"
|
||||
views:
|
||||
commencer:
|
||||
show:
|
||||
|
|
|
@ -7,8 +7,8 @@ feature 'Accessing the website in different languages:' do
|
|||
visit new_user_session_path
|
||||
expect(page).to have_text('Connectez-vous')
|
||||
|
||||
click_on 'Translate'
|
||||
click_on 'EN – English'
|
||||
click_on 'Langues'
|
||||
click_on 'English'
|
||||
|
||||
# The page is now in English
|
||||
expect(page).to have_text('Sign in')
|
||||
|
|
Loading…
Reference in a new issue