Slight rework of translations system to add character name translations.

This commit is contained in:
firebingo 2018-05-13 17:51:31 -07:00
parent 4e69b2388f
commit d94dd77fb8
7 changed files with 275 additions and 40 deletions

View file

@ -30,6 +30,9 @@ const jsonFiles = [
"Js/BgmLoop.json",
"Js/XduMissions.json"
];
const translations = [
"Js/Translations/*.json"
];
const jsDest = "Js";
gulp.task('dev', gulp.series(
@ -49,6 +52,7 @@ gulp.task('dist', gulp.series(
copyCss
),
buildJson,
buildJsonTranslations,
copyHtml,
copyImages
),
@ -113,3 +117,9 @@ function buildJson() {
.pipe(jsonmin())
.pipe(gulp.dest('Dist/Js'));
}
function buildJsonTranslations() {
return gulp.src(translations)
.pipe(jsonmin())
.pipe(gulp.dest('Dist/Js/Translations'));
}