Browserify transformer for po files.
UsageSomewhere 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
Install Licensevar browserify = require('browserify')
  , jedify = require('jedify')
Â
var b = browserify()
b.add('./entry.js');
b.transform(jedify, { lang: 'nb_NO' })
b.bundle().pipe(process.stdout)
MIT
Package Sidebar Install Downloads Weekly Downloads Last publish10 years ago
CollaboratorsRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4