More var -> let/const conversions

This commit is contained in:
rejas
2021-07-02 17:24:29 +02:00
committed by veeck
parent 53720ae8ae
commit 2619f92d09
4 changed files with 37 additions and 41 deletions

View File

@@ -141,12 +141,7 @@ var Translator = (function () {
* The first language defined in translations.js will be used.
*/
loadCoreTranslationsFallback: function () {
// The variable `first` will contain the first
// defined translation after the following line.
for (var first in translations) {
break;
}
let first = Object.keys(translations)[0];
if (first) {
Log.log("Loading core translation fallback file: " + translations[first]);
loadJSON(translations[first], (translations) => {