FIX: Use default locale for flag reasons

FIX: Use default locale for flag reasons

diff --git a/app/models/user.rb b/app/models/user.rb
index 3e42b50..bfcd565 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -1020,7 +1020,12 @@ class User < ActiveRecord::Base
       .where.not(post_id: disagreed_flag_post_ids)
       .each do |tl|
 
-      message = I18n.t('flag_reason.spam_hosts', domain: tl.domain, base_path: Discourse.base_path)
+      message = I18n.t(
+        'flag_reason.spam_hosts',
+        domain: tl.domain,
+        base_path: Discourse.base_path,
+        locale: SiteSetting.default_locale
+      )
       results << PostActionCreator.create(Discourse.system_user, tl.post, :spam, message: message)
     end
 
diff --git a/app/services/spam_rule/flag_sockpuppets.rb b/app/services/spam_rule/flag_sockpuppets.rb
index c676369..26c53ff 100644
--- a/app/services/spam_rule/flag_sockpuppets.rb
+++ b/app/services/spam_rule/flag_sockpuppets.rb
@@ -34,7 +34,12 @@ class SpamRule::FlagSockpuppets
   end
 
   def flag_sockpuppet_users
-    message = I18n.t('flag_reason.sockpuppet', ip_address: @post.user.ip_address, base_path: Discourse.base_path)
+    message = I18n.t(
+      'flag_reason.sockpuppet',
+      ip_address: @post.user.ip_address,
+      base_path: Discourse.base_path,
+      locale: SiteSetting.default_locale
+    )
 
     PostActionCreator.create(Discourse.system_user, @post, :spam, message: message)

GitHub sha: 7311eeed

This commit has been mentioned on Discourse Meta. There might be relevant details there: