Champ · State or province

Champ · State or province · location.state. Méthode de génération · Exemple

location.state

Options du générateur

Générez des données pour les voir ici.

Paramètres & Exemple

Returns a random localized state, or other equivalent first-level administrative entity for the locale's country such as a province or region. Generally, these are the ISO 3166-2 subdivisions for a country. If a locale doesn't correspond to one specific country, the method may return ISO 3166-2 subdivisions from one or more countries that uses that language. For example, the ar locale includes subdivisions from Arabic-speaking countries, such as Tunisia, Algeria, Syria, Lebanon, etc. For historical compatibility reasons, the default en locale only includes states in the United States (identical to en_US). However, you can use other English locales, such as en_IN, en_GB, and en_AU, if needed.

location.state(options?: { abbreviated? })
options
An options object.
options.abbreviated
If true this will return abbreviated first-level administrative entity names. Otherwise this will return the long name. Defaults to false.

Exemple

"North Dakota"

Utilisez des données synthétiques dans un environnement de test.

Générateurs associés

Explorer les scénarios