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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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