Skip to content

A Gulp plugin to compile .po files into binary .mo files with msgfmt

License

Notifications You must be signed in to change notification settings

felixzapata/gulp-potomo

Repository files navigation

gulp-potomo

Build Status

Package Quality

A Gulp plugin to compile .po files into binary .mo files with msgfmt.

Inspired by grunt-potomo.

Requirements

Getting Started

npm install gulp-potomo --save-dev

The "potomo" task

Options

options.poDel

Type: Boolean
Default: false

Whether the PO file(s) used from source should be deleted or remove after the creation of MO file(s).

options.verbose

Type: Boolean
Default: true

Whether file creation and completion messages should be shown.

Example config

var options = {                       
  poDel: true,
  verbose: false
};

gulp.src(['en_GB.po', 'ne_NP.po'])
  .pipe(potomo(options))
  .pipe(gulp.dest('dest/languages'));

Release History

Read the full changelog.

License

ISC © Félix Zapata

About

A Gulp plugin to compile .po files into binary .mo files with msgfmt

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •