This repository was archived by the owner on Jul 12, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1+ > ** Note**
2+ > This project has been deprecated and will not be receiving any updates anymore.
3+ > Please, consider using an alternative package.
4+
15# express-simple-locale
26
37A simple Express middleware to guess the ** short-locale** of a user. It then saves the found locale on the request for further usage.
Original file line number Diff line number Diff line change 11{
22 "name" : " express-simple-locale" ,
33 "description" : " A simple Express middleware to guess the short-locale of a user." ,
4- "version" : " 0.3.4 " ,
4+ "version" : " 1.0.0 " ,
55 "author" : {
66 "name" : " Hugo Giraudel" ,
77
Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ var get = require('lodash.get')
22var getLocale = require ( './helpers/getLocale' )
33
44function middleware ( options ) {
5+ console . warn (
6+ 'express-simple-locale has been deprecated and will not be receiving any updates anymore.'
7+ + '\nPlease, consider using an alternative package.'
8+ )
9+
510 var key = get ( options , 'key' , 'locale' )
611
712 return function ( request , response , next ) {
You can’t perform that action at this time.
0 commit comments