diff options
| author | Matt Mayer <[email protected]> | 2024-03-12 18:01:00 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-03-12 11:01:00 +0000 |
| commit | e130549e82a3d59af46f2d595ed47fa9a39724a3 (patch) | |
| tree | 13756af384807ff792a8aa8a4d2c62dda056e613 /src/locales/it | |
| parent | aade09bf6a10fb22f4ebb163931cf1e98ba9ea28 (diff) | |
| download | faker-e130549e82a3d59af46f2d595ed47fa9a39724a3.tar.xz faker-e130549e82a3d59af46f2d595ed47fa9a39724a3.zip | |
feat(phone)!: add new style parameter (#2578)
Diffstat (limited to 'src/locales/it')
| -rw-r--r-- | src/locales/it/phone_number/format/human.ts (renamed from src/locales/it/phone_number/formats.ts) | 0 | ||||
| -rw-r--r-- | src/locales/it/phone_number/format/index.ts | 16 | ||||
| -rw-r--r-- | src/locales/it/phone_number/format/international.ts | 9 | ||||
| -rw-r--r-- | src/locales/it/phone_number/format/national.ts | 9 | ||||
| -rw-r--r-- | src/locales/it/phone_number/index.ts | 4 |
5 files changed, 36 insertions, 2 deletions
diff --git a/src/locales/it/phone_number/formats.ts b/src/locales/it/phone_number/format/human.ts index 61c60403..61c60403 100644 --- a/src/locales/it/phone_number/formats.ts +++ b/src/locales/it/phone_number/format/human.ts diff --git a/src/locales/it/phone_number/format/index.ts b/src/locales/it/phone_number/format/index.ts new file mode 100644 index 00000000..36711bc1 --- /dev/null +++ b/src/locales/it/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/it/phone_number/format/international.ts b/src/locales/it/phone_number/format/international.ts new file mode 100644 index 00000000..f8e9c493 --- /dev/null +++ b/src/locales/it/phone_number/format/international.ts @@ -0,0 +1,9 @@ +export default [ + '+#############', + '+###########', + '+############', + '+##############', + '+390#########', + '+390########', + '+393########', +]; diff --git a/src/locales/it/phone_number/format/national.ts b/src/locales/it/phone_number/format/national.ts new file mode 100644 index 00000000..3ddce087 --- /dev/null +++ b/src/locales/it/phone_number/format/national.ts @@ -0,0 +1,9 @@ +export default [ + '##########', + '## ## ## ##', + '#########', + '###########', + '0# #### ####', + '0# ### ####', + '3## ### ###', +]; diff --git a/src/locales/it/phone_number/index.ts b/src/locales/it/phone_number/index.ts index 1d7f77f1..1f3945ce 100644 --- a/src/locales/it/phone_number/index.ts +++ b/src/locales/it/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; |
