Skip to content

Commit

Permalink
Fix English only translations build
Browse files Browse the repository at this point in the history
  • Loading branch information
steverep committed Jul 1, 2024
1 parent d01377d commit 200382b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build-scripts/gulp/translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,11 @@ const createTranslations = async () => {
// 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
// than a base translation + region.
gulp
const masterStream = gulp
.src(`${workDir}/en.json`)
.pipe(new PassThrough({ objectMode: true }))
.pipe(hashStream, { end: false });
const mergesFinished = [];
.pipe(new PassThrough({ objectMode: true }));
masterStream.pipe(hashStream, { end: false });
const mergesFinished = [finished(masterStream)];
for (const translationFile of translationFiles) {
const locale = basename(translationFile, ".json");
const subtags = locale.split("-");
Expand Down

0 comments on commit 200382b

Please sign in to comment.