gulp-po2json-angular-translate

0.0.3 • Public • Published

gulp-po2json-angular-translate

gulp plugin to convert po to angangular-translate format

based on grunt-po2json-angular-translate v0.0.3

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.

More

See grunt-po2json-angular-translate

Readme

Keywords

Package Sidebar

Install

npm i gulp-po2json-angular-translate

Weekly Downloads

1

Version

0.0.3

License

none

Last publish

Collaborators

  • roc.wong