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: rename patterns to pattern #2059

Merged
merged 2 commits into from
Apr 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/definitions/company.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export type CompanyDefinitions = LocaleEntry<{
/**
* A list of patterns used to generate company names.
*/
name_patterns: string[];
name_pattern: string[];

/**
* Catchphrase nouns that can be displayed to an end user.
Expand Down
8 changes: 4 additions & 4 deletions src/definitions/person.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ export type PersonDefinitions = LocaleEntry<{
/**
* A weighted list of patterns used to generate last names.
*/
last_name_patterns?: Array<{ value: string; weight: number }>;
male_last_name_patterns?: Array<{ value: string; weight: number }>;
female_last_name_patterns?: Array<{ value: string; weight: number }>;
last_name_pattern?: Array<{ value: string; weight: number }>;
male_last_name_pattern?: Array<{ value: string; weight: number }>;
female_last_name_pattern?: Array<{ value: string; weight: number }>;

bio_patterns?: string[];
bio_pattern?: string[];

title: PersonTitleDefinitions;

Expand Down
4 changes: 2 additions & 2 deletions src/locales/af_ZA/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import type { PersonDefinitions } from '../../..';
import female_first_name from './female_first_name';
import first_name from './first_name';
import last_name from './last_name';
import last_name_patterns from './last_name_patterns';
import last_name_pattern from './last_name_pattern';
import male_first_name from './male_first_name';

const person: PersonDefinitions = {
female_first_name,
first_name,
last_name,
last_name_patterns,
last_name_pattern,
male_first_name,
};

Expand Down
4 changes: 2 additions & 2 deletions src/locales/ar/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import female_first_name from './female_first_name';
import female_prefix from './female_prefix';
import first_name from './first_name';
import last_name from './last_name';
import last_name_patterns from './last_name_patterns';
import last_name_pattern from './last_name_pattern';
import male_first_name from './male_first_name';
import male_prefix from './male_prefix';
import name_ from './name';
Expand All @@ -20,7 +20,7 @@ const person: PersonDefinitions = {
female_prefix,
first_name,
last_name,
last_name_patterns,
last_name_pattern,
male_first_name,
male_prefix,
name: name_,
Expand Down
4 changes: 2 additions & 2 deletions src/locales/az/company/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
* Run 'pnpm run generate:locales' to update.
*/
import type { CompanyDefinitions } from '../../..';
import name_patterns from './name_patterns';
import name_pattern from './name_pattern';
import prefix from './prefix';
import suffix from './suffix';

const company: CompanyDefinitions = {
name_patterns,
name_pattern,
prefix,
suffix,
};
Expand Down
8 changes: 4 additions & 4 deletions src/locales/az/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
import type { PersonDefinitions } from '../../..';
import female_first_name from './female_first_name';
import female_last_name from './female_last_name';
import female_last_name_patterns from './female_last_name_patterns';
import female_last_name_pattern from './female_last_name_pattern';
import female_prefix from './female_prefix';
import first_name from './first_name';
import male_first_name from './male_first_name';
import male_last_name from './male_last_name';
import male_last_name_patterns from './male_last_name_patterns';
import male_last_name_pattern from './male_last_name_pattern';
import male_prefix from './male_prefix';
import name_ from './name';
import prefix from './prefix';
Expand All @@ -19,12 +19,12 @@ import suffix from './suffix';
const person: PersonDefinitions = {
female_first_name,
female_last_name,
female_last_name_patterns,
female_last_name_pattern,
female_prefix,
first_name,
male_first_name,
male_last_name,
male_last_name_patterns,
male_last_name_pattern,
male_prefix,
name: name_,
prefix,
Expand Down
4 changes: 2 additions & 2 deletions src/locales/cs_CZ/company/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
* Run 'pnpm run generate:locales' to update.
*/
import type { CompanyDefinitions } from '../../..';
import name_patterns from './name_patterns';
import name_pattern from './name_pattern';
import suffix from './suffix';

const company: CompanyDefinitions = {
name_patterns,
name_pattern,
suffix,
};

Expand Down
8 changes: 4 additions & 4 deletions src/locales/cs_CZ/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
import type { PersonDefinitions } from '../../..';
import female_first_name from './female_first_name';
import female_last_name from './female_last_name';
import female_last_name_patterns from './female_last_name_patterns';
import female_last_name_pattern from './female_last_name_pattern';
import female_prefix from './female_prefix';
import first_name from './first_name';
import last_name from './last_name';
import male_first_name from './male_first_name';
import male_last_name from './male_last_name';
import male_last_name_patterns from './male_last_name_patterns';
import male_last_name_pattern from './male_last_name_pattern';
import male_prefix from './male_prefix';
import name_ from './name';
import prefix from './prefix';
Expand All @@ -21,13 +21,13 @@ import title from './title';
const person: PersonDefinitions = {
female_first_name,
female_last_name,
female_last_name_patterns,
female_last_name_pattern,
female_prefix,
first_name,
last_name,
male_first_name,
male_last_name,
male_last_name_patterns,
male_last_name_pattern,
male_prefix,
name: name_,
prefix,
Expand Down
4 changes: 2 additions & 2 deletions src/locales/de/company/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
*/
import type { CompanyDefinitions } from '../../..';
import legal_form from './legal_form';
import name_patterns from './name_patterns';
import name_pattern from './name_pattern';
import suffix from './suffix';

const company: CompanyDefinitions = {
legal_form,
name_patterns,
name_pattern,
suffix,
};

Expand Down
4 changes: 2 additions & 2 deletions src/locales/de/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import female_first_name from './female_first_name';
import female_prefix from './female_prefix';
import first_name from './first_name';
import last_name from './last_name';
import last_name_patterns from './last_name_patterns';
import last_name_pattern from './last_name_pattern';
import male_first_name from './male_first_name';
import male_prefix from './male_prefix';
import name_ from './name';
Expand All @@ -20,7 +20,7 @@ const person: PersonDefinitions = {
female_prefix,
first_name,
last_name,
last_name_patterns,
last_name_pattern,
male_first_name,
male_prefix,
name: name_,
Expand Down
4 changes: 2 additions & 2 deletions src/locales/de_AT/company/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
*/
import type { CompanyDefinitions } from '../../..';
import legal_form from './legal_form';
import name_patterns from './name_patterns';
import name_pattern from './name_pattern';
import suffix from './suffix';

const company: CompanyDefinitions = {
legal_form,
name_patterns,
name_pattern,
suffix,
};

Expand Down
4 changes: 2 additions & 2 deletions src/locales/de_AT/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import female_first_name from './female_first_name';
import female_prefix from './female_prefix';
import first_name from './first_name';
import last_name from './last_name';
import last_name_patterns from './last_name_patterns';
import last_name_pattern from './last_name_pattern';
import male_first_name from './male_first_name';
import male_prefix from './male_prefix';
import name_ from './name';
Expand All @@ -19,7 +19,7 @@ const person: PersonDefinitions = {
female_prefix,
first_name,
last_name,
last_name_patterns,
last_name_pattern,
male_first_name,
male_prefix,
name: name_,
Expand Down
4 changes: 2 additions & 2 deletions src/locales/de_CH/company/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
* Run 'pnpm run generate:locales' to update.
*/
import type { CompanyDefinitions } from '../../..';
import name_patterns from './name_patterns';
import name_pattern from './name_pattern';
import suffix from './suffix';

const company: CompanyDefinitions = {
name_patterns,
name_pattern,
suffix,
};

Expand Down
4 changes: 2 additions & 2 deletions src/locales/de_CH/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import female_first_name from './female_first_name';
import female_prefix from './female_prefix';
import first_name from './first_name';
import last_name from './last_name';
import last_name_patterns from './last_name_patterns';
import last_name_pattern from './last_name_pattern';
import male_first_name from './male_first_name';
import male_prefix from './male_prefix';
import name_ from './name';
Expand All @@ -18,7 +18,7 @@ const person: PersonDefinitions = {
female_prefix,
first_name,
last_name,
last_name_patterns,
last_name_pattern,
male_first_name,
male_prefix,
name: name_,
Expand Down
4 changes: 2 additions & 2 deletions src/locales/dv/company/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
*/
import type { CompanyDefinitions } from '../../..';
import adjective from './adjective';
import name_patterns from './name_patterns';
import name_pattern from './name_pattern';
import noun from './noun';
import suffix from './suffix';

const company: CompanyDefinitions = {
adjective,
name_patterns,
name_pattern,
noun,
suffix,
};
Expand Down
8 changes: 4 additions & 4 deletions src/locales/dv/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
import type { PersonDefinitions } from '../../..';
import female_first_name from './female_first_name';
import female_last_name from './female_last_name';
import female_last_name_patterns from './female_last_name_patterns';
import female_last_name_pattern from './female_last_name_pattern';
import female_prefix from './female_prefix';
import first_name from './first_name';
import last_name from './last_name';
import male_first_name from './male_first_name';
import male_last_name from './male_last_name';
import male_last_name_patterns from './male_last_name_patterns';
import male_last_name_pattern from './male_last_name_pattern';
import male_prefix from './male_prefix';
import name_ from './name';
import prefix from './prefix';
Expand All @@ -20,13 +20,13 @@ import sex from './sex';
const person: PersonDefinitions = {
female_first_name,
female_last_name,
female_last_name_patterns,
female_last_name_pattern,
female_prefix,
first_name,
last_name,
male_first_name,
male_last_name,
male_last_name_patterns,
male_last_name_pattern,
male_prefix,
name: name_,
prefix,
Expand Down
4 changes: 2 additions & 2 deletions src/locales/el/company/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import buzz_adjective from './buzz_adjective';
import buzz_noun from './buzz_noun';
import buzz_verb from './buzz_verb';
import descriptor from './descriptor';
import name_patterns from './name_patterns';
import name_pattern from './name_pattern';
import noun from './noun';
import suffix from './suffix';

Expand All @@ -18,7 +18,7 @@ const company: CompanyDefinitions = {
buzz_noun,
buzz_verb,
descriptor,
name_patterns,
name_pattern,
noun,
suffix,
};
Expand Down
4 changes: 2 additions & 2 deletions src/locales/el/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import female_first_name from './female_first_name';
import female_prefix from './female_prefix';
import first_name from './first_name';
import last_name from './last_name';
import last_name_patterns from './last_name_patterns';
import last_name_pattern from './last_name_pattern';
import male_first_name from './male_first_name';
import male_prefix from './male_prefix';
import name_ from './name';
Expand All @@ -19,7 +19,7 @@ const person: PersonDefinitions = {
female_prefix,
first_name,
last_name,
last_name_patterns,
last_name_pattern,
male_first_name,
male_prefix,
name: name_,
Expand Down
4 changes: 2 additions & 2 deletions src/locales/en/company/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import buzz_adjective from './buzz_adjective';
import buzz_noun from './buzz_noun';
import buzz_verb from './buzz_verb';
import descriptor from './descriptor';
import name_patterns from './name_patterns';
import name_pattern from './name_pattern';
import noun from './noun';
import suffix from './suffix';

Expand All @@ -18,7 +18,7 @@ const company: CompanyDefinitions = {
buzz_noun,
buzz_verb,
descriptor,
name_patterns,
name_pattern,
noun,
suffix,
};
Expand Down
8 changes: 4 additions & 4 deletions src/locales/en/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
*/
import type { PersonDefinitions } from '../../..';
import bio_part from './bio_part';
import bio_patterns from './bio_patterns';
import bio_pattern from './bio_pattern';
import bio_supporter from './bio_supporter';
import female_first_name from './female_first_name';
import female_middle_name from './female_middle_name';
import female_prefix from './female_prefix';
import first_name from './first_name';
import gender from './gender';
import last_name from './last_name';
import last_name_patterns from './last_name_patterns';
import last_name_pattern from './last_name_pattern';
import male_first_name from './male_first_name';
import male_middle_name from './male_middle_name';
import male_prefix from './male_prefix';
Expand All @@ -26,15 +26,15 @@ import western_zodiac_sign from './western_zodiac_sign';

const person: PersonDefinitions = {
bio_part,
bio_patterns,
bio_pattern,
bio_supporter,
female_first_name,
female_middle_name,
female_prefix,
first_name,
gender,
last_name,
last_name_patterns,
last_name_pattern,
male_first_name,
male_middle_name,
male_prefix,
Expand Down
Loading