Skip to content

Commit

Permalink
Update doc for sessionVarName option
Browse files Browse the repository at this point in the history
  • Loading branch information
gjuchault committed Jul 23, 2015
1 parent 507870e commit e7ff1d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Will then do:

To be used with Express.js or another framework that provides a `request` object. Generally you would want to use this by setting the `session` option to `true`.

This methods takes in an Express.js request object, looks at the variable `locale` contained in the `session` object, and it will set the locale to that value.
This methods takes in an Express.js request object, looks at the variable `locale` (you may override this behaviour by changing the option `sessionVarName`, which defaults to `locale`) contained in the `session` object, and it will set the locale to that value.

For example, if the session is :
{ user: { ... }, locale: 'de' }
Expand Down

0 comments on commit e7ff1d9

Please sign in to comment.