Skip to content

Commit

Permalink
chore: add writeCookie option in README (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
monkindey authored Jun 26, 2023
1 parent ca9d0f9 commit b22bfc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Patch locales functions to koa app.
- {String} cookieField: locale field name on cookie. Optional, default is `locale`.
- {String} cookieDomain: domain on cookie. Optional, default is `''`.
- {Object} localeAlias: locale value map. Optional, default is `{}`.
- {Boolean} writeCookie: set cookie if header not sent. Optional, default is `true`.
- {String|Number} cookieMaxAge: set locale cookie value max age. Optional, default is `1y`, expired after one year.

```js
Expand Down

0 comments on commit b22bfc5

Please sign in to comment.