express.createServer() has been replaced with express()
It might be more clear to show app.use( locale(supported) ) in order to clearly demonstrate that locale(supported) returns express middleware that can be used in the same way as any other middleware.
express.createServer()
has been replaced withexpress()
app.use( locale(supported) )
in order to clearly demonstrate thatlocale(supported)
returns express middleware that can be used in the same way as any other middleware.