Add error logging for missing translation keys
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user