@martiallabs/gulp-gettext-polymer
v0.1.1
Published
Simple tools for extracnting localize strings to gettext and combining them to JSON
Readme
gulp-gettext-polymer
Installation
$ npm set registry https://npm.webface.bg
$ npm install --save-dev gulp-gettext-polymerUsage
var gettext = require("gulp-gettext-polymer");
gulp.task('admin-gettext-extract', function () {
return gulp.src("my-app/**/*html")
.pipe(gettext.extract())
.pipe(gulp.dest("my-app/po"));
});
gulp.task('admin-gettext-combine', function () {
return gulp.src("my-app/po/*po")
.pipe(gettext.combine())
.pipe(gulp.dest("my-app"));
});extract(options)
Extracts strings for translation from Polymer files and outputs a gettext template.
Options:
filename— specify an alternative output filename
combine(options)
Combines translated .po files to a single .json file.
Options:
filename— specify an alternative output filename
