A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.npmjs.com/package/jedify below:

jedify - npm

jedify0.2.4 • Public • Published 10 years ago

jedify

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 License

MIT

Package Sidebar Install Downloads Weekly Downloads Last publish

10 years ago

Collaborators

RetroSearch 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