Merge pull request #2703 from thornbill/error-missing-translation

This commit is contained in:
Bill Thornton
2021-06-09 08:39:12 -04:00
committed by GitHub
+3 -2
View File
@@ -188,10 +188,11 @@ import { Events } from 'jellyfin-apiclient';
if (!dictionary || !dictionary[key]) {
dictionary = getDictionary(module, fallbackCulture);
}
if (!dictionary) {
if (!dictionary || !dictionary[key]) {
console.error(`Translation key is missing from dictionary: ${key}`);
return key;
}
return dictionary[key] || key;
return dictionary[key];
}
function replaceAll(str, find, replace) {