Skip to content

masylum/connect-i18n

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Middleware for connect to handle i18n

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published