mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 10:58:20 -07:00
Add error logging for missing translation keys
This commit is contained in:
parent
c8fcb9e664
commit
ed67e601aa
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user