Add mailer subject tests and refine i18n keys (#910)

* Add mailer subject tests and refine i18n keys

* Linter

* Fix test

* More fixes

* More fixes

---------

Co-authored-by: sentry[bot] <39604003+sentry[bot]@users.noreply.github.com>
Co-authored-by: Juan José Mata <juanjo.mata@gmail.com>
This commit is contained in:
sentry[bot]
2026-02-05 19:47:01 +01:00
committed by GitHub
parent 68efe71cdb
commit d09765a14c
6 changed files with 26 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ class InvitationMailer < ApplicationMailer
subject: t(
".subject",
inviter: @invitation.inviter.display_name,
product: product_name
product_name: product_name
)
)
end

View File

@@ -6,7 +6,7 @@ class PdfImportMailer < ApplicationMailer
mail(
to: @user.email,
subject: t(".subject", product: product_name)
subject: t(".subject", product_name: product_name)
)
end
end

View File

@@ -1,4 +1,4 @@
<h1><%= t(".greeting", product: product_name) %></h1>
<h1><%= t(".greeting", product_name: product_name) %></h1>
<p>
<%= t(