# grunt-po2mo

> Compile .po files into binary .mo files with msgfmt.

Latest version **0.1.2** (published 2015-02-11) · 0 weekly downloads

## Install

```sh
npm install grunt-po2mo
pnpm add grunt-po2mo
yarn add grunt-po2mo
bun add grunt-po2mo
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2015-02-11 |
| First published | 2013-08-24 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Michele Bertoli |
| Maintainers | michelebertoli |
| Keywords | gruntplugin |

## Links

- npm: https://www.npmjs.com/package/grunt-po2mo
- Repository: https://github.com/MicheleBertoli/grunt-po2mo
- Issues: https://github.com/MicheleBertoli/grunt-po2mo/issues
- npm.io page: https://npm.io/package/grunt-po2mo

## Dependencies (1)

- [sync-exec](https://npm.io/package/sync-exec.md) ^0.4.0

## Recent versions

- 0.1.2 (latest) — 2015-02-11
- 0.1.1 — 2015-02-03
- 0.1.0 — 2013-08-24

## README

[![Build Status](https://travis-ci.org/MicheleBertoli/grunt-po2mo.svg)](https://travis-ci.org/MicheleBertoli/grunt-po2mo)

# grunt-po2mo

> Compile .po files into binary .mo files with msgfmt.

## Getting Started
This plugin requires:
- Grunt `~0.4.1` 
- [gettext](https://www.gnu.org/software/gettext/) (Installation instructions: [Mac](http://brewformulas.org/Gettext), [Windows](http://gnuwin32.sourceforge.net/packages/gettext.htm) and [Linux](http://ftp.gnu.org/pub/gnu/gettext/))

If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

```shell
npm install grunt-po2mo --save-dev
```

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

```js
grunt.loadNpmTasks('grunt-po2mo');
```

## The "po2mo" task

### Overview
In your project's Gruntfile, add a section named `po2mo` to the data object passed into `grunt.initConfig()`.

```js
grunt.initConfig({
  po2mo: {
    your_target: {
      // Target-specific file lists and/or options go here.
    },
  },
})
```

### Options

#### options.deleteSrc
Type: `Boolean`
Default value: `false`

Will delete the source .po file.

### Usage Examples

```js
grunt.initConfig({
  po2mo: {
    files: {
      src: 'languages/fr.po',
      dest: 'languages/fr.mo',
    },
  },
})
```
```js
grunt.initConfig({
  po2mo: {
    files: {
      options: {
        deleteSrc: true
      },
      src: 'languages/fr.po',
      dest: 'languages/fr.mo',
    },
  },
})
```

## Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).

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