From 925458ad01123dcaa7e4f2580563741a25fe3d10 Mon Sep 17 00:00:00 2001 From: Robin van der Vliet Date: Sat, 1 Jul 2023 22:23:21 +0200 Subject: [PATCH 1/2] Add UK subdivision codes --- src/locales/en_GB/location/index.ts | 2 ++ src/locales/en_GB/location/state_abbr.ts | 1 + 2 files changed, 3 insertions(+) create mode 100644 src/locales/en_GB/location/state_abbr.ts diff --git a/src/locales/en_GB/location/index.ts b/src/locales/en_GB/location/index.ts index 1d694803acc..15d0c313da1 100644 --- a/src/locales/en_GB/location/index.ts +++ b/src/locales/en_GB/location/index.ts @@ -12,6 +12,7 @@ import county from './county'; import default_country from './default_country'; import postcode from './postcode'; import state from './state'; +import state_abbr from './state_abbr'; import street_pattern from './street_pattern'; import street_suffix from './street_suffix'; @@ -25,6 +26,7 @@ const location: LocationDefinition = { default_country, postcode, state, + state_abbr, street_pattern, street_suffix, }; diff --git a/src/locales/en_GB/location/state_abbr.ts b/src/locales/en_GB/location/state_abbr.ts new file mode 100644 index 00000000000..c4b151a834b --- /dev/null +++ b/src/locales/en_GB/location/state_abbr.ts @@ -0,0 +1 @@ +export default ['ENG', 'SCT', 'WLS', 'NIR']; From f021cce6bf10b8ccd44aaf5a0409eb32e8d11530 Mon Sep 17 00:00:00 2001 From: Robin van der Vliet Date: Sun, 2 Jul 2023 13:26:12 +0200 Subject: [PATCH 2/2] Sort UK subdivisions --- src/locales/en_GB/location/state.ts | 2 +- src/locales/en_GB/location/state_abbr.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/locales/en_GB/location/state.ts b/src/locales/en_GB/location/state.ts index 7aabd7259ea..b659a16dbae 100644 --- a/src/locales/en_GB/location/state.ts +++ b/src/locales/en_GB/location/state.ts @@ -1 +1 @@ -export default ['England', 'Scotland', 'Wales', 'Northern Ireland']; +export default ['England', 'Northern Ireland', 'Scotland', 'Wales']; diff --git a/src/locales/en_GB/location/state_abbr.ts b/src/locales/en_GB/location/state_abbr.ts index c4b151a834b..c36ebcb4153 100644 --- a/src/locales/en_GB/location/state_abbr.ts +++ b/src/locales/en_GB/location/state_abbr.ts @@ -1 +1 @@ -export default ['ENG', 'SCT', 'WLS', 'NIR']; +export default ['ENG', 'NIR', 'SCT', 'WLS'];