From 6d44f4fe29fd4141334d71378c58800390afd3b6 Mon Sep 17 00:00:00 2001 From: Gerhard Schlager Date: Fri, 12 Jul 2019 12:06:40 +0200 Subject: [PATCH] FIX: Send assignment message in the notified user's locale --- lib/topic_assigner.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/topic_assigner.rb b/lib/topic_assigner.rb index d48bfa0..563fbed 100644 --- a/lib/topic_assigner.rb +++ b/lib/topic_assigner.rb @@ -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