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

feat(person): split prefix into gendered versions #1665

Merged
merged 14 commits into from
Jan 9, 2023
Merged
Show file tree
Hide file tree
Changes from 11 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
1 change: 1 addition & 0 deletions src/locales/ar/person/female_prefix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['سيدة', 'آنسة', 'دكتور', 'بروفيسور'];
4 changes: 4 additions & 0 deletions src/locales/ar/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,23 @@
*/
import type { PersonDefinitions } from '../../..';
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 male_first_name from './male_first_name';
import male_prefix from './male_prefix';
import name_ from './name';
import prefix from './prefix';
import suffix from './suffix';
import title from './title';

const person: PersonDefinitions = {
female_first_name,
female_prefix,
first_name,
last_name,
male_first_name,
male_prefix,
name: name_,
prefix,
suffix,
Expand Down
1 change: 1 addition & 0 deletions src/locales/ar/person/male_prefix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['سيد', 'دكتور', 'بروفيسور'];
6 changes: 5 additions & 1 deletion src/locales/ar/person/prefix.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
export default ['سيد', 'سيدة', 'آنسة', 'دكتور', 'بروفيسور'];
import { mergeArrays } from './../../../internal/merge';
import female_prefix from './female_prefix';
import male_prefix from './male_prefix';

export default mergeArrays(female_prefix, male_prefix);
1 change: 1 addition & 0 deletions src/locales/az/person/female_prefix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default [];
ST-DDT marked this conversation as resolved.
Show resolved Hide resolved
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,19 +5,23 @@
import type { PersonDefinitions } from '../../..';
import female_first_name from './female_first_name';
import female_last_name from './female_last_name';
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_prefix from './male_prefix';
import name_ from './name';
import prefix from './prefix';
import suffix from './suffix';

const person: PersonDefinitions = {
female_first_name,
female_last_name,
female_prefix,
first_name,
male_first_name,
male_last_name,
male_prefix,
name: name_,
prefix,
suffix,
Expand Down
1 change: 1 addition & 0 deletions src/locales/az/person/male_prefix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default [];
6 changes: 5 additions & 1 deletion src/locales/az/person/prefix.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
export default [];
import { mergeArrays } from './../../../internal/merge';
import female_prefix from './female_prefix';
import male_prefix from './male_prefix';

export default mergeArrays(female_prefix, male_prefix);
1 change: 1 addition & 0 deletions src/locales/cz/person/female_prefix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['Ing.', 'Mgr.', 'JUDr.', 'MUDr.'];
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,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_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_prefix from './male_prefix';
import name_ from './name';
import prefix from './prefix';
import suffix from './suffix';
Expand All @@ -17,10 +19,12 @@ import title from './title';
const person: PersonDefinitions = {
female_first_name,
female_last_name,
female_prefix,
first_name,
last_name,
male_first_name,
male_last_name,
male_prefix,
name: name_,
prefix,
suffix,
Expand Down
1 change: 1 addition & 0 deletions src/locales/cz/person/male_prefix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['Ing.', 'Mgr.', 'JUDr.', 'MUDr.'];
6 changes: 5 additions & 1 deletion src/locales/cz/person/prefix.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
export default ['Ing.', 'Mgr.', 'JUDr.', 'MUDr.'];
import { mergeArrays } from './../../../internal/merge';
import female_prefix from './female_prefix';
import male_prefix from './male_prefix';

export default mergeArrays(female_prefix, male_prefix);
1 change: 1 addition & 0 deletions src/locales/de/person/female_prefix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['Frau', 'Dr.', 'Prof. Dr.'];
4 changes: 4 additions & 0 deletions src/locales/de/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,23 @@
*/
import type { PersonDefinitions } from '../../..';
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 male_first_name from './male_first_name';
import male_prefix from './male_prefix';
import name_ from './name';
import nobility_title_prefix from './nobility_title_prefix';
import prefix from './prefix';
import sex from './sex';

const person: PersonDefinitions = {
female_first_name,
female_prefix,
first_name,
last_name,
male_first_name,
male_prefix,
name: name_,
nobility_title_prefix,
prefix,
Expand Down
1 change: 1 addition & 0 deletions src/locales/de/person/male_prefix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['Herr', 'Dr.', 'Prof. Dr.'];
6 changes: 5 additions & 1 deletion src/locales/de/person/prefix.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
export default ['Hr.', 'Fr.', 'Dr.', 'Prof. Dr.'];
import { mergeArrays } from './../../../internal/merge';
import female_prefix from './female_prefix';
import male_prefix from './male_prefix';

export default mergeArrays(female_prefix, male_prefix);
1 change: 1 addition & 0 deletions src/locales/de_AT/person/female_prefix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['Frau', 'Dr.', 'Prof. Dr.'];
4 changes: 4 additions & 0 deletions src/locales/de_AT/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,22 @@
*/
import type { PersonDefinitions } from '../../..';
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 male_first_name from './male_first_name';
import male_prefix from './male_prefix';
import name_ from './name';
import nobility_title_prefix from './nobility_title_prefix';
import prefix from './prefix';

const person: PersonDefinitions = {
female_first_name,
female_prefix,
first_name,
last_name,
male_first_name,
male_prefix,
name: name_,
nobility_title_prefix,
prefix,
Expand Down
1 change: 1 addition & 0 deletions src/locales/de_AT/person/male_prefix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['Herr', 'Dr.', 'Prof. Dr.'];
6 changes: 5 additions & 1 deletion src/locales/de_AT/person/prefix.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
export default ['Dr.', 'Prof. Dr.'];
import { mergeArrays } from './../../../internal/merge';
import female_prefix from './female_prefix';
import male_prefix from './male_prefix';

export default mergeArrays(female_prefix, male_prefix);
1 change: 1 addition & 0 deletions src/locales/de_CH/person/female_prefix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['Frau', 'Dr.', 'Prof. Dr.'];
4 changes: 4 additions & 0 deletions src/locales/de_CH/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,21 @@
*/
import type { PersonDefinitions } from '../../..';
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 male_first_name from './male_first_name';
import male_prefix from './male_prefix';
import name_ from './name';
import prefix from './prefix';

const person: PersonDefinitions = {
female_first_name,
female_prefix,
first_name,
last_name,
male_first_name,
male_prefix,
name: name_,
prefix,
};
Expand Down
1 change: 1 addition & 0 deletions src/locales/de_CH/person/male_prefix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['Herr', 'Dr.', 'Prof. Dr.'];
6 changes: 5 additions & 1 deletion src/locales/de_CH/person/prefix.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
export default ['Hr.', 'Fr.', 'Dr.'];
import { mergeArrays } from './../../../internal/merge';
import female_prefix from './female_prefix';
import male_prefix from './male_prefix';

export default mergeArrays(female_prefix, male_prefix);
1 change: 1 addition & 0 deletions src/locales/dv/person/female_prefix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['އަމީރު', 'އަމީރާ', 'ބަނޑޭރި', 'ބޮޑު'];
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,21 +5,25 @@
import type { PersonDefinitions } from '../../..';
import female_first_name from './female_first_name';
import female_last_name from './female_last_name';
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_prefix from './male_prefix';
import name_ from './name';
import prefix from './prefix';
import sex from './sex';

const person: PersonDefinitions = {
female_first_name,
female_last_name,
female_prefix,
first_name,
last_name,
male_first_name,
male_last_name,
male_prefix,
name: name_,
prefix,
sex,
Expand Down
1 change: 1 addition & 0 deletions src/locales/dv/person/male_prefix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['އަމީރު', 'އަމީރާ', 'ބަނޑޭރި', 'ބޮޑު'];
6 changes: 5 additions & 1 deletion src/locales/dv/person/prefix.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
export default ['އަމީރު', 'އަމީރާ', 'ބަނޑޭރި', 'ބޮޑު'];
import { mergeArrays } from './../../../internal/merge';
import female_prefix from './female_prefix';
import male_prefix from './male_prefix';

export default mergeArrays(female_prefix, male_prefix);
1 change: 1 addition & 0 deletions src/locales/el/person/female_prefix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['Κυρία', 'Δόκτορ'];
4 changes: 4 additions & 0 deletions src/locales/el/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,22 @@
*/
import type { PersonDefinitions } from '../../..';
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 male_first_name from './male_first_name';
import male_prefix from './male_prefix';
import name_ from './name';
import prefix from './prefix';
import title from './title';

const person: PersonDefinitions = {
female_first_name,
female_prefix,
first_name,
last_name,
male_first_name,
male_prefix,
name: name_,
prefix,
title,
Expand Down
1 change: 1 addition & 0 deletions src/locales/el/person/male_prefix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['Κύριος', 'Δόκτορ'];
6 changes: 5 additions & 1 deletion src/locales/el/person/prefix.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
export default ['Κυρία', 'Δυς', 'Κύριος', 'Δόκτορ'];
import { mergeArrays } from './../../../internal/merge';
import female_prefix from './female_prefix';
import male_prefix from './male_prefix';

export default mergeArrays(female_prefix, male_prefix);
1 change: 1 addition & 0 deletions src/locales/en/person/female_prefix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['Mrs.', 'Ms.', 'Miss', 'Dr.'];
4 changes: 4 additions & 0 deletions src/locales/en/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ import bio_patterns from './bio_patterns';
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 male_first_name from './male_first_name';
import male_middle_name from './male_middle_name';
import male_prefix from './male_prefix';
import middle_name from './middle_name';
import name_ from './name';
import prefix from './prefix';
Expand All @@ -27,11 +29,13 @@ const person: PersonDefinitions = {
bio_supporter,
female_first_name,
female_middle_name,
female_prefix,
first_name,
gender,
last_name,
male_first_name,
male_middle_name,
male_prefix,
middle_name,
name: name_,
prefix,
Expand Down
1 change: 1 addition & 0 deletions src/locales/en/person/male_prefix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['Mr.', 'Dr.'];
6 changes: 5 additions & 1 deletion src/locales/en/person/prefix.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
export default ['Mr.', 'Mrs.', 'Ms.', 'Miss', 'Dr.'];
import { mergeArrays } from './../../../internal/merge';
import female_prefix from './female_prefix';
import male_prefix from './male_prefix';

export default mergeArrays(female_prefix, male_prefix);
1 change: 1 addition & 0 deletions src/locales/es/person/female_prefix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['Sra.', 'Sta.'];
4 changes: 4 additions & 0 deletions src/locales/es/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,23 @@
*/
import type { PersonDefinitions } from '../../..';
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 male_first_name from './male_first_name';
import male_prefix from './male_prefix';
import name_ from './name';
import prefix from './prefix';
import suffix from './suffix';
import title from './title';

const person: PersonDefinitions = {
female_first_name,
female_prefix,
first_name,
last_name,
male_first_name,
male_prefix,
name: name_,
prefix,
suffix,
Expand Down
1 change: 1 addition & 0 deletions src/locales/es/person/male_prefix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['Sr.'];
6 changes: 5 additions & 1 deletion src/locales/es/person/prefix.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
export default ['Sr.', 'Sra.', 'Sta.'];
import { mergeArrays } from './../../../internal/merge';
import female_prefix from './female_prefix';
import male_prefix from './male_prefix';

export default mergeArrays(female_prefix, male_prefix);
1 change: 1 addition & 0 deletions src/locales/es_MX/person/female_prefix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['Sra.', 'Sta.'];
4 changes: 4 additions & 0 deletions src/locales/es_MX/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,20 @@
* Run 'pnpm run generate:locales' to update.
*/
import type { PersonDefinitions } from '../../..';
import female_prefix from './female_prefix';
import first_name from './first_name';
import last_name from './last_name';
import male_prefix from './male_prefix';
import name_ from './name';
import prefix from './prefix';
import suffix from './suffix';
import title from './title';

const person: PersonDefinitions = {
female_prefix,
first_name,
last_name,
male_prefix,
name: name_,
prefix,
suffix,
Expand Down
1 change: 1 addition & 0 deletions src/locales/es_MX/person/male_prefix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['Sr.'];
6 changes: 5 additions & 1 deletion src/locales/es_MX/person/prefix.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
export default ['Sr.', 'Sra.', 'Sta.'];
import { mergeArrays } from './../../../internal/merge';
import female_prefix from './female_prefix';
import male_prefix from './male_prefix';

export default mergeArrays(female_prefix, male_prefix);
1 change: 1 addition & 0 deletions src/locales/fa/person/female_prefix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['خانم', 'دکتر'];
Loading