Skip to content

Commit

Permalink
feat(locale): add states for Croatia (hr) (#2142)
Browse files Browse the repository at this point in the history
* feat(locale): add states for Croatia (hr)

* county should duplicate state

---------

Co-authored-by: ST-DDT <ST-DDT@gmx.de>
  • Loading branch information
matthewmayer and ST-DDT committed Sep 10, 2023
1 parent 604d52d commit 8a6ce49
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/locales/hr/location/county.ts
Original file line number Diff line number Diff line change
@@ -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;
4 changes: 4 additions & 0 deletions src/locales/hr/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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,
Expand Down
23 changes: 23 additions & 0 deletions src/locales/hr/location/state.ts
Original file line number Diff line number Diff line change
@@ -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',
];

0 comments on commit 8a6ce49

Please sign in to comment.