1.0.0 • Published 5 years ago

gulp-concat-po v1.0.0

Weekly downloads
86
License
MIT
Repository
github
Last release
5 years ago

gulp-concat-po NPM version Build Status

Correctly concatenates .po files.

Install

  1. Install the plugin with the following command:

    npm install gulp-concat-po --save-dev

Usage

var gulp = require('gulp');
var concatPo = require('gulp-concat-po');

gulp.task('default', function () {
    return gulp.src(['src/gettext/*.po'])
        .pipe(concatPo('messages.pot'))
        .pipe(gulp.dest('release'));
});

API

concatPo(fileName, options)

fileName

Type: String

Name of the resulting file.

options.headers

Type: Object

A list of headers that will be used in the resulting .po file. The object can contain the following keys:

  • Project-Id-Version
  • Report-Msgid-Bugs-To
  • POT-Creation-Date
  • PO-Revision-Date
  • Last-Translator
  • Language
  • Language-Team
  • Content-Type
  • Content-Transfer-Encoding
  • Plural-Forms

Description of the fields can be found here. If a field is not specified the value from the first file in the stream will be used.

License

MIT © Dmitriy Simushev