# gulp-merge-po

> Gulp plugin for .po files i18 merging

Latest version **1.0.0** (published 2018-04-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-merge-po
pnpm add gulp-merge-po
yarn add gulp-merge-po
bun add gulp-merge-po
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-04-03 |
| First published | 2018-04-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Control Expert |
| Maintainers | sciupinski |
| Keywords | gulpplugin, po, gettext |

## Links

- npm: https://www.npmjs.com/package/gulp-merge-po
- Repository: https://github.com/ControlExpert/gulp-merge-po
- Homepage: https://github.com/ControlExpert/gulp-merge-po#readme
- Issues: https://github.com/ControlExpert/gulp-merge-po/issues
- npm.io page: https://npm.io/package/gulp-merge-po

## Dependencies (4)

- [lodash](https://npm.io/package/lodash.md) ^3.9.3
- [pofile](https://npm.io/package/pofile.md) ^0.2.12
- [through2](https://npm.io/package/through2.md) ^0.6.5
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.5

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2018-04-03

## README

# gulp-merge-po [![NPM version](https://badge.fury.io/js/gulp-concat-po.png)](https://www.npmjs.org/package/gulp-merge-po)

> 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:

	```shell
	npm install gulp-merge-po --save-dev
	```


## Usage

```js
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](http://opensource.org/licenses/MIT)

---
_Source: https://npm.io/package/gulp-merge-po · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
