mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix fallback culture before login
This commit is contained in:
parent
874b51234e
commit
b5db89661a
1 changed files with 7 additions and 2 deletions
|
@ -127,12 +127,17 @@ define(['connectionManager', 'userSettings', 'events'], function (connectionMana
|
||||||
|
|
||||||
function loadStrings(options) {
|
function loadStrings(options) {
|
||||||
var locale = getCurrentLocale();
|
var locale = getCurrentLocale();
|
||||||
|
var promises = [];
|
||||||
|
var optionsName;;
|
||||||
if (typeof options === 'string') {
|
if (typeof options === 'string') {
|
||||||
return ensureTranslation(allTranslations[options], locale);
|
optionsName = options;
|
||||||
} else {
|
} else {
|
||||||
|
optionsName = options.name;
|
||||||
register(options);
|
register(options);
|
||||||
return ensureTranslation(allTranslations[options.name], locale);
|
|
||||||
}
|
}
|
||||||
|
promises.push(ensureTranslation(allTranslations[optionsName], locale));
|
||||||
|
promises.push(ensureTranslation(allTranslations[optionsName], fallbackCulture));
|
||||||
|
return Promise.all(promises);
|
||||||
}
|
}
|
||||||
|
|
||||||
var cacheParam = new Date().getTime();
|
var cacheParam = new Date().getTime();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue