Skip to content

ControlExpert/gulp-merge-po

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gulp-merge-po NPM version

Correctly merging i18 .po files.

Country specific files shall contain only the changes specific for country. For given files:

src/gettext/es.po
src/gettext/es-MX.po
src/gettext/es-ES.po

The [es.po] will be not affected. The [es-MX.po] will be a merge of [es-MX.po] over [es.po]

etc.

Install

  1. Install the plugin with the following command:

    npm install gulp-merge-po --save-dev

Usage

var gulp = require('gulp');
var mergePo = require('gulp-merge-po');

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

API

mergePo(action)

action

Type: String

Action to execute:

  • merge [default] - merges incoming piped files,
  • clean - clean the files by removing from sub culture files redundant entries

License

MIT

About

Gulp plugin for .po files for merging set of i18 translations

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%