aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatt Mayer <[email protected]>2023-01-03 14:54:21 +0700
committerGitHub <[email protected]>2023-01-03 08:54:21 +0100
commit84b3c20c7d4459e820bbce65b64201b29283b149 (patch)
tree796f70d44e35df83924ec2f75a0b9528b55122f8 /src
parentb8c522ea7ecce63f64392edcbf181cb532828cfb (diff)
downloadfaker-84b3c20c7d4459e820bbce65b64201b29283b149.tar.xz
faker-84b3c20c7d4459e820bbce65b64201b29283b149.zip
chore(locale): split ne first_names to female and male (#1705)
Diffstat (limited to 'src')
-rw-r--r--src/locales/ne/person/female_first_name.ts20
-rw-r--r--src/locales/ne/person/first_name.ts65
-rw-r--r--src/locales/ne/person/index.ts4
-rw-r--r--src/locales/ne/person/male_first_name.ts39
4 files changed, 71 insertions, 57 deletions
diff --git a/src/locales/ne/person/female_first_name.ts b/src/locales/ne/person/female_first_name.ts
new file mode 100644
index 00000000..464a2588
--- /dev/null
+++ b/src/locales/ne/person/female_first_name.ts
@@ -0,0 +1,20 @@
+export default [
+ 'Ajita',
+ 'Amita',
+ 'Ashmi',
+ 'Asmita',
+ 'Bina',
+ 'Deepika',
+ 'Laxmi',
+ 'Manisha',
+ 'Nikita',
+ 'Pooja',
+ 'Rajina',
+ 'Ratna',
+ 'Sarita',
+ 'Shilpa',
+ 'Shirisha',
+ 'Shristi',
+ 'Sunita',
+ 'Susan',
+];
diff --git a/src/locales/ne/person/first_name.ts b/src/locales/ne/person/first_name.ts
index 997cf459..40a647ec 100644
--- a/src/locales/ne/person/first_name.ts
+++ b/src/locales/ne/person/first_name.ts
@@ -1,57 +1,8 @@
-export default [
- 'Aarav',
- 'Ajita',
- 'Amit',
- 'Amita',
- 'Amrit',
- 'Arijit',
- 'Ashmi',
- 'Asmita',
- 'Bibek',
- 'Bijay',
- 'Bikash',
- 'Bina',
- 'Bishal',
- 'Bishnu',
- 'Buddha',
- 'Deepika',
- 'Dipendra',
- 'Gagan',
- 'Ganesh',
- 'Khem',
- 'Krishna',
- 'Laxmi',
- 'Manisha',
- 'Nabin',
- 'Nikita',
- 'Niraj',
- 'Nischal',
- 'Padam',
- 'Pooja',
- 'Prabin',
- 'Prakash',
- 'Prashant',
- 'Prem',
- 'Purna',
- 'Rajendra',
- 'Rajina',
- 'Raju',
- 'Rakesh',
- 'Ranjan',
- 'Ratna',
- 'Sagar',
- 'Sandeep',
- 'Sanjay',
- 'Santosh',
- 'Sarita',
- 'Shilpa',
- 'Shirisha',
- 'Shristi',
- 'Siddhartha',
- 'Subash',
- 'Sumeet',
- 'Sunita',
- 'Suraj',
- 'Susan',
- 'Sushant',
-];
+// 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);
diff --git a/src/locales/ne/person/index.ts b/src/locales/ne/person/index.ts
index bb956ea5..b61cf108 100644
--- a/src/locales/ne/person/index.ts
+++ b/src/locales/ne/person/index.ts
@@ -3,12 +3,16 @@
* Run 'pnpm run generate:locales' to update.
*/
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 male_first_name from './male_first_name';
const person: PersonDefinitions = {
+ female_first_name,
first_name,
last_name,
+ male_first_name,
};
export default person;
diff --git a/src/locales/ne/person/male_first_name.ts b/src/locales/ne/person/male_first_name.ts
new file mode 100644
index 00000000..99c663c8
--- /dev/null
+++ b/src/locales/ne/person/male_first_name.ts
@@ -0,0 +1,39 @@
+export default [
+ 'Aarav',
+ 'Amit',
+ 'Amrit',
+ 'Arijit',
+ 'Bibek',
+ 'Bijay',
+ 'Bikash',
+ 'Bishal',
+ 'Bishnu',
+ 'Buddha',
+ 'Dipendra',
+ 'Gagan',
+ 'Ganesh',
+ 'Khem',
+ 'Krishna',
+ 'Nabin',
+ 'Niraj',
+ 'Nischal',
+ 'Padam',
+ 'Prabin',
+ 'Prakash',
+ 'Prashant',
+ 'Prem',
+ 'Purna',
+ 'Rajendra',
+ 'Raju',
+ 'Rakesh',
+ 'Ranjan',
+ 'Sagar',
+ 'Sandeep',
+ 'Sanjay',
+ 'Santosh',
+ 'Siddhartha',
+ 'Subash',
+ 'Sumeet',
+ 'Suraj',
+ 'Sushant',
+];