Skip to content

Commit 34c8336

Browse files
fix: add missing i18n translations for public my account dropdown
1 parent 10fc364 commit 34c8336

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

app/views/application/_nav.html.slim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,11 +250,11 @@ nav.navbar
250250

251251
ul.space-y-2
252252
li
253-
= link_to "Espace admin", admin_root_path
253+
= link_to t('.admin_area'), admin_root_path
254254

255255
- if true_user != current_user
256256
li
257-
= link_to 'Retour à mon vrai compte !',
257+
= link_to t('.back_to_my_account'),
258258
stop_impersonating_admin_users_path,
259259
data: { turbo_method: :post },
260260
class: 'btn btn-warning btn-sm'

config/locales/en/application.en.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ en:
33
nav:
44
collectif: Bank-Exit
55
bank_exit: Collective
6+
admin_area: Admin area
7+
back_to_my_account: Back to my real account
68

79
menu:
810
home: Home

config/locales/fr/application.fr.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ fr:
33
nav:
44
collectif: Sortie
55
bank_exit: De Banque
6+
admin_area: Espace admin
7+
back_to_my_account: Retour à mon vrai compte
68

79
menu:
810
home: Accueil

0 commit comments

Comments
 (0)