add I18n invitation email

This commit is contained in:
Alex Turchyn
2024-10-01 21:18:01 +03:00
committed by Oleksandr Turchyn
parent d8ccd4beee
commit 5dae742361
5 changed files with 37 additions and 9 deletions
+4 -2
View File
@@ -8,7 +8,9 @@ class UserMailer < ApplicationMailer
assign_message_metadata('user_invitation', @user)
mail(to: @user.friendly_name,
subject: "You are invited to #{Docuseal.product_name}")
I18n.with_locale(@current_account.locale) do
mail(to: @user.friendly_name,
subject: I18n.t('you_are_invited_to_product_name', product_name: Docuseal.product_name))
end
end
end