gulp-json2pot

Generate pot files from JSON keyed translation files via Gulp.


Keywords
gulpplugin, pot, json, translation
License
MIT
Install
npm install gulp-json2pot@0.0.1

Documentation

gulp-json2pot

Information

Package gulp-json2pot
Description Gulp 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.