Skip to content

Commit

Permalink
feat(locale): add hyphenated names to English locales (#1872)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmayer authored Mar 27, 2023
1 parent 8a4ca4e commit 17f0488
Show file tree
Hide file tree
Showing 121 changed files with 354 additions and 72 deletions.
2 changes: 2 additions & 0 deletions src/locales/af_ZA/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +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 male_first_name from './male_first_name';

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

Expand Down
1 change: 1 addition & 0 deletions src/locales/af_ZA/person/last_name_patterns.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default [{ value: '{{person.last_name}}', weight: 1 }];
2 changes: 2 additions & 0 deletions src/locales/ar/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +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 male_first_name from './male_first_name';
import male_prefix from './male_prefix';
import name_ from './name';
Expand All @@ -19,6 +20,7 @@ const person: PersonDefinitions = {
female_prefix,
first_name,
last_name,
last_name_patterns,
male_first_name,
male_prefix,
name: name_,
Expand Down
1 change: 1 addition & 0 deletions src/locales/ar/person/last_name_patterns.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default [{ value: '{{person.last_name}}', weight: 1 }];
1 change: 1 addition & 0 deletions src/locales/az/person/female_last_name_patterns.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default [{ value: '{{person.female_last_name}}', weight: 1 }];
4 changes: 4 additions & 0 deletions src/locales/az/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +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_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_prefix from './male_prefix';
import name_ from './name';
import prefix from './prefix';
Expand All @@ -17,10 +19,12 @@ import suffix from './suffix';
const person: PersonDefinitions = {
female_first_name,
female_last_name,
female_last_name_patterns,
female_prefix,
first_name,
male_first_name,
male_last_name,
male_last_name_patterns,
male_prefix,
name: name_,
prefix,
Expand Down
1 change: 1 addition & 0 deletions src/locales/az/person/male_last_name_patterns.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default [{ value: '{{person.male_last_name}}', weight: 1 }];
1 change: 1 addition & 0 deletions src/locales/cz/person/female_last_name_patterns.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default [{ value: '{{person.female_last_name}}', weight: 1 }];
4 changes: 4 additions & 0 deletions src/locales/cz/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +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_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_prefix from './male_prefix';
import name_ from './name';
import prefix from './prefix';
Expand All @@ -19,11 +21,13 @@ import title from './title';
const person: PersonDefinitions = {
female_first_name,
female_last_name,
female_last_name_patterns,
female_prefix,
first_name,
last_name,
male_first_name,
male_last_name,
male_last_name_patterns,
male_prefix,
name: name_,
prefix,
Expand Down
1 change: 1 addition & 0 deletions src/locales/cz/person/male_last_name_patterns.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default [{ value: '{{person.male_last_name}}', weight: 1 }];
2 changes: 2 additions & 0 deletions src/locales/de/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +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 male_first_name from './male_first_name';
import male_prefix from './male_prefix';
import name_ from './name';
Expand All @@ -19,6 +20,7 @@ const person: PersonDefinitions = {
female_prefix,
first_name,
last_name,
last_name_patterns,
male_first_name,
male_prefix,
name: name_,
Expand Down
1 change: 1 addition & 0 deletions src/locales/de/person/last_name_patterns.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default [{ value: '{{person.last_name}}', weight: 1 }];
2 changes: 2 additions & 0 deletions src/locales/de_AT/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +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 male_first_name from './male_first_name';
import male_prefix from './male_prefix';
import name_ from './name';
Expand All @@ -18,6 +19,7 @@ const person: PersonDefinitions = {
female_prefix,
first_name,
last_name,
last_name_patterns,
male_first_name,
male_prefix,
name: name_,
Expand Down
1 change: 1 addition & 0 deletions src/locales/de_AT/person/last_name_patterns.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default [{ value: '{{person.last_name}}', weight: 1 }];
2 changes: 2 additions & 0 deletions src/locales/de_CH/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +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 male_first_name from './male_first_name';
import male_prefix from './male_prefix';
import name_ from './name';
Expand All @@ -17,6 +18,7 @@ const person: PersonDefinitions = {
female_prefix,
first_name,
last_name,
last_name_patterns,
male_first_name,
male_prefix,
name: name_,
Expand Down
1 change: 1 addition & 0 deletions src/locales/de_CH/person/last_name_patterns.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default [{ value: '{{person.last_name}}', weight: 1 }];
1 change: 1 addition & 0 deletions src/locales/dv/person/female_last_name_patterns.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default [{ value: '{{person.female_last_name}}', weight: 1 }];
4 changes: 4 additions & 0 deletions src/locales/dv/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +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_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_prefix from './male_prefix';
import name_ from './name';
import prefix from './prefix';
Expand All @@ -18,11 +20,13 @@ import sex from './sex';
const person: PersonDefinitions = {
female_first_name,
female_last_name,
female_last_name_patterns,
female_prefix,
first_name,
last_name,
male_first_name,
male_last_name,
male_last_name_patterns,
male_prefix,
name: name_,
prefix,
Expand Down
1 change: 1 addition & 0 deletions src/locales/dv/person/male_last_name_patterns.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default [{ value: '{{person.male_last_name}}', weight: 1 }];
2 changes: 2 additions & 0 deletions src/locales/el/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +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 male_first_name from './male_first_name';
import male_prefix from './male_prefix';
import name_ from './name';
Expand All @@ -18,6 +19,7 @@ const person: PersonDefinitions = {
female_prefix,
first_name,
last_name,
last_name_patterns,
male_first_name,
male_prefix,
name: name_,
Expand Down
1 change: 1 addition & 0 deletions src/locales/el/person/last_name_patterns.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default [{ value: '{{person.last_name}}', weight: 1 }];
2 changes: 2 additions & 0 deletions src/locales/en/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ 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 male_first_name from './male_first_name';
import male_middle_name from './male_middle_name';
import male_prefix from './male_prefix';
Expand All @@ -33,6 +34,7 @@ const person: PersonDefinitions = {
first_name,
gender,
last_name,
last_name_patterns,
male_first_name,
male_middle_name,
male_prefix,
Expand Down
4 changes: 4 additions & 0 deletions src/locales/en/person/last_name_patterns.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default [
{ value: '{{person.last_name}}', weight: 95 },
{ value: '{{person.last_name}}-{{person.last_name}}', weight: 5 },
];
2 changes: 2 additions & 0 deletions src/locales/en_AU/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +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 male_first_name from './male_first_name';

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

Expand Down
4 changes: 4 additions & 0 deletions src/locales/en_AU/person/last_name_patterns.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default [
{ value: '{{person.last_name}}', weight: 95 },
{ value: '{{person.last_name}}-{{person.last_name}}', weight: 5 },
];
2 changes: 2 additions & 0 deletions src/locales/en_AU_ocker/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
import type { PersonDefinitions } from '../../..';
import first_name from './first_name';
import last_name from './last_name';
import last_name_patterns from './last_name_patterns';
import ocker_first_name from './ocker_first_name';

const person: PersonDefinitions = {
first_name,
last_name,
last_name_patterns,
ocker_first_name,
};

Expand Down
4 changes: 4 additions & 0 deletions src/locales/en_AU_ocker/person/last_name_patterns.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default [
{ value: '{{person.last_name}}', weight: 95 },
{ value: '{{person.last_name}}-{{person.last_name}}', weight: 5 },
];
2 changes: 2 additions & 0 deletions src/locales/en_BORK/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
*/
import type { LocaleDefinition } from '../..';
import lorem from './lorem';
import person from './person';

const en_BORK: LocaleDefinition = {
title: 'English (Bork)',
lorem,
person,
};

export default en_BORK;
12 changes: 12 additions & 0 deletions src/locales/en_BORK/person/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* This file is automatically generated.
* Run 'pnpm run generate:locales' to update.
*/
import type { PersonDefinitions } from '../../..';
import last_name_patterns from './last_name_patterns';

const person: PersonDefinitions = {
last_name_patterns,
};

export default person;
4 changes: 4 additions & 0 deletions src/locales/en_BORK/person/last_name_patterns.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default [
{ value: '{{person.last_name}}', weight: 95 },
{ value: '{{person.last_name}}-{{person.last_name}}', weight: 5 },
];
2 changes: 2 additions & 0 deletions src/locales/en_CA/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
import type { LocaleDefinition } from '../..';
import internet from './internet';
import location from './location';
import person from './person';
import phone_number from './phone_number';

const en_CA: LocaleDefinition = {
title: 'English (Canada)',
internet,
location,
person,
phone_number,
};

Expand Down
12 changes: 12 additions & 0 deletions src/locales/en_CA/person/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* This file is automatically generated.
* Run 'pnpm run generate:locales' to update.
*/
import type { PersonDefinitions } from '../../..';
import last_name_patterns from './last_name_patterns';

const person: PersonDefinitions = {
last_name_patterns,
};

export default person;
4 changes: 4 additions & 0 deletions src/locales/en_CA/person/last_name_patterns.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default [
{ value: '{{person.last_name}}', weight: 95 },
{ value: '{{person.last_name}}-{{person.last_name}}', weight: 5 },
];
2 changes: 2 additions & 0 deletions src/locales/en_IE/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ import type { LocaleDefinition } from '../..';
import cell_phone from './cell_phone';
import internet from './internet';
import location from './location';
import person from './person';
import phone_number from './phone_number';

const en_IE: LocaleDefinition = {
title: 'English (Ireland)',
cell_phone,
internet,
location,
person,
phone_number,
};

Expand Down
12 changes: 12 additions & 0 deletions src/locales/en_IE/person/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* This file is automatically generated.
* Run 'pnpm run generate:locales' to update.
*/
import type { PersonDefinitions } from '../../..';
import last_name_patterns from './last_name_patterns';

const person: PersonDefinitions = {
last_name_patterns,
};

export default person;
4 changes: 4 additions & 0 deletions src/locales/en_IE/person/last_name_patterns.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default [
{ value: '{{person.last_name}}', weight: 95 },
{ value: '{{person.last_name}}-{{person.last_name}}', weight: 5 },
];
2 changes: 2 additions & 0 deletions src/locales/en_IN/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +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 male_first_name from './male_first_name';

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

Expand Down
4 changes: 4 additions & 0 deletions src/locales/en_IN/person/last_name_patterns.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default [
{ value: '{{person.last_name}}', weight: 95 },
{ value: '{{person.last_name}}-{{person.last_name}}', weight: 5 },
];
2 changes: 2 additions & 0 deletions src/locales/en_NG/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ 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 male_first_name from './male_first_name';
import name_ from './name';

const person: PersonDefinitions = {
female_first_name,
first_name,
last_name,
last_name_patterns,
male_first_name,
name: name_,
};
Expand Down
4 changes: 4 additions & 0 deletions src/locales/en_NG/person/last_name_patterns.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default [
{ value: '{{person.last_name}}', weight: 95 },
{ value: '{{person.last_name}}-{{person.last_name}}', weight: 5 },
];
Loading

0 comments on commit 17f0488

Please sign in to comment.