Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Middleware for connect to handle i18n
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
LICENSE
Readme.md
index.js .
package.json fix broken package.json

Readme.md

Connect i18n middleware

Accept-languages header parser middleware

npm install 'connect-i18n'

var i18n = require('connect-i18n');
app.use(i18n({default_locale: 'es-es'}));

console.log(req.locales);

options

  • default_locale: Sets your default locale

test

make
Something went wrong with that request. Please try again.