aboutsummaryrefslogtreecommitdiff
path: root/src/locales/hu
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/hu
parentaade09bf6a10fb22f4ebb163931cf1e98ba9ea28 (diff)
downloadfaker-e130549e82a3d59af46f2d595ed47fa9a39724a3.tar.xz
faker-e130549e82a3d59af46f2d595ed47fa9a39724a3.zip
feat(phone)!: add new style parameter (#2578)
Diffstat (limited to 'src/locales/hu')
-rw-r--r--src/locales/hu/phone_number/format/human.ts (renamed from src/locales/hu/phone_number/formats.ts)0
-rw-r--r--src/locales/hu/phone_number/format/index.ts16
-rw-r--r--src/locales/hu/phone_number/format/international.ts1
-rw-r--r--src/locales/hu/phone_number/format/national.ts6
-rw-r--r--src/locales/hu/phone_number/index.ts4
5 files changed, 25 insertions, 2 deletions
diff --git a/src/locales/hu/phone_number/formats.ts b/src/locales/hu/phone_number/format/human.ts
index a26f949f..a26f949f 100644
--- a/src/locales/hu/phone_number/formats.ts
+++ b/src/locales/hu/phone_number/format/human.ts
diff --git a/src/locales/hu/phone_number/format/index.ts b/src/locales/hu/phone_number/format/index.ts
new file mode 100644
index 00000000..36711bc1
--- /dev/null
+++ b/src/locales/hu/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/hu/phone_number/format/international.ts b/src/locales/hu/phone_number/format/international.ts
new file mode 100644
index 00000000..32466f5e
--- /dev/null
+++ b/src/locales/hu/phone_number/format/international.ts
@@ -0,0 +1 @@
+export default ['+3620#######', '+3630#######', '+3650#######', '+3670#######'];
diff --git a/src/locales/hu/phone_number/format/national.ts b/src/locales/hu/phone_number/format/national.ts
new file mode 100644
index 00000000..29de2326
--- /dev/null
+++ b/src/locales/hu/phone_number/format/national.ts
@@ -0,0 +1,6 @@
+export default [
+ '06 20 ### ####',
+ '06 30 ### ####',
+ '06 50 ### ####',
+ '06 70 ### ####',
+];
diff --git a/src/locales/hu/phone_number/index.ts b/src/locales/hu/phone_number/index.ts
index 1d7f77f1..1f3945ce 100644
--- a/src/locales/hu/phone_number/index.ts
+++ b/src/locales/hu/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;