Skip to content

Commit

Permalink
Update Locales.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sgress454 committed Sep 10, 2015
1 parent 10c53e3 commit 135be2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions concepts/Internationalization/Locales.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ You can also nest locale strings. But a better approach would be to use `.` to r

### Detecting and/or overriding the desired locale for a request

To determine the current locale used by the request, use [`req.getLocale()`](https://github.com/mashpie/i18n-node#getlocale).

To override the auto-detected language/localization preference for a request, use [`req.setLocale()`](https://github.com/mashpie/i18n-node#setlocale), calling it with the unique code for the new locale, e.g.:

```js
Expand Down

0 comments on commit 135be2d

Please sign in to comment.