aboutsummaryrefslogtreecommitdiff
path: root/src/locales/fa
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/fa
parentaade09bf6a10fb22f4ebb163931cf1e98ba9ea28 (diff)
downloadfaker-e130549e82a3d59af46f2d595ed47fa9a39724a3.tar.xz
faker-e130549e82a3d59af46f2d595ed47fa9a39724a3.zip
feat(phone)!: add new style parameter (#2578)
Diffstat (limited to 'src/locales/fa')
-rw-r--r--src/locales/fa/phone_number/format/human.ts (renamed from src/locales/fa/phone_number/formats.ts)0
-rw-r--r--src/locales/fa/phone_number/format/index.ts16
-rw-r--r--src/locales/fa/phone_number/format/international.ts15
-rw-r--r--src/locales/fa/phone_number/format/national.ts15
-rw-r--r--src/locales/fa/phone_number/index.ts4
5 files changed, 48 insertions, 2 deletions
diff --git a/src/locales/fa/phone_number/formats.ts b/src/locales/fa/phone_number/format/human.ts
index d15fdb9e..d15fdb9e 100644
--- a/src/locales/fa/phone_number/formats.ts
+++ b/src/locales/fa/phone_number/format/human.ts
diff --git a/src/locales/fa/phone_number/format/index.ts b/src/locales/fa/phone_number/format/index.ts
new file mode 100644
index 00000000..36711bc1
--- /dev/null
+++ b/src/locales/fa/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/fa/phone_number/format/international.ts b/src/locales/fa/phone_number/format/international.ts
new file mode 100644
index 00000000..e8360ead
--- /dev/null
+++ b/src/locales/fa/phone_number/format/international.ts
@@ -0,0 +1,15 @@
+export default [
+ '+9821########',
+ '+9831########',
+ '+9841########',
+ '+9845########',
+ '+9861########',
+ '+9851########',
+ '+9858########',
+ '+9828########',
+ '+9826########',
+ '+9844########',
+ '+9824########',
+ '+9823########',
+ '+9876########',
+];
diff --git a/src/locales/fa/phone_number/format/national.ts b/src/locales/fa/phone_number/format/national.ts
new file mode 100644
index 00000000..f7346255
--- /dev/null
+++ b/src/locales/fa/phone_number/format/national.ts
@@ -0,0 +1,15 @@
+export default [
+ '021 #### ####',
+ '031 #### ####',
+ '041 #### ####',
+ '045 #### ####',
+ '061 #### ####',
+ '051 #### ####',
+ '058 #### ####',
+ '028 #### ####',
+ '026 #### ####',
+ '044 #### ####',
+ '024 #### ####',
+ '023 #### ####',
+ '076 #### ####',
+];
diff --git a/src/locales/fa/phone_number/index.ts b/src/locales/fa/phone_number/index.ts
index 1d7f77f1..1f3945ce 100644
--- a/src/locales/fa/phone_number/index.ts
+++ b/src/locales/fa/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;