gulp-i18n-po-translate
v1.5.3
Published
Compiles html templates and javascript files using po translation file.
Downloads
7
Readme
gulp-i18n-po-translate
Compiles html templates using po translation file.
const gulp = require('gulp');
const translate = require('gulp-i18n-po-translate');
gulp.task("translate", function() {
return gulp.src("**/*.html")
.pipe(translate({
pofile: 'locales/en/LC_MESSAGES/messages.po',
attributes: ["placeholder", "alt", "title"]
}))
.pipe(gulp.dest("dist"))
}
);