aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobin van der Vliet <[email protected]>2023-07-09 10:55:46 +0200
committerGitHub <[email protected]>2023-07-09 08:55:46 +0000
commit5eec65f7179b7db68efe7740695b37958b360212 (patch)
treed64ce03b350a7d7af62e7778d9efccaf6c58d4fa /src
parent4a15bd0d4eea5e5f6a7d1e6be0c2bf9e59feb069 (diff)
downloadfaker-5eec65f7179b7db68efe7740695b37958b360212.tar.xz
faker-5eec65f7179b7db68efe7740695b37958b360212.zip
feat(locale): add GB subdivision codes (#2233)
Diffstat (limited to 'src')
-rw-r--r--src/locales/en_GB/location/index.ts2
-rw-r--r--src/locales/en_GB/location/state.ts2
-rw-r--r--src/locales/en_GB/location/state_abbr.ts1
3 files changed, 4 insertions, 1 deletions
diff --git a/src/locales/en_GB/location/index.ts b/src/locales/en_GB/location/index.ts
index 1d694803..15d0c313 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.ts b/src/locales/en_GB/location/state.ts
index 7aabd725..b659a16d 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
new file mode 100644
index 00000000..c36ebcb4
--- /dev/null
+++ b/src/locales/en_GB/location/state_abbr.ts
@@ -0,0 +1 @@
+export default ['ENG', 'NIR', 'SCT', 'WLS'];