i18n-l

0.0.1 • Public • Published

i18n-node-rev

The __l function extension for i18n-node for translating express routes.

Setup

Install the package.

npm install --save i18n i18n-l

Extend the i18n module and translate a route.

// index.js (example ExpressJS application)
...
var i18n = require('i18n');
require('i18n-l')(i18n);
...
app.get( i18n.__l('/products'), function (req, res) {
  ...
});

/i18n-l/

    Package Sidebar

    Install

    npm i i18n-l

    Weekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • xpepermint