@Country()
New in 2.0Generate countries (ISO 3166-1 standard)
Geographic InformationSince 2.0.0
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| dict | — | — | Custom value dictionary, multiple values separated by '|' | |
| locale | — | — | Internationalized languages, currently only supporting Chinese (zh_CN) and English (en), default zh_CN |
Usage
@Country(arg0)Generate country using specified dictionary
Example:
@Country(中国,俄罗斯)
Output:
中国@Country(arg0)Generate country in specified locale
Example:
@Country(zh_CN)
Output:
中国@Country()Generate country (Chinese)
Example:
@Country()
Output:
中国