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
- Host: GitHub
- URL: https://github.com/masylum/connect-i18n
- Owner: masylum
- License: mit
- Created: 2010-10-30T11:07:24.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2014-03-13T12:06:10.000Z (over 12 years ago)
- Last Synced: 2025-04-06T15:42:29.717Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 117 KB
- Stars: 25
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
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