gulp-xgettext-handlebars
v0.0.6
Published
Gulp plugin to extract translatable strings from Handlebars templates
Downloads
4
Maintainers
Readme
gulp-xgettext-handlebars
Extract translatable strings using xgettext-handlebars
WARNING
This code is unstable and going through a major rewrite.
Install
Install with npm
npm install --save-dev gulp-xgettext-handlebars
Example
var gulp = require('gulp');
var gettext = require('gulp-xgettext-handlebars');
gulp.task('pot', function () {
return gulp.src(['src/templates/**/*.hbs'])
.pipe(gettext({
// options to pass to angular-gettext-tools...
}))
.pipe(gulp.dest('po/'));
});
API
None yet