An open API service indexing awesome lists of open source software.

https://github.com/masylum/connect-i18n

Middleware for connect to handle i18n
https://github.com/masylum/connect-i18n

Last synced: about 1 year ago
JSON representation

Middleware for connect to handle i18n

Awesome Lists containing this project

README

          

# 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