gulp-po2mo
v1.0.3
Published
Gulp simple plugin that compile .po files into .mo using gettext-parser package
Downloads
184
Readme
A very simple Gulp plugin that compile .po files into .mo using gettext-parser package.
Gulpfile.js example:
var gulp = require('gulp');
var gulpPo2Mo = require('gulp-po2mo');
gulp.task('po2mo', function(){
gulp.src('languages/**/*.po')
.pipe(gulpPo2Mo())
.pipe(gulp.dest('./languages'));
});
gulp.task('default', function(){
gulp.watch('languages/**/*.po', ['po2mo']);
});
And init Gulp on console to start editing your .po file:
gulp -watch