diff options
| author | Matt Mayer <[email protected]> | 2022-12-18 02:15:40 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-12-17 20:15:40 +0100 |
| commit | 27d41ee27f0a0ca1628d1da3785acd42557ba533 (patch) | |
| tree | a8d45e551ccd9a6114d308ab2df028f07a3b6a26 | |
| parent | 23c2d3dc1d311edc2c02373d575dc28db385bf1d (diff) | |
| download | faker-27d41ee27f0a0ca1628d1da3785acd42557ba533.tar.xz faker-27d41ee27f0a0ca1628d1da3785acd42557ba533.zip | |
fix(locale): improve en_GB location addresses (#1620)
| -rw-r--r-- | src/locales/en_GB/location/building_number.ts | 1 | ||||
| -rw-r--r-- | src/locales/en_GB/location/city.ts | 6 | ||||
| -rw-r--r-- | src/locales/en_GB/location/city_infix.ts | 1 | ||||
| -rw-r--r-- | src/locales/en_GB/location/city_prefix.ts | 19 | ||||
| -rw-r--r-- | src/locales/en_GB/location/city_suffix.ts | 33 | ||||
| -rw-r--r-- | src/locales/en_GB/location/index.ts | 10 | ||||
| -rw-r--r-- | src/locales/en_GB/location/street_suffix.ts | 57 |
7 files changed, 124 insertions, 3 deletions
diff --git a/src/locales/en_GB/location/building_number.ts b/src/locales/en_GB/location/building_number.ts new file mode 100644 index 00000000..20cefab6 --- /dev/null +++ b/src/locales/en_GB/location/building_number.ts @@ -0,0 +1 @@ +export default ['###', '##', '#']; diff --git a/src/locales/en_GB/location/city.ts b/src/locales/en_GB/location/city.ts index 7375aa83..ed5e7f31 100644 --- a/src/locales/en_GB/location/city.ts +++ b/src/locales/en_GB/location/city.ts @@ -1,6 +1,6 @@ export default [ - '{{location.city_prefix}} {{person.firstName}}{{location.city_suffix}}', - '{{location.city_prefix}} {{person.firstName}}', - '{{person.firstName}}{{location.city_suffix}}', + '{{location.city_prefix}} {{person.lastName}}{{location.city_suffix}}', + '{{location.city_prefix}} {{person.lastName}}', '{{person.lastName}}{{location.city_suffix}}', + '{{person.lastName}}{{location.city_infix}}{{person.lastName}}', ]; diff --git a/src/locales/en_GB/location/city_infix.ts b/src/locales/en_GB/location/city_infix.ts new file mode 100644 index 00000000..2e10a717 --- /dev/null +++ b/src/locales/en_GB/location/city_infix.ts @@ -0,0 +1 @@ +export default ['-under-', '-over-', '-le-', '-upon-', '-on-']; diff --git a/src/locales/en_GB/location/city_prefix.ts b/src/locales/en_GB/location/city_prefix.ts new file mode 100644 index 00000000..12e5533e --- /dev/null +++ b/src/locales/en_GB/location/city_prefix.ts @@ -0,0 +1,19 @@ +export default [ + 'Great', + 'Little', + 'St.', + 'West', + 'East', + 'North', + 'South', + 'Upper', + 'Lower', + 'Old', + 'Long', + 'New', + 'High', + 'Nether', + 'Castle', + 'Upton', + 'Newton', +]; diff --git a/src/locales/en_GB/location/city_suffix.ts b/src/locales/en_GB/location/city_suffix.ts new file mode 100644 index 00000000..6db9822a --- /dev/null +++ b/src/locales/en_GB/location/city_suffix.ts @@ -0,0 +1,33 @@ +export default [ + 'ton', + 'ham', + 'ley', + 'ington', + 'ford', + 'field', + 'bury', + 'don', + 'ing', + 'worth', + 'well', + 'ingham', + 'wood', + 'ridge', + 'borough', + 'stone', + 'hill', + 'thorpe', + 'hampton', + 'wick', + ' Green', + ' Park', + ' Hill', + ' Court', + ' Heath', + ' Bridge', + ' End', + ' Common', + ' Place', + ' Cross', + ' Gardens', +]; diff --git a/src/locales/en_GB/location/index.ts b/src/locales/en_GB/location/index.ts index 6a7064fa..6039d1ae 100644 --- a/src/locales/en_GB/location/index.ts +++ b/src/locales/en_GB/location/index.ts @@ -3,19 +3,29 @@ * Run 'pnpm run generate:locales' to update. */ import type { LocationDefinitions } from '../../..'; +import building_number from './building_number'; import city from './city'; +import city_infix from './city_infix'; +import city_prefix from './city_prefix'; +import city_suffix from './city_suffix'; import county from './county'; import default_country from './default_country'; import postcode from './postcode'; import street from './street'; +import street_suffix from './street_suffix'; import uk_country from './uk_country'; const location: LocationDefinitions = { + building_number, city, + city_infix, + city_prefix, + city_suffix, county, default_country, postcode, street, + street_suffix, uk_country, }; diff --git a/src/locales/en_GB/location/street_suffix.ts b/src/locales/en_GB/location/street_suffix.ts new file mode 100644 index 00000000..1afdad60 --- /dev/null +++ b/src/locales/en_GB/location/street_suffix.ts @@ -0,0 +1,57 @@ +export default [ + 'Road', + 'Close', + 'Street', + 'Lane', + 'Avenue', + 'Drive', + 'Way', + 'Place', + 'Court', + 'Gardens', + 'Crescent', + 'Grove', + 'Terrace', + 'Hill', + 'View', + 'Walk', + 'Park', + 'Mews', + 'Rise', + 'Green', + 'Square', + 'Croft', + 'Bank', + 'Row', + 'Meadow', + 'Gate', + 'End', + 'Drove', + 'Mead', + 'Field', + 'Chase', + 'Mount', + 'Meadows', + 'Orchard', + 'Fields', + 'Yard', + 'Garth', + 'Fold', + 'Wynd', + 'Parade', + 'Vale', + 'Brae', + 'Grange', + 'Approach', + 'Wood', + 'Paddock', + 'Brow', + 'Lea', + 'Path', + 'Side', + 'Heights', + 'Copse', + 'Corner', + 'Ridge', + 'Glade', +]; |
