1
0
Fork 0
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:
Claus Vium 2019-04-20 20:44:42 +02:00
parent 874b51234e
commit b5db89661a

View file

@ -127,12 +127,17 @@ define(['connectionManager', 'userSettings', 'events'], function (connectionMana
function loadStrings(options) {
var locale = getCurrentLocale();
var promises = [];
var optionsName;;
if (typeof options === 'string') {
return ensureTranslation(allTranslations[options], locale);
optionsName = options;
} else {
optionsName = options.name;
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();