From 5e7e32510a7fd7edd4380d6c63823561b622ef83 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Wed, 29 May 2019 15:45:44 +0200 Subject: [PATCH] FIX: lookup should be done against locale of reference (#7632) --- app/assets/javascripts/discourse/models/topic-details.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/models/topic-details.js.es6 b/app/assets/javascripts/discourse/models/topic-details.js.es6 index 4a8c2f05f90..9f486f0712e 100644 --- a/app/assets/javascripts/discourse/models/topic-details.js.es6 +++ b/app/assets/javascripts/discourse/models/topic-details.js.es6 @@ -41,7 +41,7 @@ const TopicDetails = RestModel.extend({ if (typeof reason === "number") { const tmp = localeString + "_" + reason; // some sane protection for missing translations of edge cases - if (I18n.lookup(tmp)) { + if (I18n.lookup(tmp, { locale: "en" })) { localeString = tmp; } }