feat(i18n): translate notification emails actions

This commit is contained in:
Paul Chavard 2021-08-26 12:47:23 +02:00
parent 6eb072e69f
commit 89d9a4a477
3 changed files with 14 additions and 3 deletions

View file

@ -4,10 +4,10 @@
- variant = (index == 0 ? :primary : :secondary)
- case action
- when MailTemplateConcern::Actions::SHOW
= round_button('Consulter mon dossier', dossier_url(@dossier), variant)
= round_button(t(:access, scope: [:layouts, :notifications, :actions]), dossier_url(@dossier), variant)
- when MailTemplateConcern::Actions::ASK_QUESTION
= round_button('Jai une question', messagerie_dossier_url(@dossier), variant)
= round_button(t(:question, scope: [:layouts, :notifications, :actions]), messagerie_dossier_url(@dossier), variant)
- when MailTemplateConcern::Actions::REPLY
= round_button('Répondre à ce message', messagerie_dossier_url(@dossier), variant)
= round_button(t(:reply, scope: [:layouts, :notifications, :actions]), messagerie_dossier_url(@dossier), variant)
= vertical_margin(5)

View file

@ -56,6 +56,11 @@ en:
signature:
greeting: Dear Sir or Madam,
best_regards: Best Regards,
notifications:
actions:
access: View your File
question: I have a question
reply: Reply to this message
views:
commencer:
show:

View file

@ -46,6 +46,12 @@ fr:
signature:
greeting: Bonjour,
best_regards: Bonne journée,
notifications:
actions:
access: Consulter mon dossier
question: Jai une question
reply: Répondre à ce message
views:
commencer:
show: