mirror of https://github.com/tootsuite/mastodon
Avoid i18n health warning for `en` locale by using symbol scope with :count
parent
0a82d959a5
commit
a1429bcec2
|
@ -59,7 +59,12 @@ class NotificationMailer < ApplicationMailer
|
||||||
return if @notifications.empty?
|
return if @notifications.empty?
|
||||||
|
|
||||||
I18n.with_locale(@me.user.locale || I18n.default_locale) do
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue