delint
This commit is contained in:
+3
-3
@@ -32,7 +32,7 @@ function genLangFile(file, dest) {
|
|||||||
try {
|
try {
|
||||||
Object.assign(
|
Object.assign(
|
||||||
translations,
|
translations,
|
||||||
JSON.parse(fs.readFileSync(f).toString())
|
JSON.parse(fs.readFileSync(f).toString()),
|
||||||
);
|
);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error("Failed: " + f, e);
|
console.error("Failed: " + f, e);
|
||||||
@@ -52,7 +52,7 @@ function genLangFile(file, dest) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Convert translation key from weblate format
|
* Convert translation key from weblate format
|
||||||
* (which only supports a single level) to counterpart
|
* (which only supports a single level) to counterpart
|
||||||
* which requires object values for 'count' translations.
|
* which requires object values for 'count' translations.
|
||||||
@@ -100,7 +100,7 @@ function watchLanguage(file, dest) {
|
|||||||
clearTimeout(makeLangDebouncer);
|
clearTimeout(makeLangDebouncer);
|
||||||
}
|
}
|
||||||
makeLangDebouncer = setTimeout(() => {
|
makeLangDebouncer = setTimeout(() => {
|
||||||
genLangFile(lang, dest);
|
genLangFile(file, dest);
|
||||||
}, 500);
|
}, 500);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user