gulp-pottopo

1.0.1 • Public • Published

gulp-pottopo

Generate a default PO translation from GNU Gettext POT files.

Install

Install with npm

npm install gulp-pottopo --save-dev

Example

var gulp = require('gulp');
var pottopo = require('gulp-pottopo');

gulp.task('pottopo', function () {
    return gulp.src('languages/*.pot', {base: '.'})
        .pipe(pottopo({
            // optional parameters
        }))
        .pipe(gulp.dest('.'));
});

The output file will be renamed to [Filename without extension][Separator option][Language option].po, meaning translation.pot with default language becomes translation-en_US.po.

Options

  • language: Language code for the generated file. Default: en_US.
  • separator: Character that separates the filename from the language code. Default: -.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.12latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.12
1.0.00

Package Sidebar

Install

npm i gulp-pottopo

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

3.98 kB

Total Files

4

Last publish

Collaborators

  • geminilabs