Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

use recipient language for digest rendering

ulfertse612907033cf
diff --git a/app/mailers/digest_mailer.rb b/app/mailers/digest_mailer.rb
index 326613d3970..d6b6881b979 100644
--- a/app/mailers/digest_mailer.rb
+++ b/app/mailers/digest_mailer.rb
@@ -60,10 +60,12 @@ class DigestMailer < ApplicationMailer
return if @notifications_by_project.empty?
- mail to: recipient.mail,
- subject: I18n.t('mail.digests.work_packages.subject',
- date: format_time_as_date(Time.current),
- number: notification_ids.count)
+ with_locale_for(recipient) do
+ mail to: recipient.mail,
+ subject: I18n.t('mail.digests.work_packages.subject',
+ date: format_time_as_date(Time.current),
+ number: notification_ids.count)
+ end
end
protected