gulp-po2json

Gulp plugin to convert gettext .po files to JSON

gulp-po2json

Convert .po files to JSON using po2json

Install with npm

npm install --save-dev gulp-po2json
var gulp = require('gulp');
var po2json = require('gulp-po2json');
 
gulp.task('po2json', function () {
    return gulp.src(['po/**/*.po'])
        .pipe(po2json())
        .pipe(gulp.dest('dist/translations/'));
});