put translations in a more sensable spot
This commit is contained in:
parent
198dde3d6c
commit
858437e876
3 changed files with 8 additions and 1 deletions
|
@ -70,6 +70,13 @@ gulp.task("copy-html", () => {
|
|||
.pipe(gulp.dest("dist"));
|
||||
});
|
||||
|
||||
gulp.task("copy-translations", () => {
|
||||
return gulp
|
||||
.src("translations/*.json")
|
||||
.pipe(plumber()) // Prevent pipe breaking caused by errors
|
||||
.pipe(gulp.dest("dist/webpage/translations"));
|
||||
});
|
||||
|
||||
// Task to copy other static assets (e.g., CSS, images)
|
||||
gulp.task("copy-assets", () => {
|
||||
return gulp
|
||||
|
@ -92,5 +99,5 @@ gulp.task("copy-assets", () => {
|
|||
// Default task to run all tasks
|
||||
gulp.task(
|
||||
"default",
|
||||
gulp.series("clean", gulp.parallel("scripts", "copy-html", "copy-assets"))
|
||||
gulp.series("clean", gulp.parallel("scripts", "copy-html", "copy-assets","copy-translations"))
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue