mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 16:26:43 +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.
|
||||
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 })
|
||||
|
Loading…
x
Reference in New Issue
Block a user