gulp-po2json-angular-translate-qy
v0.0.5
Published
gulp plugin to convert po to angangular-translate format
Downloads
3
Readme
gulp-po2json-angular-translate
gulp plugin to convert po to angangular-translate format
Install
Install with npm
npm install gulp-po2json-angular-translate --save-dev
Example
var gulp = require('gulp');
var po2json = require('gulp-po2json-angular-translate');
gulp.task('po2jsjon', function () {
return gulp.src('po/**/*.po')
.pipe(po2json({
// options ...
pretty: false
}))
.pipe(gulp.dest('dist/translations/'));
});
Options
options.pretty
Type: Boolean
Default value: false
If you want to pretty print the result
options.upperCaseId
Type: Boolean
Default value: false
If you want to convert the ids to uppercase
options.enableAltPlaceholders
Type: Boolean
Default value: true
It enables you to use alternative placeholders format, it defaults with {foo}.
options.placeholderStructure
Type: Array
Default value: ['{','}']
Here you can set your own placeholder structure. Notice that you must specify a closing mark.