Skip to content

Commit

Permalink
Merge pull request #50 from trackball/patch-1
Browse files Browse the repository at this point in the history
Update README.md (missing next())
  • Loading branch information
mashpie committed Feb 13, 2013
2 parents 26519f4 + dbf30fe commit f1b0605
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -94,6 +94,8 @@ In an express app, you might use i18n.init to gather language settings of your v
res.locals.__n = function() { res.locals.__n = function() {
return i18n.__n.apply(req, arguments); return i18n.__n.apply(req, arguments);
}; };
// do not forget this, otherwise your app will hang
next();
}); });


app.use(app.router); app.use(app.router);
Expand Down

0 comments on commit f1b0605

Please sign in to comment.