FIX: Send assignment message in the notified user's locale

This commit is contained in:
Gerhard Schlager 2019-07-12 12:06:40 +02:00
parent dea72e708b
commit 6d44f4fe29
1 changed files with 5 additions and 1 deletions

View File

@ -214,7 +214,11 @@ class ::TopicAssigner
post: first_post,
username: @assigned_by.username,
notification_type: Notification.types[:custom],
excerpt: I18n.t("discourse_assign.topic_assigned_excerpt", title: @topic.title)
excerpt: I18n.t(
"discourse_assign.topic_assigned_excerpt",
title: @topic.title,
locale: assign_to.effective_locale
)
)
end