@Province()
New in 2.0Generate provinces
GeographicSince 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
@Province()Generate province (Chinese)
Example:
@Province()
Output:
山东河北@Province(dict)Generate province using specified dictionary
Example:
@Province(山西,河北,北京,上海)
Output:
北京上海@Province(locale)Generate province in specified locale
Example:
@Province(en)
Output:
U.S.U.K.