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