diff options
| author | Matt Mayer <[email protected]> | 2023-04-03 04:25:55 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-04-02 21:25:55 +0000 |
| commit | 34b743ab8a859669a0f7b37910c2cbb9e294b534 (patch) | |
| tree | 1c3b422d338d1794fd315626fca4c82c50dac9c2 /src | |
| parent | e4d44925faad2f97e981a4a2fa8fd49cfa5378da (diff) | |
| download | faker-34b743ab8a859669a0f7b37910c2cbb9e294b534.tar.xz faker-34b743ab8a859669a0f7b37910c2cbb9e294b534.zip | |
feat(locale): add en_US location.county data (#1996)
Diffstat (limited to 'src')
| -rw-r--r-- | src/locales/en_US/location/county.ts | 38 | ||||
| -rw-r--r-- | src/locales/en_US/location/index.ts | 2 | ||||
| -rw-r--r-- | src/modules/location/index.ts | 1 |
3 files changed, 41 insertions, 0 deletions
diff --git a/src/locales/en_US/location/county.ts b/src/locales/en_US/location/county.ts new file mode 100644 index 00000000..2beaed3c --- /dev/null +++ b/src/locales/en_US/location/county.ts @@ -0,0 +1,38 @@ +export default [ + 'Adams County', + 'Calhoun County', + 'Carroll County', + 'Clark County', + 'Clay County', + 'Crawford County', + 'Douglas County', + 'Fayette County', + 'Franklin County', + 'Grant County', + 'Greene County', + 'Hamilton County', + 'Hancock County', + 'Henry County', + 'Jackson County', + 'Jefferson County', + 'Johnson County', + 'Lake County', + 'Lawrence County', + 'Lee County', + 'Lincoln County', + 'Logan County', + 'Madison County', + 'Marion County', + 'Marshall County', + 'Monroe County', + 'Montgomery County', + 'Morgan County', + 'Perry County', + 'Pike County', + 'Polk County', + 'Scott County', + 'Union County', + 'Warren County', + 'Washington County', + 'Wayne County', +]; diff --git a/src/locales/en_US/location/index.ts b/src/locales/en_US/location/index.ts index a2415a8c..d2e817ab 100644 --- a/src/locales/en_US/location/index.ts +++ b/src/locales/en_US/location/index.ts @@ -4,12 +4,14 @@ */ import type { LocationDefinitions } from '../../..'; import city from './city'; +import county from './county'; import default_country from './default_country'; import postcode_by_state from './postcode_by_state'; import street from './street'; const location: LocationDefinitions = { city, + county, default_country, postcode_by_state, street, diff --git a/src/modules/location/index.ts b/src/modules/location/index.ts index ab158ecb..03d34134 100644 --- a/src/modules/location/index.ts +++ b/src/modules/location/index.ts @@ -240,6 +240,7 @@ export class LocationModule { * * @example * fakerEN_GB.location.county() // 'Cambridgeshire' + * fakerEN_US.location.county() // 'Monroe County' * * @since 8.0.0 */ |
