Skip to content

Commit

Permalink
feat(locale): add en_US location.county data (#1996)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmayer authored Apr 2, 2023
1 parent e4d4492 commit 34b743a
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
38 changes: 38 additions & 0 deletions src/locales/en_US/location/county.ts
Original file line number Diff line number Diff line change
@@ -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',
];
2 changes: 2 additions & 0 deletions src/locales/en_US/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions src/modules/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ export class LocationModule {
*
* @example
* fakerEN_GB.location.county() // 'Cambridgeshire'
* fakerEN_US.location.county() // 'Monroe County'
*
* @since 8.0.0
*/
Expand Down

0 comments on commit 34b743a

Please sign in to comment.