add I18n invitation email

This commit is contained in:
Alex Turchyn authored and Oleksandr Turchyn committed 2024-10-07 15:30:39 +03:00
1 parent d8ccd4beee
commit 5dae742361
5 files changed
+37 -9

No files matched your search

+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