mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-18 06:46:35 +00:00
Fix English only translations build (#21245)
This commit is contained in:
parent
76abfea6ed
commit
5707ca0016
@ -244,11 +244,11 @@ const createTranslations = async () => {
|
|||||||
// TODO: This is a naive interpretation of BCP47 that should be improved.
|
// TODO: This is a naive interpretation of BCP47 that should be improved.
|
||||||
// Will be OK for now as long as we don't have anything more complicated
|
// Will be OK for now as long as we don't have anything more complicated
|
||||||
// than a base translation + region.
|
// than a base translation + region.
|
||||||
gulp
|
const masterStream = gulp
|
||||||
.src(`${workDir}/en.json`)
|
.src(`${workDir}/en.json`)
|
||||||
.pipe(new PassThrough({ objectMode: true }))
|
.pipe(new PassThrough({ objectMode: true }));
|
||||||
.pipe(hashStream, { end: false });
|
masterStream.pipe(hashStream, { end: false });
|
||||||
const mergesFinished = [];
|
const mergesFinished = [finished(masterStream)];
|
||||||
for (const translationFile of translationFiles) {
|
for (const translationFile of translationFiles) {
|
||||||
const locale = basename(translationFile, ".json");
|
const locale = basename(translationFile, ".json");
|
||||||
const subtags = locale.split("-");
|
const subtags = locale.split("-");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user