Skip to content

Commit

Permalink
fix(person): use new mergeArrays function
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmayer committed Dec 18, 2022
1 parent 9a1d1d8 commit 4ed7173
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 12 deletions.
3 changes: 2 additions & 1 deletion src/locales/az/person/first_name.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// We don't have a generic first name list for this locale
// So simply concatenate male and female lists and remove any duplicates
// This avoids falling back to fallback locale
import { mergeArrays } from './../../../internal/merge';
import female_first_name from './female_first_name';
import male_first_name from './male_first_name';

export default [...new Set([...female_first_name, ...male_first_name])];
export default mergeArrays(female_first_name, male_first_name);
3 changes: 2 additions & 1 deletion src/locales/de_AT/person/first_name.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// We don't have a generic first name list for this locale
// So simply concatenate male and female lists and remove any duplicates
// This avoids falling back to fallback locale
import { mergeArrays } from './../../../internal/merge';
import female_first_name from './female_first_name';
import male_first_name from './male_first_name';

export default [...new Set([...female_first_name, ...male_first_name])];
export default mergeArrays(female_first_name, male_first_name);
3 changes: 2 additions & 1 deletion src/locales/el/person/first_name.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// We don't have a generic first name list for this locale
// So simply concatenate male and female lists and remove any duplicates
// This avoids falling back to fallback locale
import { mergeArrays } from './../../../internal/merge';
import female_first_name from './female_first_name';
import male_first_name from './male_first_name';

export default [...new Set([...female_first_name, ...male_first_name])];
export default mergeArrays(female_first_name, male_first_name);
3 changes: 2 additions & 1 deletion src/locales/en_AU/person/first_name.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// We don't have a generic first name list for this locale
// So simply concatenate male and female lists and remove any duplicates
// This avoids falling back to fallback locale
import { mergeArrays } from './../../../internal/merge';
import female_first_name from './female_first_name';
import male_first_name from './male_first_name';

export default [...new Set([...female_first_name, ...male_first_name])];
export default mergeArrays(female_first_name, male_first_name);
3 changes: 2 additions & 1 deletion src/locales/en_IN/person/first_name.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// We don't have a generic first name list for this locale
// So simply concatenate male and female lists and remove any duplicates
// This avoids falling back to fallback locale
import { mergeArrays } from './../../../internal/merge';
import female_first_name from './female_first_name';
import male_first_name from './male_first_name';

export default [...new Set([...female_first_name, ...male_first_name])];
export default mergeArrays(female_first_name, male_first_name);
3 changes: 2 additions & 1 deletion src/locales/id_ID/person/first_name.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// We don't have a generic first name list for this locale
// So simply concatenate male and female lists and remove any duplicates
// This avoids falling back to fallback locale
import { mergeArrays } from './../../../internal/merge';
import female_first_name from './female_first_name';
import male_first_name from './male_first_name';

export default [...new Set([...female_first_name, ...male_first_name])];
export default mergeArrays(female_first_name, male_first_name);
3 changes: 2 additions & 1 deletion src/locales/lv/person/first_name.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// We don't have a generic first name list for this locale
// So simply concatenate male and female lists and remove any duplicates
// This avoids falling back to fallback locale
import { mergeArrays } from './../../../internal/merge';
import female_first_name from './female_first_name';
import male_first_name from './male_first_name';

export default [...new Set([...female_first_name, ...male_first_name])];
export default mergeArrays(female_first_name, male_first_name);
3 changes: 2 additions & 1 deletion src/locales/nl_BE/person/first_name.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// We don't have a generic first name list for this locale
// So simply concatenate male and female lists and remove any duplicates
// This avoids falling back to fallback locale
import { mergeArrays } from './../../../internal/merge';
import female_first_name from './female_first_name';
import male_first_name from './male_first_name';

export default [...new Set([...female_first_name, ...male_first_name])];
export default mergeArrays(female_first_name, male_first_name);
3 changes: 2 additions & 1 deletion src/locales/ro/person/first_name.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// We don't have a generic first name list for this locale
// So simply concatenate male and female lists and remove any duplicates
// This avoids falling back to fallback locale
import { mergeArrays } from './../../../internal/merge';
import female_first_name from './female_first_name';
import male_first_name from './male_first_name';

export default [...new Set([...female_first_name, ...male_first_name])];
export default mergeArrays(female_first_name, male_first_name);
3 changes: 2 additions & 1 deletion src/locales/ru/person/first_name.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// We don't have a generic first name list for this locale
// So simply concatenate male and female lists and remove any duplicates
// This avoids falling back to fallback locale
import { mergeArrays } from './../../../internal/merge';
import female_first_name from './female_first_name';
import male_first_name from './male_first_name';

export default [...new Set([...female_first_name, ...male_first_name])];
export default mergeArrays(female_first_name, male_first_name);
3 changes: 2 additions & 1 deletion src/locales/sk/person/first_name.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// We don't have a generic first name list for this locale
// So simply concatenate male and female lists and remove any duplicates
// This avoids falling back to fallback locale
import { mergeArrays } from './../../../internal/merge';
import female_first_name from './female_first_name';
import male_first_name from './male_first_name';

export default [...new Set([...female_first_name, ...male_first_name])];
export default mergeArrays(female_first_name, male_first_name);
3 changes: 2 additions & 1 deletion src/locales/uk/person/first_name.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// We don't have a generic first name list for this locale
// So simply concatenate male and female lists and remove any duplicates
// This avoids falling back to fallback locale
import { mergeArrays } from './../../../internal/merge';
import female_first_name from './female_first_name';
import male_first_name from './male_first_name';

export default [...new Set([...female_first_name, ...male_first_name])];
export default mergeArrays(female_first_name, male_first_name);

0 comments on commit 4ed7173

Please sign in to comment.