Skip to content

Commit 34b743a

Browse files
authored
feat(locale): add en_US location.county data (#1996)
1 parent e4d4492 commit 34b743a

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

src/locales/en_US/location/county.ts

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
export default [
2+
'Adams County',
3+
'Calhoun County',
4+
'Carroll County',
5+
'Clark County',
6+
'Clay County',
7+
'Crawford County',
8+
'Douglas County',
9+
'Fayette County',
10+
'Franklin County',
11+
'Grant County',
12+
'Greene County',
13+
'Hamilton County',
14+
'Hancock County',
15+
'Henry County',
16+
'Jackson County',
17+
'Jefferson County',
18+
'Johnson County',
19+
'Lake County',
20+
'Lawrence County',
21+
'Lee County',
22+
'Lincoln County',
23+
'Logan County',
24+
'Madison County',
25+
'Marion County',
26+
'Marshall County',
27+
'Monroe County',
28+
'Montgomery County',
29+
'Morgan County',
30+
'Perry County',
31+
'Pike County',
32+
'Polk County',
33+
'Scott County',
34+
'Union County',
35+
'Warren County',
36+
'Washington County',
37+
'Wayne County',
38+
];

src/locales/en_US/location/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
*/
55
import type { LocationDefinitions } from '../../..';
66
import city from './city';
7+
import county from './county';
78
import default_country from './default_country';
89
import postcode_by_state from './postcode_by_state';
910
import street from './street';
1011

1112
const location: LocationDefinitions = {
1213
city,
14+
county,
1315
default_country,
1416
postcode_by_state,
1517
street,

src/modules/location/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ export class LocationModule {
240240
*
241241
* @example
242242
* fakerEN_GB.location.county() // 'Cambridgeshire'
243+
* fakerEN_US.location.county() // 'Monroe County'
243244
*
244245
* @since 8.0.0
245246
*/

0 commit comments

Comments
 (0)