mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 08:46:35 +00:00
Update translations.js (#3219)
This commit is contained in:
parent
c24f8a2115
commit
d10a0b3b6c
@ -197,13 +197,14 @@ gulp.task(
|
|||||||
// than a base translation + region.
|
// than a base translation + region.
|
||||||
const tr = path.basename(file.history[0], ".json");
|
const tr = path.basename(file.history[0], ".json");
|
||||||
const subtags = tr.split("-");
|
const subtags = tr.split("-");
|
||||||
const src = [
|
const src = [workDir + "/translationMaster.json"];
|
||||||
workDir + "/translationMaster.json",
|
|
||||||
workDir + "/test.json",
|
|
||||||
];
|
|
||||||
for (let i = 1; i <= subtags.length; i++) {
|
for (let i = 1; i <= subtags.length; i++) {
|
||||||
const lang = subtags.slice(0, i).join("-");
|
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
|
return gulp
|
||||||
.src(src, { allowEmpty: true })
|
.src(src, { allowEmpty: true })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user