jed

jedify

🌎 Browserify transformer for po files.

Showing:

Popularity

Downloads/wk

8

GitHub Stars

9

Maintenance

Last Commit

6yrs ago

Contributors

2

Package

Dependencies

5

Size (min+gzip)

5.5KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

jedify

Version npmnpm DownloadsBuild StatusDependenciesTips

Browserify transformer for po files.

Usage

Somewhere in your client js:

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

Now i18n will be an Jed instance.

%s will be replaced with the current selected language. The language can be selected by defining the lang parameter to jedify. The lang parameter in jedify defaults to en.

Eg.

browserify -t [jedify --lang nb_NO] entry.js

or

var browserify = require('browserify')
  , jedify = require('jedify')

var b = browserify()
b.add('./entry.js');
b.transform(jedify, { lang: 'nb_NO' })
b.bundle().pipe(process.stdout)

Install

npm install jedify

License

MIT

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100