aboutsummaryrefslogtreecommitdiff
path: root/src/locales/th
diff options
context:
space:
mode:
authorMatt Mayer <[email protected]>2024-03-12 18:01:00 +0700
committerGitHub <[email protected]>2024-03-12 11:01:00 +0000
commite130549e82a3d59af46f2d595ed47fa9a39724a3 (patch)
tree13756af384807ff792a8aa8a4d2c62dda056e613 /src/locales/th
parentaade09bf6a10fb22f4ebb163931cf1e98ba9ea28 (diff)
downloadfaker-e130549e82a3d59af46f2d595ed47fa9a39724a3.tar.xz
faker-e130549e82a3d59af46f2d595ed47fa9a39724a3.zip
feat(phone)!: add new style parameter (#2578)
Diffstat (limited to 'src/locales/th')
-rw-r--r--src/locales/th/phone_number/format/human.ts (renamed from src/locales/th/phone_number/formats.ts)0
-rw-r--r--src/locales/th/phone_number/format/index.ts16
-rw-r--r--src/locales/th/phone_number/format/international.ts7
-rw-r--r--src/locales/th/phone_number/format/national.ts7
-rw-r--r--src/locales/th/phone_number/index.ts4
5 files changed, 32 insertions, 2 deletions
diff --git a/src/locales/th/phone_number/formats.ts b/src/locales/th/phone_number/format/human.ts
index f7761a4f..f7761a4f 100644
--- a/src/locales/th/phone_number/formats.ts
+++ b/src/locales/th/phone_number/format/human.ts
diff --git a/src/locales/th/phone_number/format/index.ts b/src/locales/th/phone_number/format/index.ts
new file mode 100644
index 00000000..36711bc1
--- /dev/null
+++ b/src/locales/th/phone_number/format/index.ts
@@ -0,0 +1,16 @@
+/*
+ * This file is automatically generated.
+ * Run 'pnpm run generate:locales' to update.
+ */
+import type { PhoneNumberDefinition } from '../../../..';
+import human from './human';
+import international from './international';
+import national from './national';
+
+const format: PhoneNumberDefinition['format'] = {
+ human,
+ international,
+ national,
+};
+
+export default format;
diff --git a/src/locales/th/phone_number/format/international.ts b/src/locales/th/phone_number/format/international.ts
new file mode 100644
index 00000000..bd1f7b72
--- /dev/null
+++ b/src/locales/th/phone_number/format/international.ts
@@ -0,0 +1,7 @@
+export default [
+ '+666########',
+ '+668########',
+ '+669########',
+ '+662#######',
+ '+665!######',
+];
diff --git a/src/locales/th/phone_number/format/national.ts b/src/locales/th/phone_number/format/national.ts
new file mode 100644
index 00000000..15fbf1bb
--- /dev/null
+++ b/src/locales/th/phone_number/format/national.ts
@@ -0,0 +1,7 @@
+export default [
+ '06# ### ####',
+ '08# ### ####',
+ '09# ### ####',
+ '02 ### ####',
+ '05! ### ###',
+];
diff --git a/src/locales/th/phone_number/index.ts b/src/locales/th/phone_number/index.ts
index 1d7f77f1..1f3945ce 100644
--- a/src/locales/th/phone_number/index.ts
+++ b/src/locales/th/phone_number/index.ts
@@ -3,10 +3,10 @@
* Run 'pnpm run generate:locales' to update.
*/
import type { PhoneNumberDefinition } from '../../..';
-import formats from './formats';
+import format from './format';
const phone_number: PhoneNumberDefinition = {
- formats,
+ format,
};
export default phone_number;