only load core callback if there is one available

This commit is contained in:
fewieden 2018-02-11 09:07:41 +01:00
parent ad3eac9ddb
commit 85528761eb

View File

@ -217,10 +217,12 @@ var Translator = (function() {
// defined translation after the following line.
for (var first in translations) {break;}
Log.log("Loading core translation fallback file: " + translations[first]);
loadJSON(translations[first], function(translations) {
self.coreTranslationsFallback = translations;
});
if (first) {
Log.log("Loading core translation fallback file: " + translations[first]);
loadJSON(translations[first], function(translations) {
self.coreTranslationsFallback = translations;
});
}
},
};
})();