From 8abfaac320dd2c7eb994c2113f0dbbb55f108752 Mon Sep 17 00:00:00 2001 From: Robin van der Vliet Date: Sat, 1 Jul 2023 18:58:15 +0200 Subject: [PATCH 1/2] Add Dutch province abbreviations --- src/locales/nl/location/index.ts | 2 ++ src/locales/nl/location/state_abbr.ts | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 src/locales/nl/location/state_abbr.ts diff --git a/src/locales/nl/location/index.ts b/src/locales/nl/location/index.ts index 5ff29d5b224..61bff354c79 100644 --- a/src/locales/nl/location/index.ts +++ b/src/locales/nl/location/index.ts @@ -12,6 +12,7 @@ import default_country from './default_country'; import postcode from './postcode'; import secondary_address from './secondary_address'; import state from './state'; +import state_abbr from './state_abbr'; import street_address from './street_address'; import street_pattern from './street_pattern'; import street_suffix from './street_suffix'; @@ -26,6 +27,7 @@ const location: LocationDefinition = { postcode, secondary_address, state, + state_abbr, street_address, street_pattern, street_suffix, diff --git a/src/locales/nl/location/state_abbr.ts b/src/locales/nl/location/state_abbr.ts new file mode 100644 index 00000000000..950819e0212 --- /dev/null +++ b/src/locales/nl/location/state_abbr.ts @@ -0,0 +1,14 @@ +export default [ + 'NH', + 'ZH', + 'UT', + 'ZE', + 'OV', + 'GE', + 'DR', + 'FR', + 'GR', + 'NB', + 'LI', + 'FL', +]; From eab322720d1d143d3968e8b00120894e40c61004 Mon Sep 17 00:00:00 2001 From: Robin van der Vliet Date: Sun, 2 Jul 2023 13:28:09 +0200 Subject: [PATCH 2/2] Sort Dutch provinces --- src/locales/nl/location/state.ts | 16 ++++++++-------- src/locales/nl/location/state_abbr.ts | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/locales/nl/location/state.ts b/src/locales/nl/location/state.ts index 6b1b2900a32..8ad1c2ce851 100644 --- a/src/locales/nl/location/state.ts +++ b/src/locales/nl/location/state.ts @@ -1,14 +1,14 @@ export default [ - 'Noord-Holland', - 'Zuid-Holland', - 'Utrecht', - 'Zeeland', - 'Overijssel', - 'Gelderland', 'Drenthe', + 'Flevoland', 'Friesland', + 'Gelderland', 'Groningen', - 'Noord-Brabant', 'Limburg', - 'Flevoland', + 'Noord-Brabant', + 'Noord-Holland', + 'Overijssel', + 'Utrecht', + 'Zeeland', + 'Zuid-Holland', ]; diff --git a/src/locales/nl/location/state_abbr.ts b/src/locales/nl/location/state_abbr.ts index 950819e0212..b37cf411973 100644 --- a/src/locales/nl/location/state_abbr.ts +++ b/src/locales/nl/location/state_abbr.ts @@ -1,14 +1,14 @@ export default [ - 'NH', - 'ZH', - 'UT', - 'ZE', - 'OV', - 'GE', 'DR', + 'FL', 'FR', + 'GE', 'GR', - 'NB', 'LI', - 'FL', + 'NB', + 'NH', + 'OV', + 'UT', + 'ZE', + 'ZH', ];