mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-25 23:13:33 +00:00
Avoid i18n health warning for en
locale by using symbol scope with :count
This commit is contained in:
parent
0a82d959a5
commit
a1429bcec2
|
@ -59,7 +59,12 @@ class NotificationMailer < ApplicationMailer
|
|||
return if @notifications.empty?
|
||||
|
||||
I18n.with_locale(@me.user.locale || I18n.default_locale) do
|
||||
mail to: @me.user.email, subject: I18n.t('notification_mailer.digest.subject', count: @notifications.size)
|
||||
mail to: @me.user.email,
|
||||
subject: I18n.t(
|
||||
:subject,
|
||||
scope: [:notification_mailer, :digest],
|
||||
count: @notifications.size
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue