FIX: lookup should be done against locale of reference (#7632)

This commit is contained in:
Joffrey JAFFEUX
2019-05-29 15:45:44 +02:00
committed by GitHub
parent 05206a61ab
commit 5e7e32510a

View File

@@ -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;
}
}