mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #2703 from thornbill/error-missing-translation
This commit is contained in:
commit
77ca85a23f
1 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue