Skip to content

Commit

Permalink
Renamed po files to not include slug
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Nov 9, 2023
1 parent afbabdb commit 9b7dc1e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 28 deletions.
35 changes: 7 additions & 28 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,35 +123,14 @@ gulp.task('build:js', () =>
)
);

gulp.task(
'build:mo',
gulp.series(
(cb) => {
exec(
'./vendor/bin/wp i18n make-mo src/languages/ dist/languages/ ',
(err) => {
cb(err);
}
);
},
() =>
gulp
.src('dist/languages/*.mo')
.pipe(
rename((path) => {
path.basename = path.basename.substring(
path.basename.lastIndexOf('-') + 1
);
})
)
.pipe(gulp.dest('dist/languages/')),
(cb) => {
exec('rm dist/languages/crdm-modern-*.mo', (err) => {
cb(err);
});
gulp.task('build:mo', (cb) => {
exec(
'./vendor/bin/wp i18n make-mo src/languages/ dist/languages/ ',
(err) => {
cb(err);
}
)
);
);
});

gulp.task('build:php:root', () =>
gulp.src('src/php/*.php').pipe(gulp.dest('dist/'))
Expand Down
File renamed without changes.

0 comments on commit 9b7dc1e

Please sign in to comment.