diff options
| author | Matt Mayer <[email protected]> | 2023-09-10 07:33:08 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-09-10 02:33:08 +0200 |
| commit | 8a6ce4978fada63f6364237e968f427e0a198135 (patch) | |
| tree | b640cf24f4f5276a6c4cc1f8b0e27183a4b3141c /src/locales/hr | |
| parent | 604d52d9874db1763c185483ed182199f7a00f4f (diff) | |
| download | faker-8a6ce4978fada63f6364237e968f427e0a198135.tar.xz faker-8a6ce4978fada63f6364237e968f427e0a198135.zip | |
feat(locale): add states for Croatia (hr) (#2142)
* feat(locale): add states for Croatia (hr)
* county should duplicate state
---------
Co-authored-by: ST-DDT <[email protected]>
Diffstat (limited to 'src/locales/hr')
| -rw-r--r-- | src/locales/hr/location/county.ts | 3 | ||||
| -rw-r--r-- | src/locales/hr/location/index.ts | 4 | ||||
| -rw-r--r-- | src/locales/hr/location/state.ts | 23 |
3 files changed, 30 insertions, 0 deletions
diff --git a/src/locales/hr/location/county.ts b/src/locales/hr/location/county.ts new file mode 100644 index 00000000..6872cff7 --- /dev/null +++ b/src/locales/hr/location/county.ts @@ -0,0 +1,3 @@ +// Since first-level administrative regions of Croatia are called "counties" we return them both from the state() and county() methods +import state from './state'; +export default state; diff --git a/src/locales/hr/location/index.ts b/src/locales/hr/location/index.ts index fcdecf80..ebf8d61e 100644 --- a/src/locales/hr/location/index.ts +++ b/src/locales/hr/location/index.ts @@ -7,9 +7,11 @@ import building_number from './building_number'; import city_name from './city_name'; import city_pattern from './city_pattern'; import country from './country'; +import county from './county'; import default_country from './default_country'; import postcode from './postcode'; import secondary_address from './secondary_address'; +import state from './state'; import street_address from './street_address'; import street_name from './street_name'; import street_pattern from './street_pattern'; @@ -19,9 +21,11 @@ const location: LocationDefinition = { city_name, city_pattern, country, + county, default_country, postcode, secondary_address, + state, street_address, street_name, street_pattern, diff --git a/src/locales/hr/location/state.ts b/src/locales/hr/location/state.ts new file mode 100644 index 00000000..f82dbc94 --- /dev/null +++ b/src/locales/hr/location/state.ts @@ -0,0 +1,23 @@ +export default [ + 'Bjelovarsko-bilogorska', + 'Brodsko-posavska', + 'Dubrovačko-neretvanska', + 'Grad Zagreb', + 'Istarska', + 'Karlovačka', + 'Koprivničko-križevačka', + 'Krapinsko-zagorska', + 'Ličko-senjska', + 'Međimurska', + 'Osječko-baranjska', + 'Požeško-slavonska', + 'Primorsko-goranska', + 'Sisačko-moslavačka', + 'Splitsko-dalmatinska', + 'Šibensko-kninska', + 'Varaždinska', + 'Virovitičko-podravska', + 'Vukovarsko-srijemska', + 'Zadarska', + 'Zagrebačka', +]; |
