Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(location)!: rename definition street to street_pattern #2051

Merged
merged 13 commits into from
Apr 21, 2023
2 changes: 1 addition & 1 deletion src/definitions/location.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export type LocationDefinitions = LocaleEntry<{
/**
* The patterns to generate street names.
*/
street: string[];
street_pattern: string[];
Shinigami92 marked this conversation as resolved.
Show resolved Hide resolved

/**
* The names of actual streets.
Expand Down
4 changes: 2 additions & 2 deletions src/locales/af_ZA/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import city from './city';
import default_country from './default_country';
import postcode from './postcode';
import state from './state';
import street from './street';
import street_pattern from './street_pattern';

const location: LocationDefinitions = {
city,
default_country,
postcode,
state,
street,
street_pattern,
};

export default location;
4 changes: 2 additions & 2 deletions src/locales/ar/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import default_country from './default_country';
import postcode from './postcode';
import secondary_address from './secondary_address';
import state from './state';
import street from './street';
import street_address from './street_address';
import street_pattern from './street_pattern';
import street_prefix from './street_prefix';

const location: LocationDefinitions = {
Expand All @@ -24,8 +24,8 @@ const location: LocationDefinitions = {
postcode,
secondary_address,
state,
street,
street_address,
street_pattern,
street_prefix,
};

Expand Down
4 changes: 2 additions & 2 deletions src/locales/az/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import default_country from './default_country';
import postcode from './postcode';
import secondary_address from './secondary_address';
import state from './state';
import street from './street';
import street_address from './street_address';
import street_name from './street_name';
import street_pattern from './street_pattern';
import street_suffix from './street_suffix';

const location: LocationDefinitions = {
Expand All @@ -25,9 +25,9 @@ const location: LocationDefinitions = {
postcode,
secondary_address,
state,
street,
street_address,
street_name,
street_pattern,
street_suffix,
};

Expand Down
4 changes: 2 additions & 2 deletions src/locales/cs_CZ/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import postcode from './postcode';
import secondary_address from './secondary_address';
import state from './state';
import state_abbr from './state_abbr';
import street from './street';
import street_address from './street_address';
import street_name from './street_name';
import street_pattern from './street_pattern';

const location: LocationDefinitions = {
building_number,
Expand All @@ -26,9 +26,9 @@ const location: LocationDefinitions = {
secondary_address,
state,
state_abbr,
street,
street_address,
street_name,
street_pattern,
};

export default location;
4 changes: 2 additions & 2 deletions src/locales/de/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import postcode from './postcode';
import secondary_address from './secondary_address';
import state from './state';
import state_abbr from './state_abbr';
import street from './street';
import street_address from './street_address';
import street_name from './street_name';
import street_pattern from './street_pattern';

const location: LocationDefinitions = {
building_number,
Expand All @@ -30,9 +30,9 @@ const location: LocationDefinitions = {
secondary_address,
state,
state_abbr,
street,
street_address,
street_name,
street_pattern,
};

export default location;
4 changes: 2 additions & 2 deletions src/locales/de_AT/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import postcode from './postcode';
import secondary_address from './secondary_address';
import state from './state';
import state_abbr from './state_abbr';
import street from './street';
import street_address from './street_address';
import street_name from './street_name';
import street_pattern from './street_pattern';

const location: LocationDefinitions = {
building_number,
Expand All @@ -26,9 +26,9 @@ const location: LocationDefinitions = {
secondary_address,
state,
state_abbr,
street,
street_address,
street_name,
street_pattern,
};

export default location;
4 changes: 2 additions & 2 deletions src/locales/de_CH/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import default_country from './default_country';
import postcode from './postcode';
import state from './state';
import state_abbr from './state_abbr';
import street from './street';
import street_name from './street_name';
import street_pattern from './street_pattern';

const location: LocationDefinitions = {
city,
Expand All @@ -21,8 +21,8 @@ const location: LocationDefinitions = {
postcode,
state,
state_abbr,
street,
street_name,
street_pattern,
};

export default location;
4 changes: 2 additions & 2 deletions src/locales/dv/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import city_prefix from './city_prefix';
import city_suffix from './city_suffix';
import default_country from './default_country';
import postcode from './postcode';
import street from './street';
import street_pattern from './street_pattern';
import street_suffix from './street_suffix';

const location: LocationDefinitions = {
Expand All @@ -19,7 +19,7 @@ const location: LocationDefinitions = {
city_suffix,
default_country,
postcode,
street,
street_pattern,
street_suffix,
};

Expand Down
4 changes: 2 additions & 2 deletions src/locales/el/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import type { LocationDefinitions } from '../../..';
import city from './city';
import county from './county';
import default_country from './default_country';
import street from './street';
import street_pattern from './street_pattern';

const location: LocationDefinitions = {
city,
county,
default_country,
street,
street_pattern,
};

export default location;
4 changes: 2 additions & 2 deletions src/locales/en/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import postcode from './postcode';
import secondary_address from './secondary_address';
import state from './state';
import state_abbr from './state_abbr';
import street from './street';
import street_address from './street_address';
import street_pattern from './street_pattern';
import street_suffix from './street_suffix';

const location: LocationDefinitions = {
Expand All @@ -36,8 +36,8 @@ const location: LocationDefinitions = {
secondary_address,
state,
state_abbr,
street,
street_address,
street_pattern,
street_suffix,
};

Expand Down
4 changes: 2 additions & 2 deletions src/locales/en_AU/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import default_country from './default_country';
import postcode from './postcode';
import state from './state';
import state_abbr from './state_abbr';
import street from './street';
import street_pattern from './street_pattern';
import street_suffix from './street_suffix';

const location: LocationDefinitions = {
Expand All @@ -19,7 +19,7 @@ const location: LocationDefinitions = {
postcode,
state,
state_abbr,
street,
street_pattern,
street_suffix,
};

Expand Down
4 changes: 2 additions & 2 deletions src/locales/en_AU_ocker/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import postcode from './postcode';
import region from './region';
import state from './state';
import state_abbr from './state_abbr';
import street from './street';
import street_name from './street_name';
import street_pattern from './street_pattern';
import street_suffix from './street_suffix';

const location: LocationDefinitions = {
Expand All @@ -24,8 +24,8 @@ const location: LocationDefinitions = {
region,
state,
state_abbr,
street,
street_name,
street_pattern,
street_suffix,
};

Expand Down
4 changes: 2 additions & 2 deletions src/locales/en_CA/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import default_country from './default_country';
import postcode from './postcode';
import state from './state';
import state_abbr from './state_abbr';
import street from './street';
import street_pattern from './street_pattern';

const location: LocationDefinitions = {
city,
Expand All @@ -18,7 +18,7 @@ const location: LocationDefinitions = {
postcode,
state,
state_abbr,
street,
street_pattern,
};

export default location;
4 changes: 2 additions & 2 deletions src/locales/en_GB/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import county from './county';
import default_country from './default_country';
import postcode from './postcode';
import state from './state';
import street from './street';
import street_pattern from './street_pattern';
import street_suffix from './street_suffix';

const location: LocationDefinitions = {
Expand All @@ -25,7 +25,7 @@ const location: LocationDefinitions = {
default_country,
postcode,
state,
street,
street_pattern,
street_suffix,
};

Expand Down
4 changes: 2 additions & 2 deletions src/locales/en_GH/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import city_name from './city_name';
import default_country from './default_country';
import postcode from './postcode';
import state from './state';
import street from './street';
import street_address from './street_address';
import street_pattern from './street_pattern';
import street_prefix from './street_prefix';
import street_suffix from './street_suffix';

Expand All @@ -21,8 +21,8 @@ const location: LocationDefinitions = {
default_country,
postcode,
state,
street,
street_address,
street_pattern,
street_prefix,
street_suffix,
};
Expand Down
4 changes: 2 additions & 2 deletions src/locales/en_IE/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import type { LocationDefinitions } from '../../..';
import city from './city';
import county from './county';
import default_country from './default_country';
import street from './street';
import street_pattern from './street_pattern';

const location: LocationDefinitions = {
city,
county,
default_country,
street,
street_pattern,
};

export default location;
4 changes: 2 additions & 2 deletions src/locales/en_IN/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import default_country from './default_country';
import postcode from './postcode';
import state from './state';
import state_abbr from './state_abbr';
import street from './street';
import street_pattern from './street_pattern';

const location: LocationDefinitions = {
city,
Expand All @@ -18,7 +18,7 @@ const location: LocationDefinitions = {
postcode,
state,
state_abbr,
street,
street_pattern,
};

export default location;
4 changes: 2 additions & 2 deletions src/locales/en_NG/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ import city_prefix from './city_prefix';
import default_country from './default_country';
import postcode from './postcode';
import state from './state';
import street from './street';
import street_pattern from './street_pattern';

const location: LocationDefinitions = {
city,
city_prefix,
default_country,
postcode,
state,
street,
street_pattern,
};

export default location;
4 changes: 2 additions & 2 deletions src/locales/en_US/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import city from './city';
import county from './county';
import default_country from './default_country';
import postcode_by_state from './postcode_by_state';
import street from './street';
import street_pattern from './street_pattern';

const location: LocationDefinitions = {
city,
county,
default_country,
postcode_by_state,
street,
street_pattern,
};

export default location;
4 changes: 2 additions & 2 deletions src/locales/en_ZA/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ import city_prefix from './city_prefix';
import default_country from './default_country';
import postcode from './postcode';
import state from './state';
import street from './street';
import street_pattern from './street_pattern';

const location: LocationDefinitions = {
city,
city_prefix,
default_country,
postcode,
state,
street,
street_pattern,
};

export default location;
Loading