Skip to content

Commit

Permalink
feat: add some en locale city prefixes and suffixes (#685)
Browse files Browse the repository at this point in the history
  • Loading branch information
import-brain authored Apr 5, 2022
1 parent f22b93a commit 955ea43
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 11 deletions.
11 changes: 10 additions & 1 deletion src/locales/en/address/city_prefix.ts
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
export default ['North', 'East', 'West', 'South', 'New', 'Lake', 'Port'];
export default [
'North',
'East',
'West',
'South',
'New',
'Lake',
'Port',
'Fort',
];
5 changes: 5 additions & 0 deletions src/locales/en/address/city_suffix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,22 @@ export default [
'ville',
'berg',
'burgh',
'boro',
'borough',
'bury',
'view',
'port',
'mouth',
'stad',
'stead',
'furt',
'chester',
'cester',
'mouth',
'fort',
'field',
'haven',
'side',
'shire',
'worth',
];
12 changes: 6 additions & 6 deletions test/address.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const seededRuns = [
{
seed: 42,
expectations: {
city: 'Lake Valentine',
city: 'Port Valentine',
cityPrefix: 'West',
citySuffix: 'bury',
cityName: 'Gulfport',
Expand Down Expand Up @@ -35,9 +35,9 @@ const seededRuns = [
{
seed: 1337,
expectations: {
city: 'South Carmelo',
cityPrefix: 'East',
citySuffix: 'berg',
city: 'New Carmelo',
cityPrefix: 'West',
citySuffix: 'boro',
cityName: 'Dubuque',
streetName: 'Carmelo Forks',
streetPrefix: 'a',
Expand Down Expand Up @@ -66,8 +66,8 @@ const seededRuns = [
seed: 1211,
expectations: {
city: 'La Crosse',
cityPrefix: 'Port',
citySuffix: 'side',
cityPrefix: 'Fort',
citySuffix: 'shire',
cityName: 'Urbana',
streetName: 'Trantow Via',
streetPrefix: 'c',
Expand Down
8 changes: 4 additions & 4 deletions test/helpers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const seededRuns = [
},
],
address: {
city: 'Leopoldbury',
city: 'Leopoldview',
country: 'Aruba',
geo: {
lat: '51.3317',
Expand Down Expand Up @@ -123,7 +123,7 @@ const seededRuns = [
},
userCard: {
address: {
city: 'North Wainochester',
city: 'North Wainomouth',
geo: {
lat: '4.4562',
lng: '-177.4562',
Expand Down Expand Up @@ -396,7 +396,7 @@ const seededRuns = [
},
contextualCard: {
address: {
city: 'Susieville',
city: 'Susieberg',
geo: {
lat: '-88.0651',
lng: '-37.2858',
Expand All @@ -421,7 +421,7 @@ const seededRuns = [
},
userCard: {
address: {
city: 'Reingerfort',
city: 'Reingerfield',
geo: {
lat: '73.0714',
lng: '-108.2073',
Expand Down

0 comments on commit 955ea43

Please sign in to comment.