Slight rework of translations system to add character name translations.
This commit is contained in:
parent
4e69b2388f
commit
d94dd77fb8
7 changed files with 275 additions and 40 deletions
10
gulpfile.js
10
gulpfile.js
|
@ -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'));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue