Update translations.js (#3219)

This commit is contained in:
Bram Kragten 2019-05-27 05:59:52 +02:00 committed by Paulus Schoutsen
parent c24f8a2115
commit d10a0b3b6c

View File

@ -197,13 +197,14 @@ gulp.task(
// than a base translation + region.
const tr = path.basename(file.history[0], ".json");
const subtags = tr.split("-");
const src = [
workDir + "/translationMaster.json",
workDir + "/test.json",
];
const src = [workDir + "/translationMaster.json"];
for (let i = 1; i <= subtags.length; i++) {
const lang = subtags.slice(0, i).join("-");
src.push(inDir + "/" + lang + ".json");
if (lang === "test") {
src.push(workDir + "/test.json");
} else {
src.push(inDir + "/" + lang + ".json");
}
}
return gulp
.src(src, { allowEmpty: true })