feat: add localeAlias options
This commit is contained in:
@@ -57,6 +57,7 @@ Patch locales functions to koa app.
|
||||
- {String} defaultLocale: default locale. Optional, default is `en-US`.
|
||||
- {String} queryField: locale field name on query. Optional, default is `locale`.
|
||||
- {String} cookieField: locale field name on cookie. Optional, default is `locale`.
|
||||
- {Object} localeAlias: locale cookie value map. Optional, default is {}.
|
||||
- {String|Number} cookieMaxAge: set locale cookie value max age. Optional, default is `1y`, expired after one year.
|
||||
|
||||
```js
|
||||
|
||||
Reference in New Issue
Block a user