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