Skip to content

Commit

Permalink
fix(locale): improve en_GB location addresses (#1620)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Mayer committed Dec 17, 2022
1 parent 23c2d3d commit 27d41ee
Show file tree
Hide file tree
Showing 7 changed files with 124 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/locales/en_GB/location/building_number.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['###', '##', '#'];
6 changes: 3 additions & 3 deletions src/locales/en_GB/location/city.ts
Original file line number Diff line number Diff line change
@@ -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}}',
];
1 change: 1 addition & 0 deletions src/locales/en_GB/location/city_infix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['-under-', '-over-', '-le-', '-upon-', '-on-'];
19 changes: 19 additions & 0 deletions src/locales/en_GB/location/city_prefix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
export default [
'Great',
'Little',
'St.',
'West',
'East',
'North',
'South',
'Upper',
'Lower',
'Old',
'Long',
'New',
'High',
'Nether',
'Castle',
'Upton',
'Newton',
];
33 changes: 33 additions & 0 deletions src/locales/en_GB/location/city_suffix.ts
Original file line number Diff line number Diff line change
@@ -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',
];
10 changes: 10 additions & 0 deletions src/locales/en_GB/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down
57 changes: 57 additions & 0 deletions src/locales/en_GB/location/street_suffix.ts
Original file line number Diff line number Diff line change
@@ -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',
];

0 comments on commit 27d41ee

Please sign in to comment.