diff --git a/gulpfile.cjs b/gulpfile.cjs index af74040..623f908 100644 --- a/gulpfile.cjs +++ b/gulpfile.cjs @@ -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")) ); diff --git a/src/webpage/translations/en.json b/translations/en.json similarity index 100% rename from src/webpage/translations/en.json rename to translations/en.json diff --git a/src/webpage/translations/ru.json b/translations/ru.json similarity index 100% rename from src/webpage/translations/ru.json rename to translations/ru.json