i18n for header

This commit is contained in:
Christophe Robillard 2021-08-20 10:52:01 +02:00
parent a5750ed4ce
commit 99c16e8dc0
6 changed files with 9 additions and 3 deletions

View file

@ -65,9 +65,9 @@
- elsif request.path != new_user_session_path
- if request.path == new_user_registration_path
%li
Vous avez déjà un compte ?
= t('views.shared.account.already_user_question')
%li
= link_to "Connexion", new_user_session_path, class: "button secondary"
= link_to t('views.shared.account.signin'), new_user_session_path, class: "button secondary"
%li
- if dossier.present? && nav_bar_profile == :user

View file

@ -1 +1 @@
= link_to 'Aide', FAQ_URL, class: 'button primary'
= link_to t('help'), FAQ_URL, class: 'button primary'

View file

@ -30,6 +30,7 @@
# available at http://guides.rubyonrails.org/i18n.html.
en:
help: 'Help'
utils:
deconnexion: "Log out"
pj: "Attachments"

View file

@ -20,6 +20,7 @@
# available at http://guides.rubyonrails.org/i18n.html.
fr:
help: 'Aide'
utils:
deconnexion: "Déconnexion"
pj: "Pièces jointes"

View file

@ -8,5 +8,7 @@ en:
help_link: What is FranceConnect?
separator: or
account:
already_user_question: 'Do you already have an account?'
already_user: "I already have an account"
create: 'Create an account'
signin: 'Sign in'

View file

@ -16,5 +16,7 @@ fr:
help_link: "Quest-ce que FranceConnect ?"
separator: 'ou'
account:
already_user_question: 'Vous avez déjà un compte ?'
already_user: 'Jai déjà un compte'
create: 'Créer un compte'
signin: 'Connexion'