# jedify <sup>[![Version Badge](http://vb.teelaun.ch/tellnes/jedify.svg)](https://npmjs.org/package/jedify)</sup>

[![Dependency Status](https://david-dm.org/tellnes/jedify.png)](https://david-dm.org/tellnes/jedify)
[![devDependency Status](https://david-dm.org/tellnes/jedify/dev-status.png)](https://david-dm.org/tellnes/jedify#info=devDependencies)

[![NPM](https://nodei.co/npm/jedify.png)](https://nodei.co/npm/jedify/)


Browserify transformer for po files.

## Usage

Somewhere in your client js:

```js
var i18n = requirePo('./local/%s.po')
```

Now `i18n` will be an [Jed](http://slexaxton.github.io/Jed/) instance.

`%s` will be replaced with the current choosed language. To choose language you can either specify
a `--jedify-lang` argument to browserify or use the `JEDIFY_LANG` enviroment variable. It defaults
to `en`.

Eg.

    $ browserify --jedify-lang nb_NO

## Install

    $ npm install jedify

## License

MIT


[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/tellnes/jedify/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

# jedify <sup>[![Version Badge](http://vb.teelaun.ch/tellnes/jedify.svg)](https://npmjs.org/package/jedify)</sup>

[![Dependency Status](https://david-dm.org/tellnes/jedify.png)](https://david-dm.org/tellnes/jedify)
[![devDependency Status](https://david-dm.org/tellnes/jedify/dev-status.png)](https://david-dm.org/tellnes/jedify#info=devDependencies)

[![NPM](https://nodei.co/npm/jedify.png)](https://nodei.co/npm/jedify/)


Browserify transformer for po files.

## Usage

Somewhere in your client js:

```js
var i18n = requirePo('./local/%s.po')
```

Now `i18n` will be an [Jed](http://slexaxton.github.io/Jed/) instance.

`%s` will be replaced with the current choosed language. To choose language you can either specify
a `--lang` argument to the transform when calling browserify or use the `JEDIFY_LANG` enviroment variable.
It defaults to `en`.

Eg.

    $ browserify -t [jedify --lang nb_NO]

## Install

    $ npm install jedify

## License

MIT


[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/tellnes/jedify/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

Update readme with new `--lang` option
Update readme with new `--lang` option
