Skip to content

Commit

Permalink
fix(person): Incorrect behavior of name.firstName() function (#1610)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Mayer committed Dec 21, 2022
1 parent 2d0ca3f commit 4ce8e98
Show file tree
Hide file tree
Showing 34 changed files with 2,491 additions and 2,332 deletions.
8 changes: 8 additions & 0 deletions src/locales/az/person/first_name.ts
Original file line number Diff line number Diff line change
@@ -0,0 +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 mergeArrays(female_first_name, male_first_name);
2 changes: 2 additions & 0 deletions src/locales/az/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import type { PersonDefinitions } from '../../..';
import female_first_name from './female_first_name';
import female_last_name from './female_last_name';
import first_name from './first_name';
import male_first_name from './male_first_name';
import male_last_name from './male_last_name';
import name_ from './name';
Expand All @@ -14,6 +15,7 @@ import suffix from './suffix';
const person: PersonDefinitions = {
female_first_name,
female_last_name,
first_name,
male_first_name,
male_last_name,
name: name_,
Expand Down

0 comments on commit 4ce8e98

Please sign in to comment.