Skip to content

Commit

Permalink
Merge pull request #1244 from skaut/php-l10n-format
Browse files Browse the repository at this point in the history
Added the new PHP l10n format
  • Loading branch information
marekdedic authored May 8, 2024
2 parents e2cf7a6 + 99016da commit fb24095
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,27 @@ gulp.task('build:js', () =>
])
);

gulp.task('build:mo', (cb) => {
exec(
'./vendor/bin/wp i18n make-mo src/languages/ dist/languages/ ',
(err) => {
cb(err);
gulp.task(
'build:l10n',
gulp.parallel(
(cb) => {
exec(
'./vendor/bin/wp i18n make-mo src/languages/ dist/languages/ ',
(err) => {
cb(err);
}
);
},
(cb) => {
exec(
'./vendor/bin/wp i18n make-php src/languages/ dist/languages/ ',
(err) => {
cb(err);
}
);
}
);
});
)
);

gulp.task('build:php:root', () =>
gulp.src('src/php/*.php').pipe(gulp.dest('dist/'))
Expand Down Expand Up @@ -169,7 +182,7 @@ gulp.task(
'build:deps',
'build:jpg',
'build:js',
'build:mo',
'build:l10n',
'build:php',
'build:png',
'build:txt'
Expand Down

0 comments on commit fb24095

Please sign in to comment.