From abbfe7200aadf2c1ce82e0d9de8e10159a4bd44a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Thu, 30 Sep 2021 18:01:36 +0200 Subject: [PATCH] Fix supervisor dev translations (#10113) --- build-scripts/gulp/translations.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build-scripts/gulp/translations.js b/build-scripts/gulp/translations.js index 327a04df80..f5228bfa90 100755 --- a/build-scripts/gulp/translations.js +++ b/build-scripts/gulp/translations.js @@ -336,6 +336,14 @@ gulp.task("build-translation-fragment-supervisor", () => gulp .src(fullDir + "/*.json") .pipe(transform((data) => data.supervisor)) + .pipe( + rename((filePath) => { + // In dev we create the file with the fake hash in the filename + if (!env.isProdBuild()) { + filePath.basename += "-dev"; + } + }) + ) .pipe(gulp.dest(workDir + "/supervisor")) );