@Word()
New in 2.0Generate words
TextSince 2.0.0
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| dict | String | — | — | Custom value dictionary, multiple values separated by '|' |
| locale | String | — | — | Internationalized languages, currently only supporting Chinese (zh_CN) and English (en), default zh_CN |
Usage
@Word()Generate word (Chinese)
Example:
@Word()
Output:
弯弯曲曲千家万户@Word(dict)Generate word using specified dictionary
Example:
@Word(开开心心|快快乐乐|红红火火)
Output:
开开心心快快乐乐@Word(locale)Generate word in specified locale
Example:
@Word(en)
Output:
alongdesigner