0.0.3 • Published 6 years ago

gulp-json2pot v0.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

gulp-json2pot

Information

Packagegulp-json2pot
DescriptionGulp wrapper for json2pot. Generate pot files from JSON keyed translation files via Gulp.

Install

$ npm install --save-dev gulp-json2pot

Example usage with Gulp

var gulp = require('gulp');
var json2pot = require('gulp-json2pot');

gulp.task('default', function () {
    return gulp.src('src/*.php')
        .pipe(json2pot( {
            domain: 'domain',
            package: 'Example project'
        } ))
        .pipe(gulp.dest('file.pot'));
});

json2pot({options})

See available options in the json2pot readme, https://github.com/diosney/json2pot#options
All options except src and writeFile is passed to json2pot.

Related

License

MIT © Diosney Sarmiento

Thanks to Rasmus Bengtsson for its work on wp-pot which this package is heavily based on.