Skip to content

Commit 8552876

Browse files
committed
only load core callback if there is one available
1 parent ad3eac9 commit 8552876

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

js/translator.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,12 @@ var Translator = (function() {
217217
// defined translation after the following line.
218218
for (var first in translations) {break;}
219219

220-
Log.log("Loading core translation fallback file: " + translations[first]);
221-
loadJSON(translations[first], function(translations) {
222-
self.coreTranslationsFallback = translations;
223-
});
220+
if (first) {
221+
Log.log("Loading core translation fallback file: " + translations[first]);
222+
loadJSON(translations[first], function(translations) {
223+
self.coreTranslationsFallback = translations;
224+
});
225+
}
224226
},
225227
};
226228
})();

0 commit comments

Comments
 (0)