Skip to content

Commit

Permalink
feat: add translation and i18n to mail
Browse files Browse the repository at this point in the history
  • Loading branch information
syl-p committed Sep 8, 2021
1 parent 0cee89a commit 90035d6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/user_mailer/uuid_created.html.erb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Votre uuid: <%= @user.uuid %>
<%= I18n.t 'mail.uuid_created' %><%= @user.uuid %>
2 changes: 1 addition & 1 deletion app/views/user_mailer/uuid_created.text.erb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Votre uuid: <%= @user.uuid %>
<%= I18n.t 'mail.uuid_created' %><%= @user.uuid %>
4 changes: 4 additions & 0 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
fr:
hello: "Hello world"
mail:
uuid_created: "Votre compte à été créé, voilà votre uuid: "

0 comments on commit 90035d6

Please sign in to comment.