Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(locale): add en_US location.county data #1996

Merged
merged 3 commits into from
Apr 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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