diff --git a/src/scripts/globalize.js b/src/scripts/globalize.js index dfd9071957..c66ed2b7f4 100644 --- a/src/scripts/globalize.js +++ b/src/scripts/globalize.js @@ -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) {