From 8a6ce4978fada63f6364237e968f427e0a198135 Mon Sep 17 00:00:00 2001 From: Matt Mayer <152770+matthewmayer@users.noreply.github.com> Date: Sun, 10 Sep 2023 07:33:08 +0700 Subject: feat(locale): add states for Croatia (hr) (#2142) * feat(locale): add states for Croatia (hr) * county should duplicate state --------- Co-authored-by: ST-DDT --- src/locales/hr/location/county.ts | 3 +++ src/locales/hr/location/index.ts | 4 ++++ src/locales/hr/location/state.ts | 23 +++++++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 src/locales/hr/location/county.ts create mode 100644 src/locales/hr/location/state.ts (limited to 'src') 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', +]; -- cgit v1.2.3