aboutsummaryrefslogtreecommitdiff
path: root/src/locales/th
diff options
context:
space:
mode:
authorMatt Mayer <[email protected]>2024-04-19 21:34:46 +0700
committerGitHub <[email protected]>2024-04-19 14:34:46 +0000
commit016a5b62f678013a4f9a50bda10dcf20405a6e55 (patch)
treea3d3710c3936c220355055e281bfc0d736300639 /src/locales/th
parent6c845c44e1113efca9c6bee1a976745233e09020 (diff)
downloadfaker-016a5b62f678013a4f9a50bda10dcf20405a6e55.tar.xz
faker-016a5b62f678013a4f9a50bda10dcf20405a6e55.zip
fix(person): workaround for inherited first- and lastNames (#2834)
Diffstat (limited to 'src/locales/th')
-rw-r--r--src/locales/th/person/first_name.ts8
-rw-r--r--src/locales/th/person/index.ts2
2 files changed, 10 insertions, 0 deletions
diff --git a/src/locales/th/person/first_name.ts b/src/locales/th/person/first_name.ts
new file mode 100644
index 00000000..40a647ec
--- /dev/null
+++ b/src/locales/th/person/first_name.ts
@@ -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);
diff --git a/src/locales/th/person/index.ts b/src/locales/th/person/index.ts
index 5cf85368..3099abd6 100644
--- a/src/locales/th/person/index.ts
+++ b/src/locales/th/person/index.ts
@@ -5,6 +5,7 @@
import type { PersonDefinition } 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';
@@ -15,6 +16,7 @@ import sex from './sex';
const person: PersonDefinition = {
female_first_name,
female_prefix,
+ first_name,
last_name,
male_first_name,
male_prefix,