From 46e9be7336b811409ceb95be9fe8e83e3ae2845b Mon Sep 17 00:00:00 2001 From: Matt Mayer Date: Wed, 13 Dec 2023 23:46:38 +0700 Subject: [PATCH 01/13] add support for style --- src/definitions/phone_number.ts | 4 +- src/modules/phone/index.ts | 58 ++++++++----------- test/modules/__snapshots__/phone.spec.ts.snap | 12 +--- test/modules/phone.spec.ts | 5 +- 4 files changed, 30 insertions(+), 49 deletions(-) diff --git a/src/definitions/phone_number.ts b/src/definitions/phone_number.ts index c6543c85772..3cbc7d66875 100644 --- a/src/definitions/phone_number.ts +++ b/src/definitions/phone_number.ts @@ -12,5 +12,7 @@ export type PhoneNumberDefinition = LocaleEntry<{ * * @see faker.helpers.replaceSymbolWithNumber(format): For more information about how the patterns are used. */ - formats: string[]; + human: string[]; + national: string[]; + raw: string[]; }>; diff --git a/src/modules/phone/index.ts b/src/modules/phone/index.ts index 833938d71fc..a568ad9bb7c 100644 --- a/src/modules/phone/index.ts +++ b/src/modules/phone/index.ts @@ -1,4 +1,3 @@ -import { deprecated } from '../../internal/deprecated'; import { ModuleBase } from '../../internal/module-base'; import { legacyReplaceSymbolWithNumber } from '../helpers'; @@ -22,27 +21,12 @@ export class PhoneModule extends ModuleBase { * @since 7.3.0 */ number(): string; + /** * Generates a random phone number. * - * @param format Format of the phone number. - * - * @see faker.string.numeric(): For generating a random string of numbers. - * @see faker.helpers.fromRegExp(): For generating a phone number matching a regular expression. - * - * @example - * faker.phone.number('501-###-###') // '501-039-841' - * faker.phone.number('+48 91 ### ## ##') // '+48 91 463 61 70' - * - * @since 7.3.0 - * - * @deprecated Use `faker.phone.number()` without an argument, `faker.string.numeric()` or `faker.helpers.fromRegExp()` instead. - */ - number(format: string): string; - /** - * Generates a random phone number. - * - * @param format Format of the phone number. Defaults to a random phone number format. + * @param options Options object + * @param options.style Style of the phone number. Defaults to 'human' * * @see faker.string.numeric(): For generating a random string of numbers. * @see faker.helpers.fromRegExp(): For generating a phone number matching a regular expression. @@ -52,23 +36,27 @@ export class PhoneModule extends ModuleBase { * * @since 7.3.0 */ - number(format?: string): string; - number(format?: string): string { - if (format != null) { - deprecated({ - deprecated: 'faker.phone.number(format)', - proposed: - 'faker.phone.number(), faker.string.numeric() or faker.helpers.fromRegExp()', - since: '8.1', - until: '9.0', - }); - } + number(options: { style: 'human' | 'national' | 'raw' }): string; + number(options?: { + /** + * Style of the generated phone number: + * - `'human'`: (default) A human-input phone number, e.g. 555-770-7727 or 555.770.7727 x1234 + * - `'national'`: A phone number in a standardized national format, e.g. (555) 123-4567. + * - `'raw'`: A phone number in the raw format, e.g. +15551234567 + * + * @default 'human' + */ + style: 'human' | 'national' | 'raw'; + }): string { + const { style } = options ?? { style: 'human' }; + const styleDefinitions = { + human: this.faker.definitions.phone_number.human, + national: this.faker.definitions.phone_number.national, + raw: this.faker.definitions.phone_number.raw, + }; - format = - format ?? - this.faker.helpers.arrayElement( - this.faker.definitions.phone_number.formats - ); + const definitions = styleDefinitions[style] || styleDefinitions.human; + const format = this.faker.helpers.arrayElement(definitions); return legacyReplaceSymbolWithNumber(this.faker, format); } diff --git a/test/modules/__snapshots__/phone.spec.ts.snap b/test/modules/__snapshots__/phone.spec.ts.snap index a3809065def..26f21a26956 100644 --- a/test/modules/__snapshots__/phone.spec.ts.snap +++ b/test/modules/__snapshots__/phone.spec.ts.snap @@ -2,18 +2,12 @@ exports[`phone > 42 > imei 1`] = `"37-917755-141004-5"`; -exports[`phone > 42 > number > format 1`] = `"379-177-5514"`; - -exports[`phone > 42 > number > noArgs 1`] = `"(891) 775-5141 x004"`; +exports[`phone > 42 > number 1`] = `"(891) 775-5141 x004"`; exports[`phone > 1211 > imei 1`] = `"94-872190-616274-4"`; -exports[`phone > 1211 > number > format 1`] = `"948-721-9061"`; - -exports[`phone > 1211 > number > noArgs 1`] = `"1-587-319-0616 x27431"`; +exports[`phone > 1211 > number 1`] = `"1-587-319-0616 x27431"`; exports[`phone > 1337 > imei 1`] = `"25-122540-325523-4"`; -exports[`phone > 1337 > number > format 1`] = `"251-225-4032"`; - -exports[`phone > 1337 > number > noArgs 1`] = `"612-454-0325 x523"`; +exports[`phone > 1337 > number 1`] = `"612-454-0325 x523"`; diff --git a/test/modules/phone.spec.ts b/test/modules/phone.spec.ts index 4ee4241703d..81ed42dccc4 100644 --- a/test/modules/phone.spec.ts +++ b/test/modules/phone.spec.ts @@ -9,10 +9,7 @@ const NON_SEEDED_BASED_RUN = 25; describe('phone', () => { seededTests(faker, 'phone', (t) => { t.it('imei'); - - t.describe('number', (t) => { - t.it('noArgs').it('format', '###-###-####'); - }); + t.it('number'); }); describe.each(times(NON_SEEDED_BASED_RUN).map(() => faker.seed()))( From 60f96727f4bf7ab51789df007d08b55d2c0db5b1 Mon Sep 17 00:00:00 2001 From: Matt Mayer Date: Thu, 14 Dec 2023 00:06:28 +0700 Subject: [PATCH 02/13] migrate definitions --- .../phone_number/{formats.ts => human.ts} | 0 src/locales/af_ZA/phone_number/index.ts | 8 +- src/locales/af_ZA/phone_number/national.ts | 9 ++ src/locales/af_ZA/phone_number/raw.ts | 9 ++ .../az/phone_number/{formats.ts => human.ts} | 0 src/locales/az/phone_number/index.ts | 8 +- src/locales/az/phone_number/national.ts | 1 + src/locales/az/phone_number/raw.ts | 1 + .../phone_number/{formats.ts => human.ts} | 0 src/locales/cs_CZ/phone_number/index.ts | 8 +- src/locales/cs_CZ/phone_number/national.ts | 1 + src/locales/cs_CZ/phone_number/raw.ts | 6 ++ .../da/phone_number/{formats.ts => human.ts} | 0 src/locales/da/phone_number/index.ts | 8 +- src/locales/da/phone_number/national.ts | 1 + src/locales/da/phone_number/raw.ts | 1 + .../de/phone_number/{formats.ts => human.ts} | 0 src/locales/de/phone_number/index.ts | 8 +- src/locales/de/phone_number/national.ts | 1 + src/locales/de/phone_number/raw.ts | 1 + .../phone_number/{formats.ts => human.ts} | 0 src/locales/de_AT/phone_number/index.ts | 8 +- src/locales/de_AT/phone_number/national.ts | 1 + src/locales/de_AT/phone_number/raw.ts | 1 + .../phone_number/{formats.ts => human.ts} | 0 src/locales/de_CH/phone_number/index.ts | 8 +- src/locales/de_CH/phone_number/national.ts | 8 ++ src/locales/de_CH/phone_number/raw.ts | 8 ++ .../dv/phone_number/{formats.ts => human.ts} | 0 src/locales/dv/phone_number/index.ts | 8 +- src/locales/dv/phone_number/national.ts | 9 ++ src/locales/dv/phone_number/raw.ts | 9 ++ .../el/phone_number/{formats.ts => human.ts} | 0 src/locales/el/phone_number/index.ts | 8 +- src/locales/el/phone_number/national.ts | 54 ++++++++++++ src/locales/el/phone_number/raw.ts | 54 ++++++++++++ .../en/phone_number/{formats.ts => human.ts} | 0 src/locales/en/phone_number/index.ts | 8 +- src/locales/en/phone_number/national.ts | 1 + src/locales/en/phone_number/raw.ts | 1 + .../phone_number/{formats.ts => human.ts} | 0 src/locales/en_AU/phone_number/index.ts | 8 +- src/locales/en_AU/phone_number/national.ts | 1 + src/locales/en_AU/phone_number/raw.ts | 1 + .../phone_number/{formats.ts => human.ts} | 0 src/locales/en_AU_ocker/phone_number/index.ts | 8 +- .../en_AU_ocker/phone_number/national.ts | 1 + src/locales/en_AU_ocker/phone_number/raw.ts | 1 + .../phone_number/{formats.ts => human.ts} | 0 src/locales/en_CA/phone_number/index.ts | 8 +- src/locales/en_CA/phone_number/national.ts | 1 + src/locales/en_CA/phone_number/raw.ts | 1 + .../phone_number/{formats.ts => human.ts} | 0 src/locales/en_GB/phone_number/index.ts | 8 +- src/locales/en_GB/phone_number/national.ts | 16 ++++ src/locales/en_GB/phone_number/raw.ts | 16 ++++ .../phone_number/{formats.ts => human.ts} | 0 src/locales/en_GH/phone_number/index.ts | 8 +- src/locales/en_GH/phone_number/national.ts | 15 ++++ src/locales/en_GH/phone_number/raw.ts | 15 ++++ .../phone_number/{formats.ts => human.ts} | 0 src/locales/en_HK/phone_number/index.ts | 8 +- src/locales/en_HK/phone_number/national.ts | 9 ++ src/locales/en_HK/phone_number/raw.ts | 9 ++ .../phone_number/{formats.ts => human.ts} | 0 src/locales/en_IE/phone_number/index.ts | 8 +- src/locales/en_IE/phone_number/national.ts | 51 +++++++++++ src/locales/en_IE/phone_number/raw.ts | 51 +++++++++++ .../phone_number/{formats.ts => human.ts} | 0 src/locales/en_IN/phone_number/index.ts | 8 +- src/locales/en_IN/phone_number/national.ts | 6 ++ src/locales/en_IN/phone_number/raw.ts | 6 ++ .../phone_number/{formats.ts => human.ts} | 0 src/locales/en_NG/phone_number/index.ts | 8 +- src/locales/en_NG/phone_number/national.ts | 7 ++ src/locales/en_NG/phone_number/raw.ts | 7 ++ .../phone_number/{formats.ts => human.ts} | 0 src/locales/en_ZA/phone_number/index.ts | 8 +- src/locales/en_ZA/phone_number/national.ts | 10 +++ src/locales/en_ZA/phone_number/raw.ts | 10 +++ .../es/phone_number/{formats.ts => human.ts} | 0 src/locales/es/phone_number/index.ts | 8 +- src/locales/es/phone_number/national.ts | 1 + src/locales/es/phone_number/raw.ts | 1 + .../phone_number/{formats.ts => human.ts} | 0 src/locales/es_MX/phone_number/index.ts | 8 +- src/locales/es_MX/phone_number/national.ts | 1 + src/locales/es_MX/phone_number/raw.ts | 1 + .../fa/phone_number/{formats.ts => human.ts} | 0 src/locales/fa/phone_number/index.ts | 8 +- src/locales/fa/phone_number/national.ts | 15 ++++ src/locales/fa/phone_number/raw.ts | 15 ++++ .../fr/phone_number/{formats.ts => human.ts} | 0 src/locales/fr/phone_number/index.ts | 8 +- src/locales/fr/phone_number/national.ts | 9 ++ src/locales/fr/phone_number/raw.ts | 9 ++ .../phone_number/{formats.ts => human.ts} | 0 src/locales/fr_BE/phone_number/index.ts | 8 +- src/locales/fr_BE/phone_number/national.ts | 46 ++++++++++ src/locales/fr_BE/phone_number/raw.ts | 46 ++++++++++ .../phone_number/{formats.ts => human.ts} | 0 src/locales/fr_CA/phone_number/index.ts | 8 +- src/locales/fr_CA/phone_number/national.ts | 1 + src/locales/fr_CA/phone_number/raw.ts | 1 + .../phone_number/{formats.ts => human.ts} | 0 src/locales/fr_CH/phone_number/index.ts | 8 +- src/locales/fr_CH/phone_number/national.ts | 8 ++ src/locales/fr_CH/phone_number/raw.ts | 8 ++ .../phone_number/{formats.ts => human.ts} | 0 src/locales/fr_LU/phone_number/index.ts | 8 +- src/locales/fr_LU/phone_number/national.ts | 1 + src/locales/fr_LU/phone_number/raw.ts | 1 + .../he/phone_number/{formats.ts => human.ts} | 0 src/locales/he/phone_number/index.ts | 8 +- src/locales/he/phone_number/national.ts | 8 ++ src/locales/he/phone_number/raw.ts | 8 ++ .../hr/phone_number/{formats.ts => human.ts} | 0 src/locales/hr/phone_number/index.ts | 8 +- src/locales/hr/phone_number/national.ts | 1 + src/locales/hr/phone_number/raw.ts | 1 + .../hu/phone_number/{formats.ts => human.ts} | 0 src/locales/hu/phone_number/index.ts | 8 +- src/locales/hu/phone_number/national.ts | 6 ++ src/locales/hu/phone_number/raw.ts | 1 + .../hy/phone_number/{formats.ts => human.ts} | 0 src/locales/hy/phone_number/index.ts | 8 +- src/locales/hy/phone_number/national.ts | 1 + src/locales/hy/phone_number/raw.ts | 1 + .../phone_number/{formats.ts => human.ts} | 0 src/locales/id_ID/phone_number/index.ts | 8 +- src/locales/id_ID/phone_number/national.ts | 20 +++++ src/locales/id_ID/phone_number/raw.ts | 20 +++++ .../it/phone_number/{formats.ts => human.ts} | 0 src/locales/it/phone_number/index.ts | 8 +- src/locales/it/phone_number/national.ts | 9 ++ src/locales/it/phone_number/raw.ts | 9 ++ .../ja/phone_number/{formats.ts => human.ts} | 0 src/locales/ja/phone_number/index.ts | 8 +- src/locales/ja/phone_number/national.ts | 1 + src/locales/ja/phone_number/raw.ts | 1 + .../phone_number/{formats.ts => human.ts} | 0 src/locales/ka_GE/phone_number/index.ts | 8 +- src/locales/ka_GE/phone_number/national.ts | 1 + src/locales/ka_GE/phone_number/raw.ts | 1 + .../ko/phone_number/{formats.ts => human.ts} | 0 src/locales/ko/phone_number/index.ts | 8 +- src/locales/ko/phone_number/national.ts | 1 + src/locales/ko/phone_number/raw.ts | 1 + .../lv/phone_number/{formats.ts => human.ts} | 0 src/locales/lv/phone_number/index.ts | 8 +- src/locales/lv/phone_number/national.ts | 1 + src/locales/lv/phone_number/raw.ts | 1 + .../mk/phone_number/{formats.ts => human.ts} | 0 src/locales/mk/phone_number/index.ts | 8 +- src/locales/mk/phone_number/national.ts | 1 + src/locales/mk/phone_number/raw.ts | 1 + .../phone_number/{formats.ts => human.ts} | 0 src/locales/nb_NO/phone_number/index.ts | 8 +- src/locales/nb_NO/phone_number/national.ts | 1 + src/locales/nb_NO/phone_number/raw.ts | 1 + .../ne/phone_number/{formats.ts => human.ts} | 0 src/locales/ne/phone_number/index.ts | 8 +- src/locales/ne/phone_number/national.ts | 1 + src/locales/ne/phone_number/raw.ts | 1 + .../nl/phone_number/{formats.ts => human.ts} | 0 src/locales/nl/phone_number/index.ts | 8 +- src/locales/nl/phone_number/national.ts | 1 + src/locales/nl/phone_number/raw.ts | 1 + .../phone_number/{formats.ts => human.ts} | 0 src/locales/nl_BE/phone_number/index.ts | 8 +- src/locales/nl_BE/phone_number/national.ts | 1 + src/locales/nl_BE/phone_number/raw.ts | 1 + .../pl/phone_number/{formats.ts => human.ts} | 0 src/locales/pl/phone_number/index.ts | 8 +- src/locales/pl/phone_number/national.ts | 51 +++++++++++ src/locales/pl/phone_number/raw.ts | 51 +++++++++++ .../phone_number/{formats.ts => human.ts} | 0 src/locales/pt_BR/phone_number/index.ts | 8 +- src/locales/pt_BR/phone_number/national.ts | 1 + src/locales/pt_BR/phone_number/raw.ts | 1 + .../phone_number/{formats.ts => human.ts} | 0 src/locales/pt_PT/phone_number/index.ts | 8 +- src/locales/pt_PT/phone_number/national.ts | 7 ++ src/locales/pt_PT/phone_number/raw.ts | 7 ++ .../ro/phone_number/{formats.ts => human.ts} | 0 src/locales/ro/phone_number/index.ts | 8 +- src/locales/ro/phone_number/national.ts | 84 +++++++++++++++++++ src/locales/ro/phone_number/raw.ts | 84 +++++++++++++++++++ .../phone_number/{formats.ts => human.ts} | 0 src/locales/ro_MD/phone_number/index.ts | 8 +- src/locales/ro_MD/phone_number/national.ts | 12 +++ src/locales/ro_MD/phone_number/raw.ts | 12 +++ .../ru/phone_number/{formats.ts => human.ts} | 0 src/locales/ru/phone_number/index.ts | 8 +- src/locales/ru/phone_number/national.ts | 1 + src/locales/ru/phone_number/raw.ts | 1 + .../sk/phone_number/{formats.ts => human.ts} | 0 src/locales/sk/phone_number/index.ts | 8 +- src/locales/sk/phone_number/national.ts | 1 + src/locales/sk/phone_number/raw.ts | 1 + .../phone_number/{formats.ts => human.ts} | 0 src/locales/sr_RS_latin/phone_number/index.ts | 8 +- .../sr_RS_latin/phone_number/national.ts | 7 ++ src/locales/sr_RS_latin/phone_number/raw.ts | 7 ++ .../sv/phone_number/{formats.ts => human.ts} | 0 src/locales/sv/phone_number/index.ts | 8 +- src/locales/sv/phone_number/national.ts | 15 ++++ src/locales/sv/phone_number/raw.ts | 15 ++++ .../th/phone_number/{formats.ts => human.ts} | 0 src/locales/th/phone_number/index.ts | 8 +- src/locales/th/phone_number/national.ts | 7 ++ src/locales/th/phone_number/raw.ts | 7 ++ .../tr/phone_number/{formats.ts => human.ts} | 0 src/locales/tr/phone_number/index.ts | 8 +- src/locales/tr/phone_number/national.ts | 1 + src/locales/tr/phone_number/raw.ts | 1 + .../uk/phone_number/{formats.ts => human.ts} | 0 src/locales/uk/phone_number/index.ts | 8 +- src/locales/uk/phone_number/national.ts | 16 ++++ src/locales/uk/phone_number/raw.ts | 16 ++++ .../vi/phone_number/{formats.ts => human.ts} | 0 src/locales/vi/phone_number/index.ts | 8 +- src/locales/vi/phone_number/national.ts | 1 + src/locales/vi/phone_number/raw.ts | 1 + .../phone_number/{formats.ts => human.ts} | 0 src/locales/zh_CN/phone_number/index.ts | 8 +- src/locales/zh_CN/phone_number/national.ts | 1 + src/locales/zh_CN/phone_number/raw.ts | 1 + .../phone_number/{formats.ts => human.ts} | 0 src/locales/zh_TW/phone_number/index.ts | 8 +- src/locales/zh_TW/phone_number/national.ts | 1 + src/locales/zh_TW/phone_number/raw.ts | 1 + .../phone_number/{formats.ts => human.ts} | 0 src/locales/zu_ZA/phone_number/index.ts | 8 +- src/locales/zu_ZA/phone_number/national.ts | 9 ++ src/locales/zu_ZA/phone_number/raw.ts | 9 ++ 236 files changed, 1462 insertions(+), 118 deletions(-) rename src/locales/af_ZA/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/af_ZA/phone_number/national.ts create mode 100644 src/locales/af_ZA/phone_number/raw.ts rename src/locales/az/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/az/phone_number/national.ts create mode 100644 src/locales/az/phone_number/raw.ts rename src/locales/cs_CZ/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/cs_CZ/phone_number/national.ts create mode 100644 src/locales/cs_CZ/phone_number/raw.ts rename src/locales/da/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/da/phone_number/national.ts create mode 100644 src/locales/da/phone_number/raw.ts rename src/locales/de/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/de/phone_number/national.ts create mode 100644 src/locales/de/phone_number/raw.ts rename src/locales/de_AT/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/de_AT/phone_number/national.ts create mode 100644 src/locales/de_AT/phone_number/raw.ts rename src/locales/de_CH/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/de_CH/phone_number/national.ts create mode 100644 src/locales/de_CH/phone_number/raw.ts rename src/locales/dv/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/dv/phone_number/national.ts create mode 100644 src/locales/dv/phone_number/raw.ts rename src/locales/el/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/el/phone_number/national.ts create mode 100644 src/locales/el/phone_number/raw.ts rename src/locales/en/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/en/phone_number/national.ts create mode 100644 src/locales/en/phone_number/raw.ts rename src/locales/en_AU/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/en_AU/phone_number/national.ts create mode 100644 src/locales/en_AU/phone_number/raw.ts rename src/locales/en_AU_ocker/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/en_AU_ocker/phone_number/national.ts create mode 100644 src/locales/en_AU_ocker/phone_number/raw.ts rename src/locales/en_CA/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/en_CA/phone_number/national.ts create mode 100644 src/locales/en_CA/phone_number/raw.ts rename src/locales/en_GB/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/en_GB/phone_number/national.ts create mode 100644 src/locales/en_GB/phone_number/raw.ts rename src/locales/en_GH/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/en_GH/phone_number/national.ts create mode 100644 src/locales/en_GH/phone_number/raw.ts rename src/locales/en_HK/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/en_HK/phone_number/national.ts create mode 100644 src/locales/en_HK/phone_number/raw.ts rename src/locales/en_IE/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/en_IE/phone_number/national.ts create mode 100644 src/locales/en_IE/phone_number/raw.ts rename src/locales/en_IN/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/en_IN/phone_number/national.ts create mode 100644 src/locales/en_IN/phone_number/raw.ts rename src/locales/en_NG/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/en_NG/phone_number/national.ts create mode 100644 src/locales/en_NG/phone_number/raw.ts rename src/locales/en_ZA/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/en_ZA/phone_number/national.ts create mode 100644 src/locales/en_ZA/phone_number/raw.ts rename src/locales/es/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/es/phone_number/national.ts create mode 100644 src/locales/es/phone_number/raw.ts rename src/locales/es_MX/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/es_MX/phone_number/national.ts create mode 100644 src/locales/es_MX/phone_number/raw.ts rename src/locales/fa/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/fa/phone_number/national.ts create mode 100644 src/locales/fa/phone_number/raw.ts rename src/locales/fr/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/fr/phone_number/national.ts create mode 100644 src/locales/fr/phone_number/raw.ts rename src/locales/fr_BE/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/fr_BE/phone_number/national.ts create mode 100644 src/locales/fr_BE/phone_number/raw.ts rename src/locales/fr_CA/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/fr_CA/phone_number/national.ts create mode 100644 src/locales/fr_CA/phone_number/raw.ts rename src/locales/fr_CH/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/fr_CH/phone_number/national.ts create mode 100644 src/locales/fr_CH/phone_number/raw.ts rename src/locales/fr_LU/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/fr_LU/phone_number/national.ts create mode 100644 src/locales/fr_LU/phone_number/raw.ts rename src/locales/he/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/he/phone_number/national.ts create mode 100644 src/locales/he/phone_number/raw.ts rename src/locales/hr/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/hr/phone_number/national.ts create mode 100644 src/locales/hr/phone_number/raw.ts rename src/locales/hu/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/hu/phone_number/national.ts create mode 100644 src/locales/hu/phone_number/raw.ts rename src/locales/hy/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/hy/phone_number/national.ts create mode 100644 src/locales/hy/phone_number/raw.ts rename src/locales/id_ID/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/id_ID/phone_number/national.ts create mode 100644 src/locales/id_ID/phone_number/raw.ts rename src/locales/it/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/it/phone_number/national.ts create mode 100644 src/locales/it/phone_number/raw.ts rename src/locales/ja/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/ja/phone_number/national.ts create mode 100644 src/locales/ja/phone_number/raw.ts rename src/locales/ka_GE/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/ka_GE/phone_number/national.ts create mode 100644 src/locales/ka_GE/phone_number/raw.ts rename src/locales/ko/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/ko/phone_number/national.ts create mode 100644 src/locales/ko/phone_number/raw.ts rename src/locales/lv/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/lv/phone_number/national.ts create mode 100644 src/locales/lv/phone_number/raw.ts rename src/locales/mk/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/mk/phone_number/national.ts create mode 100644 src/locales/mk/phone_number/raw.ts rename src/locales/nb_NO/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/nb_NO/phone_number/national.ts create mode 100644 src/locales/nb_NO/phone_number/raw.ts rename src/locales/ne/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/ne/phone_number/national.ts create mode 100644 src/locales/ne/phone_number/raw.ts rename src/locales/nl/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/nl/phone_number/national.ts create mode 100644 src/locales/nl/phone_number/raw.ts rename src/locales/nl_BE/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/nl_BE/phone_number/national.ts create mode 100644 src/locales/nl_BE/phone_number/raw.ts rename src/locales/pl/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/pl/phone_number/national.ts create mode 100644 src/locales/pl/phone_number/raw.ts rename src/locales/pt_BR/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/pt_BR/phone_number/national.ts create mode 100644 src/locales/pt_BR/phone_number/raw.ts rename src/locales/pt_PT/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/pt_PT/phone_number/national.ts create mode 100644 src/locales/pt_PT/phone_number/raw.ts rename src/locales/ro/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/ro/phone_number/national.ts create mode 100644 src/locales/ro/phone_number/raw.ts rename src/locales/ro_MD/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/ro_MD/phone_number/national.ts create mode 100644 src/locales/ro_MD/phone_number/raw.ts rename src/locales/ru/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/ru/phone_number/national.ts create mode 100644 src/locales/ru/phone_number/raw.ts rename src/locales/sk/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/sk/phone_number/national.ts create mode 100644 src/locales/sk/phone_number/raw.ts rename src/locales/sr_RS_latin/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/sr_RS_latin/phone_number/national.ts create mode 100644 src/locales/sr_RS_latin/phone_number/raw.ts rename src/locales/sv/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/sv/phone_number/national.ts create mode 100644 src/locales/sv/phone_number/raw.ts rename src/locales/th/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/th/phone_number/national.ts create mode 100644 src/locales/th/phone_number/raw.ts rename src/locales/tr/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/tr/phone_number/national.ts create mode 100644 src/locales/tr/phone_number/raw.ts rename src/locales/uk/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/uk/phone_number/national.ts create mode 100644 src/locales/uk/phone_number/raw.ts rename src/locales/vi/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/vi/phone_number/national.ts create mode 100644 src/locales/vi/phone_number/raw.ts rename src/locales/zh_CN/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/zh_CN/phone_number/national.ts create mode 100644 src/locales/zh_CN/phone_number/raw.ts rename src/locales/zh_TW/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/zh_TW/phone_number/national.ts create mode 100644 src/locales/zh_TW/phone_number/raw.ts rename src/locales/zu_ZA/phone_number/{formats.ts => human.ts} (100%) create mode 100644 src/locales/zu_ZA/phone_number/national.ts create mode 100644 src/locales/zu_ZA/phone_number/raw.ts diff --git a/src/locales/af_ZA/phone_number/formats.ts b/src/locales/af_ZA/phone_number/human.ts similarity index 100% rename from src/locales/af_ZA/phone_number/formats.ts rename to src/locales/af_ZA/phone_number/human.ts diff --git a/src/locales/af_ZA/phone_number/index.ts b/src/locales/af_ZA/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/af_ZA/phone_number/index.ts +++ b/src/locales/af_ZA/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/af_ZA/phone_number/national.ts b/src/locales/af_ZA/phone_number/national.ts new file mode 100644 index 00000000000..5b9fea603d9 --- /dev/null +++ b/src/locales/af_ZA/phone_number/national.ts @@ -0,0 +1,9 @@ +export default [ + '1#########', + '2#########', + '3#########', + '4#########', + '5#########', + '080 0## ####', + '0860 ### ###', +]; diff --git a/src/locales/af_ZA/phone_number/raw.ts b/src/locales/af_ZA/phone_number/raw.ts new file mode 100644 index 00000000000..31b6dfef439 --- /dev/null +++ b/src/locales/af_ZA/phone_number/raw.ts @@ -0,0 +1,9 @@ +export default [ + '+271#########', + '+272#########', + '+273#########', + '+274#########', + '+275#########', + '+27800######', + '+27860######', +]; diff --git a/src/locales/az/phone_number/formats.ts b/src/locales/az/phone_number/human.ts similarity index 100% rename from src/locales/az/phone_number/formats.ts rename to src/locales/az/phone_number/human.ts diff --git a/src/locales/az/phone_number/index.ts b/src/locales/az/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/az/phone_number/index.ts +++ b/src/locales/az/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/az/phone_number/national.ts b/src/locales/az/phone_number/national.ts new file mode 100644 index 00000000000..aa24c086305 --- /dev/null +++ b/src/locales/az/phone_number/national.ts @@ -0,0 +1 @@ +export default ['9#########']; diff --git a/src/locales/az/phone_number/raw.ts b/src/locales/az/phone_number/raw.ts new file mode 100644 index 00000000000..c5482e1e011 --- /dev/null +++ b/src/locales/az/phone_number/raw.ts @@ -0,0 +1 @@ +export default ['+9949#########']; diff --git a/src/locales/cs_CZ/phone_number/formats.ts b/src/locales/cs_CZ/phone_number/human.ts similarity index 100% rename from src/locales/cs_CZ/phone_number/formats.ts rename to src/locales/cs_CZ/phone_number/human.ts diff --git a/src/locales/cs_CZ/phone_number/index.ts b/src/locales/cs_CZ/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/cs_CZ/phone_number/index.ts +++ b/src/locales/cs_CZ/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/cs_CZ/phone_number/national.ts b/src/locales/cs_CZ/phone_number/national.ts new file mode 100644 index 00000000000..0ae388db53d --- /dev/null +++ b/src/locales/cs_CZ/phone_number/national.ts @@ -0,0 +1 @@ +export default ['601 ### ###', '737 ### ###', '736 ### ###', '### ### ###']; diff --git a/src/locales/cs_CZ/phone_number/raw.ts b/src/locales/cs_CZ/phone_number/raw.ts new file mode 100644 index 00000000000..db652977aca --- /dev/null +++ b/src/locales/cs_CZ/phone_number/raw.ts @@ -0,0 +1,6 @@ +export default [ + '+420601######', + '+420737######', + '+420736######', + '+420#########', +]; diff --git a/src/locales/da/phone_number/formats.ts b/src/locales/da/phone_number/human.ts similarity index 100% rename from src/locales/da/phone_number/formats.ts rename to src/locales/da/phone_number/human.ts diff --git a/src/locales/da/phone_number/index.ts b/src/locales/da/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/da/phone_number/index.ts +++ b/src/locales/da/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/da/phone_number/national.ts b/src/locales/da/phone_number/national.ts new file mode 100644 index 00000000000..3a4cea41045 --- /dev/null +++ b/src/locales/da/phone_number/national.ts @@ -0,0 +1 @@ +export default ['!# ## ## ##']; diff --git a/src/locales/da/phone_number/raw.ts b/src/locales/da/phone_number/raw.ts new file mode 100644 index 00000000000..c11f77a410c --- /dev/null +++ b/src/locales/da/phone_number/raw.ts @@ -0,0 +1 @@ +export default ['+45!#######']; diff --git a/src/locales/de/phone_number/formats.ts b/src/locales/de/phone_number/human.ts similarity index 100% rename from src/locales/de/phone_number/formats.ts rename to src/locales/de/phone_number/human.ts diff --git a/src/locales/de/phone_number/index.ts b/src/locales/de/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/de/phone_number/index.ts +++ b/src/locales/de/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/de/phone_number/national.ts b/src/locales/de/phone_number/national.ts new file mode 100644 index 00000000000..d3616e57c64 --- /dev/null +++ b/src/locales/de/phone_number/national.ts @@ -0,0 +1 @@ +export default ['0#### ########', '0#### #######', '0#### ######']; diff --git a/src/locales/de/phone_number/raw.ts b/src/locales/de/phone_number/raw.ts new file mode 100644 index 00000000000..ea3d6ec01a2 --- /dev/null +++ b/src/locales/de/phone_number/raw.ts @@ -0,0 +1 @@ +export default ['+49############', '+49###########', '+49##########']; diff --git a/src/locales/de_AT/phone_number/formats.ts b/src/locales/de_AT/phone_number/human.ts similarity index 100% rename from src/locales/de_AT/phone_number/formats.ts rename to src/locales/de_AT/phone_number/human.ts diff --git a/src/locales/de_AT/phone_number/index.ts b/src/locales/de_AT/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/de_AT/phone_number/index.ts +++ b/src/locales/de_AT/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/de_AT/phone_number/national.ts b/src/locales/de_AT/phone_number/national.ts new file mode 100644 index 00000000000..ff081abe415 --- /dev/null +++ b/src/locales/de_AT/phone_number/national.ts @@ -0,0 +1 @@ +export default ['01 #######', '0#### ####', '0#### #####']; diff --git a/src/locales/de_AT/phone_number/raw.ts b/src/locales/de_AT/phone_number/raw.ts new file mode 100644 index 00000000000..e6928212a6f --- /dev/null +++ b/src/locales/de_AT/phone_number/raw.ts @@ -0,0 +1 @@ +export default ['+431#######', '+43########', '+43#########']; diff --git a/src/locales/de_CH/phone_number/formats.ts b/src/locales/de_CH/phone_number/human.ts similarity index 100% rename from src/locales/de_CH/phone_number/formats.ts rename to src/locales/de_CH/phone_number/human.ts diff --git a/src/locales/de_CH/phone_number/index.ts b/src/locales/de_CH/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/de_CH/phone_number/index.ts +++ b/src/locales/de_CH/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/de_CH/phone_number/national.ts b/src/locales/de_CH/phone_number/national.ts new file mode 100644 index 00000000000..05ef493d1cb --- /dev/null +++ b/src/locales/de_CH/phone_number/national.ts @@ -0,0 +1,8 @@ +export default [ + '0800 ### ###', + '0## ### ## ##', + '0900 ### ###', + '076 ### ## ##', + '078 ### ## ##', + '079 ### ## ##', +]; diff --git a/src/locales/de_CH/phone_number/raw.ts b/src/locales/de_CH/phone_number/raw.ts new file mode 100644 index 00000000000..a2c04fd9a8e --- /dev/null +++ b/src/locales/de_CH/phone_number/raw.ts @@ -0,0 +1,8 @@ +export default [ + '+41800######', + '+41#########', + '+41900######', + '+4176#######', + '+4178#######', + '+4179#######', +]; diff --git a/src/locales/dv/phone_number/formats.ts b/src/locales/dv/phone_number/human.ts similarity index 100% rename from src/locales/dv/phone_number/formats.ts rename to src/locales/dv/phone_number/human.ts diff --git a/src/locales/dv/phone_number/index.ts b/src/locales/dv/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/dv/phone_number/index.ts +++ b/src/locales/dv/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/dv/phone_number/national.ts b/src/locales/dv/phone_number/national.ts new file mode 100644 index 00000000000..bb529aab8ae --- /dev/null +++ b/src/locales/dv/phone_number/national.ts @@ -0,0 +1,9 @@ +export default [ + '3##-####', + '4##-####', + '5######', + '6##-####', + '7##-####', + '8######', + '9##-####', +]; diff --git a/src/locales/dv/phone_number/raw.ts b/src/locales/dv/phone_number/raw.ts new file mode 100644 index 00000000000..cb78a6fd967 --- /dev/null +++ b/src/locales/dv/phone_number/raw.ts @@ -0,0 +1,9 @@ +export default [ + '+9603######', + '+9604######', + '+9605######', + '+9606######', + '+9607######', + '+9608######', + '+9609######', +]; diff --git a/src/locales/el/phone_number/formats.ts b/src/locales/el/phone_number/human.ts similarity index 100% rename from src/locales/el/phone_number/formats.ts rename to src/locales/el/phone_number/human.ts diff --git a/src/locales/el/phone_number/index.ts b/src/locales/el/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/el/phone_number/index.ts +++ b/src/locales/el/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/el/phone_number/national.ts b/src/locales/el/phone_number/national.ts new file mode 100644 index 00000000000..eba86966f3a --- /dev/null +++ b/src/locales/el/phone_number/national.ts @@ -0,0 +1,54 @@ +export default [ + '231 0## ####', + '231 2## ####', + '231 3## ####', + '222# ######', + '223# ######', + '227# ######', + '224# ######', + '226# ######', + '225# ######', + '232# ######', + '229# ######', + '228# ######', + '233# ######', + '234# ######', + '235# ######', + '237# ######', + '238# ######', + '239# ######', + '241 ### ####', + '242# ######', + '243# ######', + '244# ######', + '246# ######', + '249# ######', + '251 ### ####', + '252# ######', + '253# ######', + '254# ######', + '255# ######', + '259# ######', + '261 ### ####', + '262# ######', + '263# ######', + '264# ######', + '265# ######', + '266# ######', + '267# ######', + '268# ######', + '269# ######', + '271 ### ####', + '272# ######', + '273# ######', + '274# ######', + '275# ######', + '276# ######', + '279# ######', + '281 ### ####', + '282# ######', + '283# ######', + '284# ######', + '289# ######', + '0800######', +]; diff --git a/src/locales/el/phone_number/raw.ts b/src/locales/el/phone_number/raw.ts new file mode 100644 index 00000000000..7ac506b24eb --- /dev/null +++ b/src/locales/el/phone_number/raw.ts @@ -0,0 +1,54 @@ +export default [ + '+302310######', + '+302312######', + '+302313######', + '+30222#######', + '+30223#######', + '+30227#######', + '+30224#######', + '+30226#######', + '+30225#######', + '+30232#######', + '+30229#######', + '+30228#######', + '+30233#######', + '+30234#######', + '+30235#######', + '+30237#######', + '+30238#######', + '+30239#######', + '+30241#######', + '+30242#######', + '+30243#######', + '+30244#######', + '+30246#######', + '+30249#######', + '+30251#######', + '+30252#######', + '+30253#######', + '+30254#######', + '+30255#######', + '+30259#######', + '+30261#######', + '+30262#######', + '+30263#######', + '+30264#######', + '+30265#######', + '+30266#######', + '+30267#######', + '+30268#######', + '+30269#######', + '+30271#######', + '+30272#######', + '+30273#######', + '+30274#######', + '+30275#######', + '+30276#######', + '+30279#######', + '+30281#######', + '+30282#######', + '+30283#######', + '+30284#######', + '+30289#######', + '+300800######', +]; diff --git a/src/locales/en/phone_number/formats.ts b/src/locales/en/phone_number/human.ts similarity index 100% rename from src/locales/en/phone_number/formats.ts rename to src/locales/en/phone_number/human.ts diff --git a/src/locales/en/phone_number/index.ts b/src/locales/en/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/en/phone_number/index.ts +++ b/src/locales/en/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/en/phone_number/national.ts b/src/locales/en/phone_number/national.ts new file mode 100644 index 00000000000..ed0c03d14c2 --- /dev/null +++ b/src/locales/en/phone_number/national.ts @@ -0,0 +1 @@ +export default ['(!##) !##-####']; diff --git a/src/locales/en/phone_number/raw.ts b/src/locales/en/phone_number/raw.ts new file mode 100644 index 00000000000..9bc1457d9a5 --- /dev/null +++ b/src/locales/en/phone_number/raw.ts @@ -0,0 +1 @@ +export default ['+1!##!######']; diff --git a/src/locales/en_AU/phone_number/formats.ts b/src/locales/en_AU/phone_number/human.ts similarity index 100% rename from src/locales/en_AU/phone_number/formats.ts rename to src/locales/en_AU/phone_number/human.ts diff --git a/src/locales/en_AU/phone_number/index.ts b/src/locales/en_AU/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/en_AU/phone_number/index.ts +++ b/src/locales/en_AU/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/en_AU/phone_number/national.ts b/src/locales/en_AU/phone_number/national.ts new file mode 100644 index 00000000000..d1a881d8436 --- /dev/null +++ b/src/locales/en_AU/phone_number/national.ts @@ -0,0 +1 @@ +export default ['(0#) #### ####', '04## ### ###']; diff --git a/src/locales/en_AU/phone_number/raw.ts b/src/locales/en_AU/phone_number/raw.ts new file mode 100644 index 00000000000..043b5b5fd18 --- /dev/null +++ b/src/locales/en_AU/phone_number/raw.ts @@ -0,0 +1 @@ +export default ['+61#########', '+614########']; diff --git a/src/locales/en_AU_ocker/phone_number/formats.ts b/src/locales/en_AU_ocker/phone_number/human.ts similarity index 100% rename from src/locales/en_AU_ocker/phone_number/formats.ts rename to src/locales/en_AU_ocker/phone_number/human.ts diff --git a/src/locales/en_AU_ocker/phone_number/index.ts b/src/locales/en_AU_ocker/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/en_AU_ocker/phone_number/index.ts +++ b/src/locales/en_AU_ocker/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/en_AU_ocker/phone_number/national.ts b/src/locales/en_AU_ocker/phone_number/national.ts new file mode 100644 index 00000000000..d1a881d8436 --- /dev/null +++ b/src/locales/en_AU_ocker/phone_number/national.ts @@ -0,0 +1 @@ +export default ['(0#) #### ####', '04## ### ###']; diff --git a/src/locales/en_AU_ocker/phone_number/raw.ts b/src/locales/en_AU_ocker/phone_number/raw.ts new file mode 100644 index 00000000000..043b5b5fd18 --- /dev/null +++ b/src/locales/en_AU_ocker/phone_number/raw.ts @@ -0,0 +1 @@ +export default ['+61#########', '+614########']; diff --git a/src/locales/en_CA/phone_number/formats.ts b/src/locales/en_CA/phone_number/human.ts similarity index 100% rename from src/locales/en_CA/phone_number/formats.ts rename to src/locales/en_CA/phone_number/human.ts diff --git a/src/locales/en_CA/phone_number/index.ts b/src/locales/en_CA/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/en_CA/phone_number/index.ts +++ b/src/locales/en_CA/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/en_CA/phone_number/national.ts b/src/locales/en_CA/phone_number/national.ts new file mode 100644 index 00000000000..f077e361488 --- /dev/null +++ b/src/locales/en_CA/phone_number/national.ts @@ -0,0 +1 @@ +export default ['(!##) !##-####', '(!##) ###-####']; diff --git a/src/locales/en_CA/phone_number/raw.ts b/src/locales/en_CA/phone_number/raw.ts new file mode 100644 index 00000000000..ec7d9898399 --- /dev/null +++ b/src/locales/en_CA/phone_number/raw.ts @@ -0,0 +1 @@ +export default ['+1!##!######', '+1!#########']; diff --git a/src/locales/en_GB/phone_number/formats.ts b/src/locales/en_GB/phone_number/human.ts similarity index 100% rename from src/locales/en_GB/phone_number/formats.ts rename to src/locales/en_GB/phone_number/human.ts diff --git a/src/locales/en_GB/phone_number/index.ts b/src/locales/en_GB/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/en_GB/phone_number/index.ts +++ b/src/locales/en_GB/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/en_GB/phone_number/national.ts b/src/locales/en_GB/phone_number/national.ts new file mode 100644 index 00000000000..c5096c7cd08 --- /dev/null +++ b/src/locales/en_GB/phone_number/national.ts @@ -0,0 +1,16 @@ +export default [ + '01### ######', + '01#1 ### ####', + '011# ### ####', + '02# #### ####', + '03## ### ####', + '055 #### ####', + '056 #### ####', + '0800 ### ####', + '08## ### ####', + '09## ### ####', + '016977 ####', + '01### #####', + '500######', + '0800 ######', +]; diff --git a/src/locales/en_GB/phone_number/raw.ts b/src/locales/en_GB/phone_number/raw.ts new file mode 100644 index 00000000000..1104787be8c --- /dev/null +++ b/src/locales/en_GB/phone_number/raw.ts @@ -0,0 +1,16 @@ +export default [ + '+441#########', + '+441#1#######', + '+4411########', + '+442#########', + '+443#########', + '+4455########', + '+4456########', + '+44800#######', + '+448#########', + '+449#########', + '+4416977####', + '+441########', + '+44500######', + '+44800######', +]; diff --git a/src/locales/en_GH/phone_number/formats.ts b/src/locales/en_GH/phone_number/human.ts similarity index 100% rename from src/locales/en_GH/phone_number/formats.ts rename to src/locales/en_GH/phone_number/human.ts diff --git a/src/locales/en_GH/phone_number/index.ts b/src/locales/en_GH/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/en_GH/phone_number/index.ts +++ b/src/locales/en_GH/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/en_GH/phone_number/national.ts b/src/locales/en_GH/phone_number/national.ts new file mode 100644 index 00000000000..bbb7d00c896 --- /dev/null +++ b/src/locales/en_GH/phone_number/national.ts @@ -0,0 +1,15 @@ +export default [ + '020 ### ####', + '023 ### ####', + '024 ### ####', + '026 ### ####', + '027 ### ####', + '028 ### ####', + '050 ### ####', + '053 ### ####', + '054 ### ####', + '055 ### ####', + '056 ### ####', + '057 ### ####', + '058 ### ####', +]; diff --git a/src/locales/en_GH/phone_number/raw.ts b/src/locales/en_GH/phone_number/raw.ts new file mode 100644 index 00000000000..928a4897f7a --- /dev/null +++ b/src/locales/en_GH/phone_number/raw.ts @@ -0,0 +1,15 @@ +export default [ + '+23320#######', + '+23323#######', + '+23324#######', + '+23326#######', + '+23327#######', + '+23328#######', + '+23350#######', + '+23353#######', + '+23354#######', + '+23355#######', + '+23356#######', + '+23357#######', + '+23358#######', +]; diff --git a/src/locales/en_HK/phone_number/formats.ts b/src/locales/en_HK/phone_number/human.ts similarity index 100% rename from src/locales/en_HK/phone_number/formats.ts rename to src/locales/en_HK/phone_number/human.ts diff --git a/src/locales/en_HK/phone_number/index.ts b/src/locales/en_HK/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/en_HK/phone_number/index.ts +++ b/src/locales/en_HK/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/en_HK/phone_number/national.ts b/src/locales/en_HK/phone_number/national.ts new file mode 100644 index 00000000000..3707487d739 --- /dev/null +++ b/src/locales/en_HK/phone_number/national.ts @@ -0,0 +1,9 @@ +export default [ + '2### ####', + '3### ####', + '4### ####', + '5### ####', + '6### ####', + '7### ####', + '9### ####', +]; diff --git a/src/locales/en_HK/phone_number/raw.ts b/src/locales/en_HK/phone_number/raw.ts new file mode 100644 index 00000000000..8dc79cf4904 --- /dev/null +++ b/src/locales/en_HK/phone_number/raw.ts @@ -0,0 +1,9 @@ +export default [ + '+8522#######', + '+8523#######', + '+8524#######', + '+8525#######', + '+8526#######', + '+8527#######', + '+8529#######', +]; diff --git a/src/locales/en_IE/phone_number/formats.ts b/src/locales/en_IE/phone_number/human.ts similarity index 100% rename from src/locales/en_IE/phone_number/formats.ts rename to src/locales/en_IE/phone_number/human.ts diff --git a/src/locales/en_IE/phone_number/index.ts b/src/locales/en_IE/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/en_IE/phone_number/index.ts +++ b/src/locales/en_IE/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/en_IE/phone_number/national.ts b/src/locales/en_IE/phone_number/national.ts new file mode 100644 index 00000000000..1a4e12d7f09 --- /dev/null +++ b/src/locales/en_IE/phone_number/national.ts @@ -0,0 +1,51 @@ +export default [ + '(01) ### ####', + '(021) ### ####', + '(022) ### ####', + '(023) ### ####', + '(024) ### ####', + '(025) ### ####', + '(026) ### ####', + '(027) ### ####', + '(028) ### ####', + '(029) ### ####', + '(040) 2### ####', + '(040) 4### ####', + '(041) ### ####', + '(042) ### ####', + '(043) ### ####', + '(044) ### ####', + '(045) ### ####', + '(046) ### ####', + '47#######', + '(049) ### ####', + '504#######', + '505#######', + '(051) ### ####', + '(052) ### ####', + '(053) ### ####', + '(056) ### ####', + '(057) ### ####', + '(058) ### ####', + '(059) ### ####', + '(061) ### ####', + '(062) ### ####', + '(063) ### ####', + '(064) ### ####', + '(065) ### ####', + '(066) ### ####', + '(067) ### ####', + '(068) ### ####', + '(069) ### ####', + '(071) ### ####', + '(074) ### ####', + '(090) ### ####', + '(091) ### ####', + '(093) ### ####', + '(094) ### ####', + '(095) ### ####', + '(096) ### ####', + '(097) ### ####', + '(098) ### ####', + '(099) ### ####', +]; diff --git a/src/locales/en_IE/phone_number/raw.ts b/src/locales/en_IE/phone_number/raw.ts new file mode 100644 index 00000000000..4f37c87a8d2 --- /dev/null +++ b/src/locales/en_IE/phone_number/raw.ts @@ -0,0 +1,51 @@ +export default [ + '+3531#######', + '+35321#######', + '+35322#######', + '+35323#######', + '+35324#######', + '+35325#######', + '+35326#######', + '+35327#######', + '+35328#######', + '+35329#######', + '+353402#######', + '+353404#######', + '+35341#######', + '+35342#######', + '+35343#######', + '+35344#######', + '+35345#######', + '+35346#######', + '+35347#######', + '+35349#######', + '+353504#######', + '+353505#######', + '+35351#######', + '+35352#######', + '+35353#######', + '+35356#######', + '+35357#######', + '+35358#######', + '+35359#######', + '+35361#######', + '+35362#######', + '+35363#######', + '+35364#######', + '+35365#######', + '+35366#######', + '+35367#######', + '+35368#######', + '+35369#######', + '+35371#######', + '+35374#######', + '+35390#######', + '+35391#######', + '+35393#######', + '+35394#######', + '+35395#######', + '+35396#######', + '+35397#######', + '+35398#######', + '+35399#######', +]; diff --git a/src/locales/en_IN/phone_number/formats.ts b/src/locales/en_IN/phone_number/human.ts similarity index 100% rename from src/locales/en_IN/phone_number/formats.ts rename to src/locales/en_IN/phone_number/human.ts diff --git a/src/locales/en_IN/phone_number/index.ts b/src/locales/en_IN/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/en_IN/phone_number/index.ts +++ b/src/locales/en_IN/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/en_IN/phone_number/national.ts b/src/locales/en_IN/phone_number/national.ts new file mode 100644 index 00000000000..f857e9104f8 --- /dev/null +++ b/src/locales/en_IN/phone_number/national.ts @@ -0,0 +1,6 @@ +export default [ + '09#### #####', + '08#### #####', + '07#### #####', + '06### ### ###', +]; diff --git a/src/locales/en_IN/phone_number/raw.ts b/src/locales/en_IN/phone_number/raw.ts new file mode 100644 index 00000000000..6f4e372bb6d --- /dev/null +++ b/src/locales/en_IN/phone_number/raw.ts @@ -0,0 +1,6 @@ +export default [ + '+919#########', + '+918#########', + '+917#########', + '+916#########', +]; diff --git a/src/locales/en_NG/phone_number/formats.ts b/src/locales/en_NG/phone_number/human.ts similarity index 100% rename from src/locales/en_NG/phone_number/formats.ts rename to src/locales/en_NG/phone_number/human.ts diff --git a/src/locales/en_NG/phone_number/index.ts b/src/locales/en_NG/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/en_NG/phone_number/index.ts +++ b/src/locales/en_NG/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/en_NG/phone_number/national.ts b/src/locales/en_NG/phone_number/national.ts new file mode 100644 index 00000000000..55c25223d93 --- /dev/null +++ b/src/locales/en_NG/phone_number/national.ts @@ -0,0 +1,7 @@ +export default [ + '0803 ### ####', + '0703 ### ####', + '0809 ### ####', + '0802 ### ####', + '0805 ### ####', +]; diff --git a/src/locales/en_NG/phone_number/raw.ts b/src/locales/en_NG/phone_number/raw.ts new file mode 100644 index 00000000000..a8814756861 --- /dev/null +++ b/src/locales/en_NG/phone_number/raw.ts @@ -0,0 +1,7 @@ +export default [ + '+234803#######', + '+234703#######', + '+234809#######', + '+234802#######', + '+234805#######', +]; diff --git a/src/locales/en_ZA/phone_number/formats.ts b/src/locales/en_ZA/phone_number/human.ts similarity index 100% rename from src/locales/en_ZA/phone_number/formats.ts rename to src/locales/en_ZA/phone_number/human.ts diff --git a/src/locales/en_ZA/phone_number/index.ts b/src/locales/en_ZA/phone_number/index.ts index fbc37294314..a48bc17b3be 100644 --- a/src/locales/en_ZA/phone_number/index.ts +++ b/src/locales/en_ZA/phone_number/index.ts @@ -5,12 +5,16 @@ import type { PhoneNumberDefinition } from '../../..'; import area_code from './area_code'; import exchange_code from './exchange_code'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { area_code, exchange_code, - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/en_ZA/phone_number/national.ts b/src/locales/en_ZA/phone_number/national.ts new file mode 100644 index 00000000000..df90c7fe591 --- /dev/null +++ b/src/locales/en_ZA/phone_number/national.ts @@ -0,0 +1,10 @@ +export default [ + '0## ### ####', + '1#########', + '2#########', + '3#########', + '4#########', + '5#########', + '080 0## ####', + '0860 ### ###', +]; diff --git a/src/locales/en_ZA/phone_number/raw.ts b/src/locales/en_ZA/phone_number/raw.ts new file mode 100644 index 00000000000..b9d3b75892c --- /dev/null +++ b/src/locales/en_ZA/phone_number/raw.ts @@ -0,0 +1,10 @@ +export default [ + '+27#########', + '+271#########', + '+272#########', + '+273#########', + '+274#########', + '+275#########', + '+27800######', + '+27860######', +]; diff --git a/src/locales/es/phone_number/formats.ts b/src/locales/es/phone_number/human.ts similarity index 100% rename from src/locales/es/phone_number/formats.ts rename to src/locales/es/phone_number/human.ts diff --git a/src/locales/es/phone_number/index.ts b/src/locales/es/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/es/phone_number/index.ts +++ b/src/locales/es/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/es/phone_number/national.ts b/src/locales/es/phone_number/national.ts new file mode 100644 index 00000000000..c18cdac77fb --- /dev/null +++ b/src/locales/es/phone_number/national.ts @@ -0,0 +1 @@ +export default ['9## ## ## ##']; diff --git a/src/locales/es/phone_number/raw.ts b/src/locales/es/phone_number/raw.ts new file mode 100644 index 00000000000..1e230d3ce8a --- /dev/null +++ b/src/locales/es/phone_number/raw.ts @@ -0,0 +1 @@ +export default ['+349########']; diff --git a/src/locales/es_MX/phone_number/formats.ts b/src/locales/es_MX/phone_number/human.ts similarity index 100% rename from src/locales/es_MX/phone_number/formats.ts rename to src/locales/es_MX/phone_number/human.ts diff --git a/src/locales/es_MX/phone_number/index.ts b/src/locales/es_MX/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/es_MX/phone_number/index.ts +++ b/src/locales/es_MX/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/es_MX/phone_number/national.ts b/src/locales/es_MX/phone_number/national.ts new file mode 100644 index 00000000000..8190a8f6b82 --- /dev/null +++ b/src/locales/es_MX/phone_number/national.ts @@ -0,0 +1 @@ +export default ['5## ### ####', '5########']; diff --git a/src/locales/es_MX/phone_number/raw.ts b/src/locales/es_MX/phone_number/raw.ts new file mode 100644 index 00000000000..0fe486f4b92 --- /dev/null +++ b/src/locales/es_MX/phone_number/raw.ts @@ -0,0 +1 @@ +export default ['+525#########', '+525########']; diff --git a/src/locales/fa/phone_number/formats.ts b/src/locales/fa/phone_number/human.ts similarity index 100% rename from src/locales/fa/phone_number/formats.ts rename to src/locales/fa/phone_number/human.ts diff --git a/src/locales/fa/phone_number/index.ts b/src/locales/fa/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/fa/phone_number/index.ts +++ b/src/locales/fa/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/fa/phone_number/national.ts b/src/locales/fa/phone_number/national.ts new file mode 100644 index 00000000000..f734625588c --- /dev/null +++ b/src/locales/fa/phone_number/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/raw.ts b/src/locales/fa/phone_number/raw.ts new file mode 100644 index 00000000000..e8360ead849 --- /dev/null +++ b/src/locales/fa/phone_number/raw.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/fr/phone_number/formats.ts b/src/locales/fr/phone_number/human.ts similarity index 100% rename from src/locales/fr/phone_number/formats.ts rename to src/locales/fr/phone_number/human.ts diff --git a/src/locales/fr/phone_number/index.ts b/src/locales/fr/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/fr/phone_number/index.ts +++ b/src/locales/fr/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/fr/phone_number/national.ts b/src/locales/fr/phone_number/national.ts new file mode 100644 index 00000000000..5046a0efd44 --- /dev/null +++ b/src/locales/fr/phone_number/national.ts @@ -0,0 +1,9 @@ +export default [ + '01 ## ## ## ##', + '02 ## ## ## ##', + '03 ## ## ## ##', + '04 ## ## ## ##', + '05 ## ## ## ##', + '06 ## ## ## ##', + '07 ## ## ## ##', +]; diff --git a/src/locales/fr/phone_number/raw.ts b/src/locales/fr/phone_number/raw.ts new file mode 100644 index 00000000000..b6d9541350e --- /dev/null +++ b/src/locales/fr/phone_number/raw.ts @@ -0,0 +1,9 @@ +export default [ + '+331########', + '+332########', + '+333########', + '+334########', + '+335########', + '+336########', + '+337########', +]; diff --git a/src/locales/fr_BE/phone_number/formats.ts b/src/locales/fr_BE/phone_number/human.ts similarity index 100% rename from src/locales/fr_BE/phone_number/formats.ts rename to src/locales/fr_BE/phone_number/human.ts diff --git a/src/locales/fr_BE/phone_number/index.ts b/src/locales/fr_BE/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/fr_BE/phone_number/index.ts +++ b/src/locales/fr_BE/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/fr_BE/phone_number/national.ts b/src/locales/fr_BE/phone_number/national.ts new file mode 100644 index 00000000000..09c748ef2af --- /dev/null +++ b/src/locales/fr_BE/phone_number/national.ts @@ -0,0 +1,46 @@ +export default [ + '0### ## ## ##', + '##########', + '04## ## ## ##', + '4######', + '010 ## ## ##', + '011 ## ## ##', + '012 ## ## ##', + '013 ## ## ##', + '014 ## ## ##', + '015 ## ## ##', + '016 ## ## ##', + '019 ## ## ##', + '02 ### ## ##', + '03 ### ## ##', + '04######', + '050 ## ## ##', + '051 ## ## ##', + '053 ## ## ##', + '052 ## ## ##', + '054 ## ## ##', + '055 ## ## ##', + '056 ## ## ##', + '057 ## ## ##', + '058 ## ## ##', + '059 ## ## ##', + '060 ## ## ##', + '061 ## ## ##', + '063 ## ## ##', + '064 ## ## ##', + '065 ## ## ##', + '067 ## ## ##', + '068 ## ## ##', + '069 ## ## ##', + '071 ## ## ##', + '080 ## ## ##', + '081 ## ## ##', + '082 ## ## ##', + '083 ## ## ##', + '084 ## ## ##', + '085 ## ## ##', + '086 ## ## ##', + '087 ## ## ##', + '089 ## ## ##', + '09 ### ## ##', +]; diff --git a/src/locales/fr_BE/phone_number/raw.ts b/src/locales/fr_BE/phone_number/raw.ts new file mode 100644 index 00000000000..d1e205ae52f --- /dev/null +++ b/src/locales/fr_BE/phone_number/raw.ts @@ -0,0 +1,46 @@ +export default [ + '+32#########', + '+32##########', + '+324########', + '+324######', + '+3210######', + '+3211######', + '+3212######', + '+3213######', + '+3214######', + '+3215######', + '+3216######', + '+3219######', + '+322#######', + '+323#######', + '+3204######', + '+3250######', + '+3251######', + '+3253######', + '+3252######', + '+3254######', + '+3255######', + '+3256######', + '+3257######', + '+3258######', + '+3259######', + '+3260######', + '+3261######', + '+3263######', + '+3264######', + '+3265######', + '+3267######', + '+3268######', + '+3269######', + '+3271######', + '+3280######', + '+3281######', + '+3282######', + '+3283######', + '+3284######', + '+3285######', + '+3286######', + '+3287######', + '+3289######', + '+329#######', +]; diff --git a/src/locales/fr_CA/phone_number/formats.ts b/src/locales/fr_CA/phone_number/human.ts similarity index 100% rename from src/locales/fr_CA/phone_number/formats.ts rename to src/locales/fr_CA/phone_number/human.ts diff --git a/src/locales/fr_CA/phone_number/index.ts b/src/locales/fr_CA/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/fr_CA/phone_number/index.ts +++ b/src/locales/fr_CA/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/fr_CA/phone_number/national.ts b/src/locales/fr_CA/phone_number/national.ts new file mode 100644 index 00000000000..ed146ceaae5 --- /dev/null +++ b/src/locales/fr_CA/phone_number/national.ts @@ -0,0 +1 @@ +export default ['(###) ###-####']; diff --git a/src/locales/fr_CA/phone_number/raw.ts b/src/locales/fr_CA/phone_number/raw.ts new file mode 100644 index 00000000000..2d31d26504c --- /dev/null +++ b/src/locales/fr_CA/phone_number/raw.ts @@ -0,0 +1 @@ +export default ['+1##########']; diff --git a/src/locales/fr_CH/phone_number/formats.ts b/src/locales/fr_CH/phone_number/human.ts similarity index 100% rename from src/locales/fr_CH/phone_number/formats.ts rename to src/locales/fr_CH/phone_number/human.ts diff --git a/src/locales/fr_CH/phone_number/index.ts b/src/locales/fr_CH/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/fr_CH/phone_number/index.ts +++ b/src/locales/fr_CH/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/fr_CH/phone_number/national.ts b/src/locales/fr_CH/phone_number/national.ts new file mode 100644 index 00000000000..ea8c3304c19 --- /dev/null +++ b/src/locales/fr_CH/phone_number/national.ts @@ -0,0 +1,8 @@ +export default [ + '0800 ### ###', + '0## ### ## ##', + '0900 ### ###', + '076 ### ## ##', + '079 ### ## ##', + '078 ### ## ##', +]; diff --git a/src/locales/fr_CH/phone_number/raw.ts b/src/locales/fr_CH/phone_number/raw.ts new file mode 100644 index 00000000000..22bed3b6256 --- /dev/null +++ b/src/locales/fr_CH/phone_number/raw.ts @@ -0,0 +1,8 @@ +export default [ + '+41800######', + '+41#########', + '+41900######', + '+4176#######', + '+4179#######', + '+4178#######', +]; diff --git a/src/locales/fr_LU/phone_number/formats.ts b/src/locales/fr_LU/phone_number/human.ts similarity index 100% rename from src/locales/fr_LU/phone_number/formats.ts rename to src/locales/fr_LU/phone_number/human.ts diff --git a/src/locales/fr_LU/phone_number/index.ts b/src/locales/fr_LU/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/fr_LU/phone_number/index.ts +++ b/src/locales/fr_LU/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/fr_LU/phone_number/national.ts b/src/locales/fr_LU/phone_number/national.ts new file mode 100644 index 00000000000..8efc3a6d5f4 --- /dev/null +++ b/src/locales/fr_LU/phone_number/national.ts @@ -0,0 +1 @@ +export default ['## ## ##', '## ## ## ##']; diff --git a/src/locales/fr_LU/phone_number/raw.ts b/src/locales/fr_LU/phone_number/raw.ts new file mode 100644 index 00000000000..a7d7e889222 --- /dev/null +++ b/src/locales/fr_LU/phone_number/raw.ts @@ -0,0 +1 @@ +export default ['+352######', '+352########']; diff --git a/src/locales/he/phone_number/formats.ts b/src/locales/he/phone_number/human.ts similarity index 100% rename from src/locales/he/phone_number/formats.ts rename to src/locales/he/phone_number/human.ts diff --git a/src/locales/he/phone_number/index.ts b/src/locales/he/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/he/phone_number/index.ts +++ b/src/locales/he/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/he/phone_number/national.ts b/src/locales/he/phone_number/national.ts new file mode 100644 index 00000000000..f8dccd2105e --- /dev/null +++ b/src/locales/he/phone_number/national.ts @@ -0,0 +1,8 @@ +export default [ + '02-###-####', + '03-###-####', + '04-###-####', + '08-###-####', + '09-###-####', + '077-###-####', +]; diff --git a/src/locales/he/phone_number/raw.ts b/src/locales/he/phone_number/raw.ts new file mode 100644 index 00000000000..39a17eee940 --- /dev/null +++ b/src/locales/he/phone_number/raw.ts @@ -0,0 +1,8 @@ +export default [ + '+9722#######', + '+9723#######', + '+9724#######', + '+9728#######', + '+9729#######', + '+97277#######', +]; diff --git a/src/locales/hr/phone_number/formats.ts b/src/locales/hr/phone_number/human.ts similarity index 100% rename from src/locales/hr/phone_number/formats.ts rename to src/locales/hr/phone_number/human.ts diff --git a/src/locales/hr/phone_number/index.ts b/src/locales/hr/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/hr/phone_number/index.ts +++ b/src/locales/hr/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/hr/phone_number/national.ts b/src/locales/hr/phone_number/national.ts new file mode 100644 index 00000000000..b2da103cd77 --- /dev/null +++ b/src/locales/hr/phone_number/national.ts @@ -0,0 +1 @@ +export default ['######', '##########', '0## ### ###']; diff --git a/src/locales/hr/phone_number/raw.ts b/src/locales/hr/phone_number/raw.ts new file mode 100644 index 00000000000..c2613097c2e --- /dev/null +++ b/src/locales/hr/phone_number/raw.ts @@ -0,0 +1 @@ +export default ['+385######', '+385##########', '+385########']; diff --git a/src/locales/hu/phone_number/formats.ts b/src/locales/hu/phone_number/human.ts similarity index 100% rename from src/locales/hu/phone_number/formats.ts rename to src/locales/hu/phone_number/human.ts diff --git a/src/locales/hu/phone_number/index.ts b/src/locales/hu/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/hu/phone_number/index.ts +++ b/src/locales/hu/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/hu/phone_number/national.ts b/src/locales/hu/phone_number/national.ts new file mode 100644 index 00000000000..29de2326ff7 --- /dev/null +++ b/src/locales/hu/phone_number/national.ts @@ -0,0 +1,6 @@ +export default [ + '06 20 ### ####', + '06 30 ### ####', + '06 50 ### ####', + '06 70 ### ####', +]; diff --git a/src/locales/hu/phone_number/raw.ts b/src/locales/hu/phone_number/raw.ts new file mode 100644 index 00000000000..32466f5ec43 --- /dev/null +++ b/src/locales/hu/phone_number/raw.ts @@ -0,0 +1 @@ +export default ['+3620#######', '+3630#######', '+3650#######', '+3670#######']; diff --git a/src/locales/hy/phone_number/formats.ts b/src/locales/hy/phone_number/human.ts similarity index 100% rename from src/locales/hy/phone_number/formats.ts rename to src/locales/hy/phone_number/human.ts diff --git a/src/locales/hy/phone_number/index.ts b/src/locales/hy/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/hy/phone_number/index.ts +++ b/src/locales/hy/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/hy/phone_number/national.ts b/src/locales/hy/phone_number/national.ts new file mode 100644 index 00000000000..226dd3cb871 --- /dev/null +++ b/src/locales/hy/phone_number/national.ts @@ -0,0 +1 @@ +export default ['(0###) #####']; diff --git a/src/locales/hy/phone_number/raw.ts b/src/locales/hy/phone_number/raw.ts new file mode 100644 index 00000000000..764aa533ee8 --- /dev/null +++ b/src/locales/hy/phone_number/raw.ts @@ -0,0 +1 @@ +export default ['+374########']; diff --git a/src/locales/id_ID/phone_number/formats.ts b/src/locales/id_ID/phone_number/human.ts similarity index 100% rename from src/locales/id_ID/phone_number/formats.ts rename to src/locales/id_ID/phone_number/human.ts diff --git a/src/locales/id_ID/phone_number/index.ts b/src/locales/id_ID/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/id_ID/phone_number/index.ts +++ b/src/locales/id_ID/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/id_ID/phone_number/national.ts b/src/locales/id_ID/phone_number/national.ts new file mode 100644 index 00000000000..24938d5bf1e --- /dev/null +++ b/src/locales/id_ID/phone_number/national.ts @@ -0,0 +1,20 @@ +export default [ + '(02##) ######', + '(02##) #######', + '(03##) #######', + '(04##) #######', + '(05##) #######', + '(06##) #######', + '(07##) #######', + '(09##) #######', + '(02##) ########', + '(03##) ########', + '(04##) ########', + '(05##) ########', + '(06##) ########', + '(07##) ########', + '(09##) ########', + '08##-###-###', + '08##-####-###', + '08##-####-####', +]; diff --git a/src/locales/id_ID/phone_number/raw.ts b/src/locales/id_ID/phone_number/raw.ts new file mode 100644 index 00000000000..7a9c6ee9a23 --- /dev/null +++ b/src/locales/id_ID/phone_number/raw.ts @@ -0,0 +1,20 @@ +export default [ + '+622########', + '+622#########', + '+623#########', + '+624#########', + '+625#########', + '+626#########', + '+627#########', + '+629#########', + '+622##########', + '+623##########', + '+624##########', + '+625##########', + '+626##########', + '+627##########', + '+629##########', + '+628########', + '+628#########', + '+628##########', +]; diff --git a/src/locales/it/phone_number/formats.ts b/src/locales/it/phone_number/human.ts similarity index 100% rename from src/locales/it/phone_number/formats.ts rename to src/locales/it/phone_number/human.ts diff --git a/src/locales/it/phone_number/index.ts b/src/locales/it/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/it/phone_number/index.ts +++ b/src/locales/it/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/it/phone_number/national.ts b/src/locales/it/phone_number/national.ts new file mode 100644 index 00000000000..3ddce087df2 --- /dev/null +++ b/src/locales/it/phone_number/national.ts @@ -0,0 +1,9 @@ +export default [ + '##########', + '## ## ## ##', + '#########', + '###########', + '0# #### ####', + '0# ### ####', + '3## ### ###', +]; diff --git a/src/locales/it/phone_number/raw.ts b/src/locales/it/phone_number/raw.ts new file mode 100644 index 00000000000..f8e9c4934b4 --- /dev/null +++ b/src/locales/it/phone_number/raw.ts @@ -0,0 +1,9 @@ +export default [ + '+#############', + '+###########', + '+############', + '+##############', + '+390#########', + '+390########', + '+393########', +]; diff --git a/src/locales/ja/phone_number/formats.ts b/src/locales/ja/phone_number/human.ts similarity index 100% rename from src/locales/ja/phone_number/formats.ts rename to src/locales/ja/phone_number/human.ts diff --git a/src/locales/ja/phone_number/index.ts b/src/locales/ja/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/ja/phone_number/index.ts +++ b/src/locales/ja/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/ja/phone_number/national.ts b/src/locales/ja/phone_number/national.ts new file mode 100644 index 00000000000..c3983de4815 --- /dev/null +++ b/src/locales/ja/phone_number/national.ts @@ -0,0 +1 @@ +export default ['0##-###-####']; diff --git a/src/locales/ja/phone_number/raw.ts b/src/locales/ja/phone_number/raw.ts new file mode 100644 index 00000000000..12ad3f259f8 --- /dev/null +++ b/src/locales/ja/phone_number/raw.ts @@ -0,0 +1 @@ +export default ['+81#########']; diff --git a/src/locales/ka_GE/phone_number/formats.ts b/src/locales/ka_GE/phone_number/human.ts similarity index 100% rename from src/locales/ka_GE/phone_number/formats.ts rename to src/locales/ka_GE/phone_number/human.ts diff --git a/src/locales/ka_GE/phone_number/index.ts b/src/locales/ka_GE/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/ka_GE/phone_number/index.ts +++ b/src/locales/ka_GE/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/ka_GE/phone_number/national.ts b/src/locales/ka_GE/phone_number/national.ts new file mode 100644 index 00000000000..6b79c8b5e9c --- /dev/null +++ b/src/locales/ka_GE/phone_number/national.ts @@ -0,0 +1 @@ +export default ['5## ## ## ##']; diff --git a/src/locales/ka_GE/phone_number/raw.ts b/src/locales/ka_GE/phone_number/raw.ts new file mode 100644 index 00000000000..75a5e8848d3 --- /dev/null +++ b/src/locales/ka_GE/phone_number/raw.ts @@ -0,0 +1 @@ +export default ['+9955########']; diff --git a/src/locales/ko/phone_number/formats.ts b/src/locales/ko/phone_number/human.ts similarity index 100% rename from src/locales/ko/phone_number/formats.ts rename to src/locales/ko/phone_number/human.ts diff --git a/src/locales/ko/phone_number/index.ts b/src/locales/ko/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/ko/phone_number/index.ts +++ b/src/locales/ko/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/ko/phone_number/national.ts b/src/locales/ko/phone_number/national.ts new file mode 100644 index 00000000000..5c0af70a1d6 --- /dev/null +++ b/src/locales/ko/phone_number/national.ts @@ -0,0 +1 @@ +export default ['0##-####-####', '0##-###-####']; diff --git a/src/locales/ko/phone_number/raw.ts b/src/locales/ko/phone_number/raw.ts new file mode 100644 index 00000000000..0196f5835a8 --- /dev/null +++ b/src/locales/ko/phone_number/raw.ts @@ -0,0 +1 @@ +export default ['+82##########', '+82#########']; diff --git a/src/locales/lv/phone_number/formats.ts b/src/locales/lv/phone_number/human.ts similarity index 100% rename from src/locales/lv/phone_number/formats.ts rename to src/locales/lv/phone_number/human.ts diff --git a/src/locales/lv/phone_number/index.ts b/src/locales/lv/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/lv/phone_number/index.ts +++ b/src/locales/lv/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/lv/phone_number/national.ts b/src/locales/lv/phone_number/national.ts new file mode 100644 index 00000000000..c659c66e2e9 --- /dev/null +++ b/src/locales/lv/phone_number/national.ts @@ -0,0 +1 @@ +export default ['6# ### ###']; diff --git a/src/locales/lv/phone_number/raw.ts b/src/locales/lv/phone_number/raw.ts new file mode 100644 index 00000000000..d4949fa7ca6 --- /dev/null +++ b/src/locales/lv/phone_number/raw.ts @@ -0,0 +1 @@ +export default ['+3716#######']; diff --git a/src/locales/mk/phone_number/formats.ts b/src/locales/mk/phone_number/human.ts similarity index 100% rename from src/locales/mk/phone_number/formats.ts rename to src/locales/mk/phone_number/human.ts diff --git a/src/locales/mk/phone_number/index.ts b/src/locales/mk/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/mk/phone_number/index.ts +++ b/src/locales/mk/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/mk/phone_number/national.ts b/src/locales/mk/phone_number/national.ts new file mode 100644 index 00000000000..c9f55f36be5 --- /dev/null +++ b/src/locales/mk/phone_number/national.ts @@ -0,0 +1 @@ +export default ['02 ### ####', '03# ### ###', '04# ### ###']; diff --git a/src/locales/mk/phone_number/raw.ts b/src/locales/mk/phone_number/raw.ts new file mode 100644 index 00000000000..bb7f9bc7c73 --- /dev/null +++ b/src/locales/mk/phone_number/raw.ts @@ -0,0 +1 @@ +export default ['+3892#######', '+3893#######', '+3894#######']; diff --git a/src/locales/nb_NO/phone_number/formats.ts b/src/locales/nb_NO/phone_number/human.ts similarity index 100% rename from src/locales/nb_NO/phone_number/formats.ts rename to src/locales/nb_NO/phone_number/human.ts diff --git a/src/locales/nb_NO/phone_number/index.ts b/src/locales/nb_NO/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/nb_NO/phone_number/index.ts +++ b/src/locales/nb_NO/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/nb_NO/phone_number/national.ts b/src/locales/nb_NO/phone_number/national.ts new file mode 100644 index 00000000000..9064cab6c1a --- /dev/null +++ b/src/locales/nb_NO/phone_number/national.ts @@ -0,0 +1 @@ +export default ['## ## ## ##']; diff --git a/src/locales/nb_NO/phone_number/raw.ts b/src/locales/nb_NO/phone_number/raw.ts new file mode 100644 index 00000000000..8ad3aa2c3c7 --- /dev/null +++ b/src/locales/nb_NO/phone_number/raw.ts @@ -0,0 +1 @@ +export default ['+47########']; diff --git a/src/locales/ne/phone_number/formats.ts b/src/locales/ne/phone_number/human.ts similarity index 100% rename from src/locales/ne/phone_number/formats.ts rename to src/locales/ne/phone_number/human.ts diff --git a/src/locales/ne/phone_number/index.ts b/src/locales/ne/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/ne/phone_number/index.ts +++ b/src/locales/ne/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/ne/phone_number/national.ts b/src/locales/ne/phone_number/national.ts new file mode 100644 index 00000000000..c3069a804f9 --- /dev/null +++ b/src/locales/ne/phone_number/national.ts @@ -0,0 +1 @@ +export default ['#########', '0##-######']; diff --git a/src/locales/ne/phone_number/raw.ts b/src/locales/ne/phone_number/raw.ts new file mode 100644 index 00000000000..d133a76d56f --- /dev/null +++ b/src/locales/ne/phone_number/raw.ts @@ -0,0 +1 @@ +export default ['+977#########', '+977########']; diff --git a/src/locales/nl/phone_number/formats.ts b/src/locales/nl/phone_number/human.ts similarity index 100% rename from src/locales/nl/phone_number/formats.ts rename to src/locales/nl/phone_number/human.ts diff --git a/src/locales/nl/phone_number/index.ts b/src/locales/nl/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/nl/phone_number/index.ts +++ b/src/locales/nl/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/nl/phone_number/national.ts b/src/locales/nl/phone_number/national.ts new file mode 100644 index 00000000000..572645fede7 --- /dev/null +++ b/src/locales/nl/phone_number/national.ts @@ -0,0 +1 @@ +export default ['0### ### ###', '06 ########']; diff --git a/src/locales/nl/phone_number/raw.ts b/src/locales/nl/phone_number/raw.ts new file mode 100644 index 00000000000..f54fedf7a52 --- /dev/null +++ b/src/locales/nl/phone_number/raw.ts @@ -0,0 +1 @@ +export default ['+31#########', '+316########']; diff --git a/src/locales/nl_BE/phone_number/formats.ts b/src/locales/nl_BE/phone_number/human.ts similarity index 100% rename from src/locales/nl_BE/phone_number/formats.ts rename to src/locales/nl_BE/phone_number/human.ts diff --git a/src/locales/nl_BE/phone_number/index.ts b/src/locales/nl_BE/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/nl_BE/phone_number/index.ts +++ b/src/locales/nl_BE/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/nl_BE/phone_number/national.ts b/src/locales/nl_BE/phone_number/national.ts new file mode 100644 index 00000000000..9bdc90b80dd --- /dev/null +++ b/src/locales/nl_BE/phone_number/national.ts @@ -0,0 +1 @@ +export default ['0### ## ## ##', '##########', '04## ## ## ##', '4######']; diff --git a/src/locales/nl_BE/phone_number/raw.ts b/src/locales/nl_BE/phone_number/raw.ts new file mode 100644 index 00000000000..aeec95d0b2e --- /dev/null +++ b/src/locales/nl_BE/phone_number/raw.ts @@ -0,0 +1 @@ +export default ['+32#########', '+32##########', '+324########', '+324######']; diff --git a/src/locales/pl/phone_number/formats.ts b/src/locales/pl/phone_number/human.ts similarity index 100% rename from src/locales/pl/phone_number/formats.ts rename to src/locales/pl/phone_number/human.ts diff --git a/src/locales/pl/phone_number/index.ts b/src/locales/pl/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/pl/phone_number/index.ts +++ b/src/locales/pl/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/pl/phone_number/national.ts b/src/locales/pl/phone_number/national.ts new file mode 100644 index 00000000000..296d65cd1e6 --- /dev/null +++ b/src/locales/pl/phone_number/national.ts @@ -0,0 +1,51 @@ +export default [ + '12 ### ## ##', + '13 ### ## ##', + '14 ### ## ##', + '15 ### ## ##', + '16 ### ## ##', + '17 ### ## ##', + '18 ### ## ##', + '22 ### ## ##', + '23 ### ## ##', + '24 ### ## ##', + '25 ### ## ##', + '29 ### ## ##', + '32 ### ## ##', + '33 ### ## ##', + '34 ### ## ##', + '41 ### ## ##', + '42 ### ## ##', + '43 ### ## ##', + '44 ### ## ##', + '46 ### ## ##', + '48 ### ## ##', + '52 ### ## ##', + '54 ### ## ##', + '55 ### ## ##', + '56 ### ## ##', + '58 ### ## ##', + '59 ### ## ##', + '61 ### ## ##', + '62 ### ## ##', + '63 ### ## ##', + '65 ### ## ##', + '67 ### ## ##', + '68 ### ## ##', + '71 ### ## ##', + '74 ### ## ##', + '75 ### ## ##', + '76 ### ## ##', + '77 ### ## ##', + '81 ### ## ##', + '82 ### ## ##', + '83 ### ## ##', + '84 ### ## ##', + '85 ### ## ##', + '86 ### ## ##', + '87 ### ## ##', + '89 ### ## ##', + '91 ### ## ##', + '94 ### ## ##', + '95 ### ## ##', +]; diff --git a/src/locales/pl/phone_number/raw.ts b/src/locales/pl/phone_number/raw.ts new file mode 100644 index 00000000000..eb222d53b51 --- /dev/null +++ b/src/locales/pl/phone_number/raw.ts @@ -0,0 +1,51 @@ +export default [ + '+4812#######', + '+4813#######', + '+4814#######', + '+4815#######', + '+4816#######', + '+4817#######', + '+4818#######', + '+4822#######', + '+4823#######', + '+4824#######', + '+4825#######', + '+4829#######', + '+4832#######', + '+4833#######', + '+4834#######', + '+4841#######', + '+4842#######', + '+4843#######', + '+4844#######', + '+4846#######', + '+4848#######', + '+4852#######', + '+4854#######', + '+4855#######', + '+4856#######', + '+4858#######', + '+4859#######', + '+4861#######', + '+4862#######', + '+4863#######', + '+4865#######', + '+4867#######', + '+4868#######', + '+4871#######', + '+4874#######', + '+4875#######', + '+4876#######', + '+4877#######', + '+4881#######', + '+4882#######', + '+4883#######', + '+4884#######', + '+4885#######', + '+4886#######', + '+4887#######', + '+4889#######', + '+4891#######', + '+4894#######', + '+4895#######', +]; diff --git a/src/locales/pt_BR/phone_number/formats.ts b/src/locales/pt_BR/phone_number/human.ts similarity index 100% rename from src/locales/pt_BR/phone_number/formats.ts rename to src/locales/pt_BR/phone_number/human.ts diff --git a/src/locales/pt_BR/phone_number/index.ts b/src/locales/pt_BR/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/pt_BR/phone_number/index.ts +++ b/src/locales/pt_BR/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/pt_BR/phone_number/national.ts b/src/locales/pt_BR/phone_number/national.ts new file mode 100644 index 00000000000..e311edc72dc --- /dev/null +++ b/src/locales/pt_BR/phone_number/national.ts @@ -0,0 +1 @@ +export default ['(##) ####-####', '(##) #####-####']; diff --git a/src/locales/pt_BR/phone_number/raw.ts b/src/locales/pt_BR/phone_number/raw.ts new file mode 100644 index 00000000000..7eede24194c --- /dev/null +++ b/src/locales/pt_BR/phone_number/raw.ts @@ -0,0 +1 @@ +export default ['+55##########', '+55###########']; diff --git a/src/locales/pt_PT/phone_number/formats.ts b/src/locales/pt_PT/phone_number/human.ts similarity index 100% rename from src/locales/pt_PT/phone_number/formats.ts rename to src/locales/pt_PT/phone_number/human.ts diff --git a/src/locales/pt_PT/phone_number/index.ts b/src/locales/pt_PT/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/pt_PT/phone_number/index.ts +++ b/src/locales/pt_PT/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/pt_PT/phone_number/national.ts b/src/locales/pt_PT/phone_number/national.ts new file mode 100644 index 00000000000..6578a150e6e --- /dev/null +++ b/src/locales/pt_PT/phone_number/national.ts @@ -0,0 +1,7 @@ +export default [ + '2## ### ###', + '91# ### ###', + '92# ### ###', + '93# ### ###', + '96# ### ###', +]; diff --git a/src/locales/pt_PT/phone_number/raw.ts b/src/locales/pt_PT/phone_number/raw.ts new file mode 100644 index 00000000000..03ce129f891 --- /dev/null +++ b/src/locales/pt_PT/phone_number/raw.ts @@ -0,0 +1,7 @@ +export default [ + '+3512########', + '+35191#######', + '+35192#######', + '+35193#######', + '+35196#######', +]; diff --git a/src/locales/ro/phone_number/formats.ts b/src/locales/ro/phone_number/human.ts similarity index 100% rename from src/locales/ro/phone_number/formats.ts rename to src/locales/ro/phone_number/human.ts diff --git a/src/locales/ro/phone_number/index.ts b/src/locales/ro/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/ro/phone_number/index.ts +++ b/src/locales/ro/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/ro/phone_number/national.ts b/src/locales/ro/phone_number/national.ts new file mode 100644 index 00000000000..927654b27d5 --- /dev/null +++ b/src/locales/ro/phone_number/national.ts @@ -0,0 +1,84 @@ +export default [ + '021######', + '031######', + '0258 ### ###', + '0358 ### ###', + '0257 ### ###', + '0357 ### ###', + '0248 ### ###', + '0348 ### ###', + '0234 ### ###', + '0334 ### ###', + '0259 ### ###', + '0359 ### ###', + '0263 ### ###', + '0363 ### ###', + '0231 ### ###', + '0331 ### ###', + '0239 ### ###', + '0339 ### ###', + '0268 ### ###', + '0368 ### ###', + '0238 ### ###', + '0338 ### ###', + '0242 ### ###', + '0342 ### ###', + '0255 ### ###', + '0355 ### ###', + '0264 ### ###', + '0364 ### ###', + '0241 ### ###', + '0341 ### ###', + '0267 ### ###', + '0367 ### ###', + '0245 ### ###', + '0345 ### ###', + '0251 ### ###', + '0351 ### ###', + '0236 ### ###', + '0336 ### ###', + '0246 ### ###', + '0346 ### ###', + '0253 ### ###', + '0353 ### ###', + '0266 ### ###', + '0366 ### ###', + '0254 ### ###', + '0354 ### ###', + '0243 ### ###', + '0343 ### ###', + '0232 ### ###', + '0332 ### ###', + '0262 ### ###', + '0362 ### ###', + '0252 ### ###', + '0352 ### ###', + '0265 ### ###', + '0365 ### ###', + '0233 ### ###', + '0333 ### ###', + '0249 ### ###', + '0349 ### ###', + '0244 ### ###', + '0344 ### ###', + '0260 ### ###', + '0360 ### ###', + '0261 ### ###', + '0361 ### ###', + '0269 ### ###', + '0369 ### ###', + '0230 ### ###', + '0330 ### ###', + '0247 ### ###', + '0347 ### ###', + '0256 ### ###', + '0356 ### ###', + '0240 ### ###', + '0340 ### ###', + '0250 ### ###', + '0350 ### ###', + '0235 ### ###', + '0335 ### ###', + '0237 ### ###', + '0337 ### ###', +]; diff --git a/src/locales/ro/phone_number/raw.ts b/src/locales/ro/phone_number/raw.ts new file mode 100644 index 00000000000..8b2e92c3ea4 --- /dev/null +++ b/src/locales/ro/phone_number/raw.ts @@ -0,0 +1,84 @@ +export default [ + '+40021######', + '+40031######', + '+40258######', + '+40358######', + '+40257######', + '+40357######', + '+40248######', + '+40348######', + '+40234######', + '+40334######', + '+40259######', + '+40359######', + '+40263######', + '+40363######', + '+40231######', + '+40331######', + '+40239######', + '+40339######', + '+40268######', + '+40368######', + '+40238######', + '+40338######', + '+40242######', + '+40342######', + '+40255######', + '+40355######', + '+40264######', + '+40364######', + '+40241######', + '+40341######', + '+40267######', + '+40367######', + '+40245######', + '+40345######', + '+40251######', + '+40351######', + '+40236######', + '+40336######', + '+40246######', + '+40346######', + '+40253######', + '+40353######', + '+40266######', + '+40366######', + '+40254######', + '+40354######', + '+40243######', + '+40343######', + '+40232######', + '+40332######', + '+40262######', + '+40362######', + '+40252######', + '+40352######', + '+40265######', + '+40365######', + '+40233######', + '+40333######', + '+40249######', + '+40349######', + '+40244######', + '+40344######', + '+40260######', + '+40360######', + '+40261######', + '+40361######', + '+40269######', + '+40369######', + '+40230######', + '+40330######', + '+40247######', + '+40347######', + '+40256######', + '+40356######', + '+40240######', + '+40340######', + '+40250######', + '+40350######', + '+40235######', + '+40335######', + '+40237######', + '+40337######', +]; diff --git a/src/locales/ro_MD/phone_number/formats.ts b/src/locales/ro_MD/phone_number/human.ts similarity index 100% rename from src/locales/ro_MD/phone_number/formats.ts rename to src/locales/ro_MD/phone_number/human.ts diff --git a/src/locales/ro_MD/phone_number/index.ts b/src/locales/ro_MD/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/ro_MD/phone_number/index.ts +++ b/src/locales/ro_MD/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/ro_MD/phone_number/national.ts b/src/locales/ro_MD/phone_number/national.ts new file mode 100644 index 00000000000..354744284e7 --- /dev/null +++ b/src/locales/ro_MD/phone_number/national.ts @@ -0,0 +1,12 @@ +export default [ + '022 0## ###', + '022 1## ###', + '022 2## ###', + '022 3## ###', + '022 4## ###', + '022 5## ###', + '022 6## ###', + '022 7## ###', + '022 8## ###', + '022 9## ###', +]; diff --git a/src/locales/ro_MD/phone_number/raw.ts b/src/locales/ro_MD/phone_number/raw.ts new file mode 100644 index 00000000000..fcc97daf473 --- /dev/null +++ b/src/locales/ro_MD/phone_number/raw.ts @@ -0,0 +1,12 @@ +export default [ + '+373220#####', + '+373221#####', + '+373222#####', + '+373223#####', + '+373224#####', + '+373225#####', + '+373226#####', + '+373227#####', + '+373228#####', + '+373229#####', +]; diff --git a/src/locales/ru/phone_number/formats.ts b/src/locales/ru/phone_number/human.ts similarity index 100% rename from src/locales/ru/phone_number/formats.ts rename to src/locales/ru/phone_number/human.ts diff --git a/src/locales/ru/phone_number/index.ts b/src/locales/ru/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/ru/phone_number/index.ts +++ b/src/locales/ru/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/ru/phone_number/national.ts b/src/locales/ru/phone_number/national.ts new file mode 100644 index 00000000000..99aa3178663 --- /dev/null +++ b/src/locales/ru/phone_number/national.ts @@ -0,0 +1 @@ +export default ['8 (9##) ###-##-##']; diff --git a/src/locales/ru/phone_number/raw.ts b/src/locales/ru/phone_number/raw.ts new file mode 100644 index 00000000000..ef2915cd614 --- /dev/null +++ b/src/locales/ru/phone_number/raw.ts @@ -0,0 +1 @@ +export default ['+79#########']; diff --git a/src/locales/sk/phone_number/formats.ts b/src/locales/sk/phone_number/human.ts similarity index 100% rename from src/locales/sk/phone_number/formats.ts rename to src/locales/sk/phone_number/human.ts diff --git a/src/locales/sk/phone_number/index.ts b/src/locales/sk/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/sk/phone_number/index.ts +++ b/src/locales/sk/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/sk/phone_number/national.ts b/src/locales/sk/phone_number/national.ts new file mode 100644 index 00000000000..66ea929c8d1 --- /dev/null +++ b/src/locales/sk/phone_number/national.ts @@ -0,0 +1 @@ +export default ['09## ### ###', '##########', '0##/### ## ##']; diff --git a/src/locales/sk/phone_number/raw.ts b/src/locales/sk/phone_number/raw.ts new file mode 100644 index 00000000000..9d9d4fc6a82 --- /dev/null +++ b/src/locales/sk/phone_number/raw.ts @@ -0,0 +1 @@ +export default ['+4219########', '+421##########', '+421#########']; diff --git a/src/locales/sr_RS_latin/phone_number/formats.ts b/src/locales/sr_RS_latin/phone_number/human.ts similarity index 100% rename from src/locales/sr_RS_latin/phone_number/formats.ts rename to src/locales/sr_RS_latin/phone_number/human.ts diff --git a/src/locales/sr_RS_latin/phone_number/index.ts b/src/locales/sr_RS_latin/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/sr_RS_latin/phone_number/index.ts +++ b/src/locales/sr_RS_latin/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/sr_RS_latin/phone_number/national.ts b/src/locales/sr_RS_latin/phone_number/national.ts new file mode 100644 index 00000000000..937058bf871 --- /dev/null +++ b/src/locales/sr_RS_latin/phone_number/national.ts @@ -0,0 +1,7 @@ +export default [ + '######', + '0## ########', + '06# #######', + '0## #######', + '0## ######', +]; diff --git a/src/locales/sr_RS_latin/phone_number/raw.ts b/src/locales/sr_RS_latin/phone_number/raw.ts new file mode 100644 index 00000000000..910082c59ae --- /dev/null +++ b/src/locales/sr_RS_latin/phone_number/raw.ts @@ -0,0 +1,7 @@ +export default [ + '+381######', + '+381##########', + '+3816########', + '+381#########', + '+381########', +]; diff --git a/src/locales/sv/phone_number/formats.ts b/src/locales/sv/phone_number/human.ts similarity index 100% rename from src/locales/sv/phone_number/formats.ts rename to src/locales/sv/phone_number/human.ts diff --git a/src/locales/sv/phone_number/index.ts b/src/locales/sv/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/sv/phone_number/index.ts +++ b/src/locales/sv/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/sv/phone_number/national.ts b/src/locales/sv/phone_number/national.ts new file mode 100644 index 00000000000..551b6f6b5b7 --- /dev/null +++ b/src/locales/sv/phone_number/national.ts @@ -0,0 +1,15 @@ +export default [ + '070-### ## ##', + '072-### ## ##', + '073-### ## ##', + '076-### ## ##', + '079-### ## ##', + '1#####', + '02#-### ##', + '03##-### ##', + '04#-### ## ##', + '5#####', + '06##-## ##', + '08-### ## ##', + '09##-## ## ##', +]; diff --git a/src/locales/sv/phone_number/raw.ts b/src/locales/sv/phone_number/raw.ts new file mode 100644 index 00000000000..6217a861cb8 --- /dev/null +++ b/src/locales/sv/phone_number/raw.ts @@ -0,0 +1,15 @@ +export default [ + '+4670#######', + '+4672#######', + '+4673#######', + '+4676#######', + '+4679#######', + '+461#####', + '+462######', + '+463#######', + '+464########', + '+465#####', + '+466######', + '+468#######', + '+469########', +]; diff --git a/src/locales/th/phone_number/formats.ts b/src/locales/th/phone_number/human.ts similarity index 100% rename from src/locales/th/phone_number/formats.ts rename to src/locales/th/phone_number/human.ts diff --git a/src/locales/th/phone_number/index.ts b/src/locales/th/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/th/phone_number/index.ts +++ b/src/locales/th/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/th/phone_number/national.ts b/src/locales/th/phone_number/national.ts new file mode 100644 index 00000000000..15fbf1bb17a --- /dev/null +++ b/src/locales/th/phone_number/national.ts @@ -0,0 +1,7 @@ +export default [ + '06# ### ####', + '08# ### ####', + '09# ### ####', + '02 ### ####', + '05! ### ###', +]; diff --git a/src/locales/th/phone_number/raw.ts b/src/locales/th/phone_number/raw.ts new file mode 100644 index 00000000000..bd1f7b721dc --- /dev/null +++ b/src/locales/th/phone_number/raw.ts @@ -0,0 +1,7 @@ +export default [ + '+666########', + '+668########', + '+669########', + '+662#######', + '+665!######', +]; diff --git a/src/locales/tr/phone_number/formats.ts b/src/locales/tr/phone_number/human.ts similarity index 100% rename from src/locales/tr/phone_number/formats.ts rename to src/locales/tr/phone_number/human.ts diff --git a/src/locales/tr/phone_number/index.ts b/src/locales/tr/phone_number/index.ts index 722efc38116..e581ebbadb2 100644 --- a/src/locales/tr/phone_number/index.ts +++ b/src/locales/tr/phone_number/index.ts @@ -4,11 +4,15 @@ */ import type { PhoneNumberDefinition } from '../../..'; import area_code from './area_code'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { area_code, - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/tr/phone_number/national.ts b/src/locales/tr/phone_number/national.ts new file mode 100644 index 00000000000..1584ece9899 --- /dev/null +++ b/src/locales/tr/phone_number/national.ts @@ -0,0 +1 @@ +export default ['(0###) ### ## ##']; diff --git a/src/locales/tr/phone_number/raw.ts b/src/locales/tr/phone_number/raw.ts new file mode 100644 index 00000000000..5f948638738 --- /dev/null +++ b/src/locales/tr/phone_number/raw.ts @@ -0,0 +1 @@ +export default ['+90##########']; diff --git a/src/locales/uk/phone_number/formats.ts b/src/locales/uk/phone_number/human.ts similarity index 100% rename from src/locales/uk/phone_number/formats.ts rename to src/locales/uk/phone_number/human.ts diff --git a/src/locales/uk/phone_number/index.ts b/src/locales/uk/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/uk/phone_number/index.ts +++ b/src/locales/uk/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/uk/phone_number/national.ts b/src/locales/uk/phone_number/national.ts new file mode 100644 index 00000000000..421b8cc1a59 --- /dev/null +++ b/src/locales/uk/phone_number/national.ts @@ -0,0 +1,16 @@ +export default [ + '044 ### ####', + '050 ### ####', + '063 ### ####', + '066 ### ####', + '073 ### ####', + '091 ### ####', + '092 ### ####', + '093 ### ####', + '094 ### ####', + '095 ### ####', + '096 ### ####', + '097 ### ####', + '098 ### ####', + '099 ### ####', +]; diff --git a/src/locales/uk/phone_number/raw.ts b/src/locales/uk/phone_number/raw.ts new file mode 100644 index 00000000000..ea3c8121ffe --- /dev/null +++ b/src/locales/uk/phone_number/raw.ts @@ -0,0 +1,16 @@ +export default [ + '+38044#######', + '+38050#######', + '+38063#######', + '+38066#######', + '+38073#######', + '+38091#######', + '+38092#######', + '+38093#######', + '+38094#######', + '+38095#######', + '+38096#######', + '+38097#######', + '+38098#######', + '+38099#######', +]; diff --git a/src/locales/vi/phone_number/formats.ts b/src/locales/vi/phone_number/human.ts similarity index 100% rename from src/locales/vi/phone_number/formats.ts rename to src/locales/vi/phone_number/human.ts diff --git a/src/locales/vi/phone_number/index.ts b/src/locales/vi/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/vi/phone_number/index.ts +++ b/src/locales/vi/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/vi/phone_number/national.ts b/src/locales/vi/phone_number/national.ts new file mode 100644 index 00000000000..05239fa1a8e --- /dev/null +++ b/src/locales/vi/phone_number/national.ts @@ -0,0 +1 @@ +export default ['02## #### ###', '2##########']; diff --git a/src/locales/vi/phone_number/raw.ts b/src/locales/vi/phone_number/raw.ts new file mode 100644 index 00000000000..69b0f4952db --- /dev/null +++ b/src/locales/vi/phone_number/raw.ts @@ -0,0 +1 @@ +export default ['+842#########', '+842##########']; diff --git a/src/locales/zh_CN/phone_number/formats.ts b/src/locales/zh_CN/phone_number/human.ts similarity index 100% rename from src/locales/zh_CN/phone_number/formats.ts rename to src/locales/zh_CN/phone_number/human.ts diff --git a/src/locales/zh_CN/phone_number/index.ts b/src/locales/zh_CN/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/zh_CN/phone_number/index.ts +++ b/src/locales/zh_CN/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/zh_CN/phone_number/national.ts b/src/locales/zh_CN/phone_number/national.ts new file mode 100644 index 00000000000..7e625eb690f --- /dev/null +++ b/src/locales/zh_CN/phone_number/national.ts @@ -0,0 +1 @@ +export default ['0## #### ####', '###########', '1##########']; diff --git a/src/locales/zh_CN/phone_number/raw.ts b/src/locales/zh_CN/phone_number/raw.ts new file mode 100644 index 00000000000..81f7de66b6e --- /dev/null +++ b/src/locales/zh_CN/phone_number/raw.ts @@ -0,0 +1 @@ +export default ['+86##########', '+86###########', '+861##########']; diff --git a/src/locales/zh_TW/phone_number/formats.ts b/src/locales/zh_TW/phone_number/human.ts similarity index 100% rename from src/locales/zh_TW/phone_number/formats.ts rename to src/locales/zh_TW/phone_number/human.ts diff --git a/src/locales/zh_TW/phone_number/index.ts b/src/locales/zh_TW/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/zh_TW/phone_number/index.ts +++ b/src/locales/zh_TW/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/zh_TW/phone_number/national.ts b/src/locales/zh_TW/phone_number/national.ts new file mode 100644 index 00000000000..1c29449e022 --- /dev/null +++ b/src/locales/zh_TW/phone_number/national.ts @@ -0,0 +1 @@ +export default ['0# ### ####', '02 #### ####', '09## ### ###']; diff --git a/src/locales/zh_TW/phone_number/raw.ts b/src/locales/zh_TW/phone_number/raw.ts new file mode 100644 index 00000000000..dbe3d1519eb --- /dev/null +++ b/src/locales/zh_TW/phone_number/raw.ts @@ -0,0 +1 @@ +export default ['+886########', '+8862########', '+8869########']; diff --git a/src/locales/zu_ZA/phone_number/formats.ts b/src/locales/zu_ZA/phone_number/human.ts similarity index 100% rename from src/locales/zu_ZA/phone_number/formats.ts rename to src/locales/zu_ZA/phone_number/human.ts diff --git a/src/locales/zu_ZA/phone_number/index.ts b/src/locales/zu_ZA/phone_number/index.ts index 1d7f77f10b9..fba454b26cc 100644 --- a/src/locales/zu_ZA/phone_number/index.ts +++ b/src/locales/zu_ZA/phone_number/index.ts @@ -3,10 +3,14 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; +import human from './human'; +import national from './national'; +import raw from './raw'; const phone_number: PhoneNumberDefinition = { - formats, + human, + national, + raw, }; export default phone_number; diff --git a/src/locales/zu_ZA/phone_number/national.ts b/src/locales/zu_ZA/phone_number/national.ts new file mode 100644 index 00000000000..5b9fea603d9 --- /dev/null +++ b/src/locales/zu_ZA/phone_number/national.ts @@ -0,0 +1,9 @@ +export default [ + '1#########', + '2#########', + '3#########', + '4#########', + '5#########', + '080 0## ####', + '0860 ### ###', +]; diff --git a/src/locales/zu_ZA/phone_number/raw.ts b/src/locales/zu_ZA/phone_number/raw.ts new file mode 100644 index 00000000000..31b6dfef439 --- /dev/null +++ b/src/locales/zu_ZA/phone_number/raw.ts @@ -0,0 +1,9 @@ +export default [ + '+271#########', + '+272#########', + '+273#########', + '+274#########', + '+275#########', + '+27800######', + '+27860######', +]; From c1671d712ed1afe8fbf0353cdc12cb4eb941a358 Mon Sep 17 00:00:00 2001 From: Matt Mayer Date: Fri, 9 Feb 2024 09:02:17 +0700 Subject: [PATCH 03/13] upgrading docs --- docs/guide/upgrading_v9/2578.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 docs/guide/upgrading_v9/2578.md diff --git a/docs/guide/upgrading_v9/2578.md b/docs/guide/upgrading_v9/2578.md new file mode 100644 index 00000000000..26e4fe37060 --- /dev/null +++ b/docs/guide/upgrading_v9/2578.md @@ -0,0 +1,15 @@ +### faker.phone.number `style` replaces explicit `format` + +`faker.phone.number()` generates a phone number for the current locale. However, previously there was little control over the generated number, which might or might not include country codes, extensions, white space and punctuation. + +If you wanted more control over the number, it was previously necessary to pass an explicit `format` parameter. This has now been removed. Instead, you can consider one of two options: + +1. The new `style` parameter has convenient options for common use cases. There are three possible values. + +- - `'human'`: (default, existing behavior) A human-input phone number, e.g. `555-770-7727` or `555.770.7727 x1234` +- - `'national'`: A phone number in a standardized national format, e.g. `(555) 123-4567`. +- - `'raw'`: A phone number in a raw international forma with country code, e.g. `+15551234567` + +The styles are locale-aware, so for example if you use pt_PT, phone numbers suitable for Portugal would be generated. + +2. If none of the `style`s match your needs, you can use `faker.string.numeric()` or `faker.helpers.fromRegExp()` to create a custom pattern. From 11dbd51f91f765d2304fcf617a85f9556e86b8d5 Mon Sep 17 00:00:00 2001 From: Matt Mayer Date: Fri, 9 Feb 2024 18:25:24 +0700 Subject: [PATCH 04/13] add tests --- src/modules/phone/index.ts | 2 +- test/modules/__snapshots__/phone.spec.ts.snap | 24 ++++++++++++++++--- test/modules/phone.spec.ts | 8 ++++++- 3 files changed, 29 insertions(+), 5 deletions(-) diff --git a/src/modules/phone/index.ts b/src/modules/phone/index.ts index a568ad9bb7c..5c0bc15fd7c 100644 --- a/src/modules/phone/index.ts +++ b/src/modules/phone/index.ts @@ -36,7 +36,7 @@ export class PhoneModule extends ModuleBase { * * @since 7.3.0 */ - number(options: { style: 'human' | 'national' | 'raw' }): string; + number(options?: { style: 'human' | 'national' | 'raw' }): string; number(options?: { /** * Style of the generated phone number: diff --git a/test/modules/__snapshots__/phone.spec.ts.snap b/test/modules/__snapshots__/phone.spec.ts.snap index 26f21a26956..738d6b284f2 100644 --- a/test/modules/__snapshots__/phone.spec.ts.snap +++ b/test/modules/__snapshots__/phone.spec.ts.snap @@ -2,12 +2,30 @@ exports[`phone > 42 > imei 1`] = `"37-917755-141004-5"`; -exports[`phone > 42 > number 1`] = `"(891) 775-5141 x004"`; +exports[`phone > 42 > number > noArgs 1`] = `"(891) 775-5141 x004"`; + +exports[`phone > 42 > number > with human style 1`] = `"(891) 775-5141 x004"`; + +exports[`phone > 42 > number > with national style 1`] = `"(479) 377-5514"`; + +exports[`phone > 42 > number > with raw style 1`] = `"+14793775514"`; exports[`phone > 1211 > imei 1`] = `"94-872190-616274-4"`; -exports[`phone > 1211 > number 1`] = `"1-587-319-0616 x27431"`; +exports[`phone > 1211 > number > noArgs 1`] = `"1-587-319-0616 x27431"`; + +exports[`phone > 1211 > number > with human style 1`] = `"1-587-319-0616 x27431"`; + +exports[`phone > 1211 > number > with national style 1`] = `"(948) 821-9061"`; + +exports[`phone > 1211 > number > with raw style 1`] = `"+19488219061"`; exports[`phone > 1337 > imei 1`] = `"25-122540-325523-4"`; -exports[`phone > 1337 > number 1`] = `"612-454-0325 x523"`; +exports[`phone > 1337 > number > noArgs 1`] = `"612-454-0325 x523"`; + +exports[`phone > 1337 > number > with human style 1`] = `"612-454-0325 x523"`; + +exports[`phone > 1337 > number > with national style 1`] = `"(451) 325-4032"`; + +exports[`phone > 1337 > number > with raw style 1`] = `"+14513254032"`; diff --git a/test/modules/phone.spec.ts b/test/modules/phone.spec.ts index 81ed42dccc4..bbda92b29bf 100644 --- a/test/modules/phone.spec.ts +++ b/test/modules/phone.spec.ts @@ -9,7 +9,13 @@ const NON_SEEDED_BASED_RUN = 25; describe('phone', () => { seededTests(faker, 'phone', (t) => { t.it('imei'); - t.it('number'); + + t.describe('number', (t) => { + t.it('noArgs') + .it('with human style', { style: 'human' }) + .it('with national style', { style: 'national' }) + .it('with raw style', { style: 'raw' }); + }); }); describe.each(times(NON_SEEDED_BASED_RUN).map(() => faker.seed()))( From 35440407587e949c8d34b349ba7d2d54c5cb030d Mon Sep 17 00:00:00 2001 From: Matt Mayer Date: Tue, 5 Mar 2024 22:07:20 +0700 Subject: [PATCH 05/13] update tests --- test/modules/__snapshots__/phone.spec.ts.snap | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/test/modules/__snapshots__/phone.spec.ts.snap b/test/modules/__snapshots__/phone.spec.ts.snap index 8d3bb7cbc62..d60aa93dda3 100644 --- a/test/modules/__snapshots__/phone.spec.ts.snap +++ b/test/modules/__snapshots__/phone.spec.ts.snap @@ -2,30 +2,30 @@ exports[`phone > 42 > imei 1`] = `"39-751108-670982-8"`; -exports[`phone > 42 > number > noArgs 1`] = `"(891) 775-5141 x004"`; +exports[`phone > 42 > number > noArgs 1`] = `"(975) 310-8670 x982"`; -exports[`phone > 42 > number > with human style 1`] = `"(891) 775-5141 x004"`; +exports[`phone > 42 > number > with human style 1`] = `"(975) 310-8670 x982"`; -exports[`phone > 42 > number > with national style 1`] = `"(479) 377-5514"`; +exports[`phone > 42 > number > with national style 1`] = `"(497) 611-0867"`; -exports[`phone > 42 > number > with raw style 1`] = `"+14793775514"`; +exports[`phone > 42 > number > with raw style 1`] = `"+14976110867"`; -exports[`phone > 1211 > imei 1`] = `"94-872190-616274-4"`; +exports[`phone > 1211 > imei 1`] = `"98-296673-687684-2"`; -exports[`phone > 1211 > number > noArgs 1`] = `"1-587-319-0616 x27431"`; +exports[`phone > 1211 > number > noArgs 1`] = `"1-929-767-3687 x68488"`; -exports[`phone > 1211 > number > with human style 1`] = `"1-587-319-0616 x27431"`; +exports[`phone > 1211 > number > with human style 1`] = `"1-929-767-3687 x68488"`; -exports[`phone > 1211 > number > with national style 1`] = `"(948) 821-9061"`; +exports[`phone > 1211 > number > with national style 1`] = `"(982) 966-7368"`; -exports[`phone > 1211 > number > with raw style 1`] = `"+19488219061"`; +exports[`phone > 1211 > number > with raw style 1`] = `"+19829667368"`; -exports[`phone > 1337 > imei 1`] = `"25-122540-325523-4"`; +exports[`phone > 1337 > imei 1`] = `"21-243529-713619-6"`; -exports[`phone > 1337 > number > noArgs 1`] = `"612-454-0325 x523"`; +exports[`phone > 1337 > number > noArgs 1`] = `"324-452-9713 x619"`; -exports[`phone > 1337 > number > with human style 1`] = `"612-454-0325 x523"`; +exports[`phone > 1337 > number > with human style 1`] = `"324-452-9713 x619"`; -exports[`phone > 1337 > number > with national style 1`] = `"(451) 325-4032"`; +exports[`phone > 1337 > number > with national style 1`] = `"(412) 535-2971"`; -exports[`phone > 1337 > number > with raw style 1`] = `"+14513254032"`; +exports[`phone > 1337 > number > with raw style 1`] = `"+14125352971"`; From b10f96a74b6cbfb2603977da78fb7915adbc0e44 Mon Sep 17 00:00:00 2001 From: Matt Mayer Date: Tue, 5 Mar 2024 23:50:10 +0700 Subject: [PATCH 06/13] refactor, move to nested format --- src/definitions/phone_number.ts | 8 +++++--- .../af_ZA/phone_number/{ => format}/human.ts | 0 src/locales/af_ZA/phone_number/format/index.ts | 16 ++++++++++++++++ .../phone_number/{ => format}/national.ts | 0 .../af_ZA/phone_number/{ => format}/raw.ts | 0 src/locales/af_ZA/phone_number/index.ts | 8 ++------ src/locales/ar/index.ts | 2 -- src/locales/ar/phone_number/formats.ts | 18 ------------------ src/locales/ar/phone_number/index.ts | 12 ------------ .../az/phone_number/{ => format}/human.ts | 0 src/locales/az/phone_number/format/index.ts | 16 ++++++++++++++++ .../az/phone_number/{ => format}/national.ts | 0 .../az/phone_number/{ => format}/raw.ts | 0 src/locales/az/phone_number/index.ts | 8 ++------ .../cs_CZ/phone_number/{ => format}/human.ts | 0 src/locales/cs_CZ/phone_number/format/index.ts | 16 ++++++++++++++++ .../phone_number/{ => format}/national.ts | 0 .../cs_CZ/phone_number/{ => format}/raw.ts | 0 src/locales/cs_CZ/phone_number/index.ts | 8 ++------ .../da/phone_number/{ => format}/human.ts | 0 src/locales/da/phone_number/format/index.ts | 16 ++++++++++++++++ .../da/phone_number/{ => format}/national.ts | 0 .../da/phone_number/{ => format}/raw.ts | 0 src/locales/da/phone_number/index.ts | 8 ++------ .../de/phone_number/{ => format}/human.ts | 0 src/locales/de/phone_number/format/index.ts | 16 ++++++++++++++++ .../de/phone_number/{ => format}/national.ts | 0 .../de/phone_number/{ => format}/raw.ts | 0 src/locales/de/phone_number/index.ts | 8 ++------ .../de_AT/phone_number/{ => format}/human.ts | 0 src/locales/de_AT/phone_number/format/index.ts | 16 ++++++++++++++++ .../phone_number/{ => format}/national.ts | 0 .../de_AT/phone_number/{ => format}/raw.ts | 0 src/locales/de_AT/phone_number/index.ts | 8 ++------ .../de_CH/phone_number/{ => format}/human.ts | 0 src/locales/de_CH/phone_number/format/index.ts | 16 ++++++++++++++++ .../phone_number/{ => format}/national.ts | 0 .../de_CH/phone_number/{ => format}/raw.ts | 0 src/locales/de_CH/phone_number/index.ts | 8 ++------ .../dv/phone_number/{ => format}/human.ts | 0 src/locales/dv/phone_number/format/index.ts | 16 ++++++++++++++++ .../dv/phone_number/{ => format}/national.ts | 0 .../dv/phone_number/{ => format}/raw.ts | 0 src/locales/dv/phone_number/index.ts | 8 ++------ .../el/phone_number/{ => format}/human.ts | 0 src/locales/el/phone_number/format/index.ts | 16 ++++++++++++++++ .../el/phone_number/{ => format}/national.ts | 0 .../el/phone_number/{ => format}/raw.ts | 0 src/locales/el/phone_number/index.ts | 8 ++------ .../en/phone_number/{ => format}/human.ts | 0 src/locales/en/phone_number/format/index.ts | 16 ++++++++++++++++ .../en/phone_number/{ => format}/national.ts | 0 .../en/phone_number/{ => format}/raw.ts | 0 src/locales/en/phone_number/index.ts | 8 ++------ .../en_AU/phone_number/{ => format}/human.ts | 0 src/locales/en_AU/phone_number/format/index.ts | 16 ++++++++++++++++ .../phone_number/{ => format}/national.ts | 0 .../en_AU/phone_number/{ => format}/raw.ts | 0 src/locales/en_AU/phone_number/index.ts | 8 ++------ .../phone_number/{ => format}/human.ts | 0 .../en_AU_ocker/phone_number/format/index.ts | 16 ++++++++++++++++ .../phone_number/{ => format}/national.ts | 0 .../phone_number/{ => format}/raw.ts | 0 src/locales/en_AU_ocker/phone_number/index.ts | 8 ++------ .../en_CA/phone_number/{ => format}/human.ts | 0 src/locales/en_CA/phone_number/format/index.ts | 16 ++++++++++++++++ .../phone_number/{ => format}/national.ts | 0 .../en_CA/phone_number/{ => format}/raw.ts | 0 src/locales/en_CA/phone_number/index.ts | 8 ++------ .../en_GB/phone_number/{ => format}/human.ts | 0 src/locales/en_GB/phone_number/format/index.ts | 16 ++++++++++++++++ .../phone_number/{ => format}/national.ts | 0 .../en_GB/phone_number/{ => format}/raw.ts | 0 src/locales/en_GB/phone_number/index.ts | 8 ++------ .../en_GH/phone_number/{ => format}/human.ts | 0 src/locales/en_GH/phone_number/format/index.ts | 16 ++++++++++++++++ .../phone_number/{ => format}/national.ts | 0 .../en_GH/phone_number/{ => format}/raw.ts | 0 src/locales/en_GH/phone_number/index.ts | 8 ++------ .../en_HK/phone_number/{ => format}/human.ts | 0 src/locales/en_HK/phone_number/format/index.ts | 16 ++++++++++++++++ .../phone_number/{ => format}/national.ts | 0 .../en_HK/phone_number/{ => format}/raw.ts | 0 src/locales/en_HK/phone_number/index.ts | 8 ++------ .../en_IE/phone_number/{ => format}/human.ts | 0 src/locales/en_IE/phone_number/format/index.ts | 16 ++++++++++++++++ .../phone_number/{ => format}/national.ts | 0 .../en_IE/phone_number/{ => format}/raw.ts | 0 src/locales/en_IE/phone_number/index.ts | 8 ++------ .../en_IN/phone_number/{ => format}/human.ts | 0 src/locales/en_IN/phone_number/format/index.ts | 16 ++++++++++++++++ .../phone_number/{ => format}/national.ts | 0 .../en_IN/phone_number/{ => format}/raw.ts | 0 src/locales/en_IN/phone_number/index.ts | 8 ++------ .../en_NG/phone_number/{ => format}/human.ts | 0 src/locales/en_NG/phone_number/format/index.ts | 16 ++++++++++++++++ .../phone_number/{ => format}/national.ts | 0 .../en_NG/phone_number/{ => format}/raw.ts | 0 src/locales/en_NG/phone_number/index.ts | 8 ++------ .../en_ZA/phone_number/{ => format}/human.ts | 0 src/locales/en_ZA/phone_number/format/index.ts | 16 ++++++++++++++++ .../phone_number/{ => format}/national.ts | 0 .../en_ZA/phone_number/{ => format}/raw.ts | 0 src/locales/en_ZA/phone_number/index.ts | 8 ++------ .../es/phone_number/{ => format}/human.ts | 0 src/locales/es/phone_number/format/index.ts | 16 ++++++++++++++++ .../es/phone_number/{ => format}/national.ts | 0 .../es/phone_number/{ => format}/raw.ts | 0 src/locales/es/phone_number/index.ts | 8 ++------ .../es_MX/phone_number/{ => format}/human.ts | 0 src/locales/es_MX/phone_number/format/index.ts | 16 ++++++++++++++++ .../phone_number/{ => format}/national.ts | 0 .../es_MX/phone_number/{ => format}/raw.ts | 0 src/locales/es_MX/phone_number/index.ts | 8 ++------ .../fa/phone_number/{ => format}/human.ts | 0 src/locales/fa/phone_number/format/index.ts | 16 ++++++++++++++++ .../fa/phone_number/{ => format}/national.ts | 0 .../fa/phone_number/{ => format}/raw.ts | 0 src/locales/fa/phone_number/index.ts | 8 ++------ .../fr/phone_number/{ => format}/human.ts | 0 src/locales/fr/phone_number/format/index.ts | 16 ++++++++++++++++ .../fr/phone_number/{ => format}/national.ts | 0 .../fr/phone_number/{ => format}/raw.ts | 0 src/locales/fr/phone_number/index.ts | 8 ++------ .../fr_BE/phone_number/{ => format}/human.ts | 0 src/locales/fr_BE/phone_number/format/index.ts | 16 ++++++++++++++++ .../phone_number/{ => format}/national.ts | 0 .../fr_BE/phone_number/{ => format}/raw.ts | 0 src/locales/fr_BE/phone_number/index.ts | 8 ++------ .../fr_CA/phone_number/{ => format}/human.ts | 0 src/locales/fr_CA/phone_number/format/index.ts | 16 ++++++++++++++++ .../phone_number/{ => format}/national.ts | 0 .../fr_CA/phone_number/{ => format}/raw.ts | 0 src/locales/fr_CA/phone_number/index.ts | 8 ++------ .../fr_CH/phone_number/{ => format}/human.ts | 0 src/locales/fr_CH/phone_number/format/index.ts | 16 ++++++++++++++++ .../phone_number/{ => format}/national.ts | 0 .../fr_CH/phone_number/{ => format}/raw.ts | 0 src/locales/fr_CH/phone_number/index.ts | 8 ++------ .../fr_LU/phone_number/{ => format}/human.ts | 0 src/locales/fr_LU/phone_number/format/index.ts | 16 ++++++++++++++++ .../phone_number/{ => format}/national.ts | 0 .../fr_LU/phone_number/{ => format}/raw.ts | 0 src/locales/fr_LU/phone_number/index.ts | 8 ++------ .../he/phone_number/{ => format}/human.ts | 0 src/locales/he/phone_number/format/index.ts | 16 ++++++++++++++++ .../he/phone_number/{ => format}/national.ts | 0 .../he/phone_number/{ => format}/raw.ts | 0 src/locales/he/phone_number/index.ts | 8 ++------ .../hr/phone_number/{ => format}/human.ts | 0 src/locales/hr/phone_number/format/index.ts | 16 ++++++++++++++++ .../hr/phone_number/{ => format}/national.ts | 0 .../hr/phone_number/{ => format}/raw.ts | 0 src/locales/hr/phone_number/index.ts | 8 ++------ .../hu/phone_number/{ => format}/human.ts | 0 src/locales/hu/phone_number/format/index.ts | 16 ++++++++++++++++ .../hu/phone_number/{ => format}/national.ts | 0 .../hu/phone_number/{ => format}/raw.ts | 0 src/locales/hu/phone_number/index.ts | 8 ++------ .../hy/phone_number/{ => format}/human.ts | 0 src/locales/hy/phone_number/format/index.ts | 16 ++++++++++++++++ .../hy/phone_number/{ => format}/national.ts | 0 .../hy/phone_number/{ => format}/raw.ts | 0 src/locales/hy/phone_number/index.ts | 8 ++------ .../id_ID/phone_number/{ => format}/human.ts | 0 src/locales/id_ID/phone_number/format/index.ts | 16 ++++++++++++++++ .../phone_number/{ => format}/national.ts | 0 .../id_ID/phone_number/{ => format}/raw.ts | 0 src/locales/id_ID/phone_number/index.ts | 8 ++------ .../it/phone_number/{ => format}/human.ts | 0 src/locales/it/phone_number/format/index.ts | 16 ++++++++++++++++ .../it/phone_number/{ => format}/national.ts | 0 .../it/phone_number/{ => format}/raw.ts | 0 src/locales/it/phone_number/index.ts | 8 ++------ .../ja/phone_number/{ => format}/human.ts | 0 src/locales/ja/phone_number/format/index.ts | 16 ++++++++++++++++ .../ja/phone_number/{ => format}/national.ts | 0 .../ja/phone_number/{ => format}/raw.ts | 0 src/locales/ja/phone_number/index.ts | 8 ++------ .../ka_GE/phone_number/{ => format}/human.ts | 0 src/locales/ka_GE/phone_number/format/index.ts | 16 ++++++++++++++++ .../phone_number/{ => format}/national.ts | 0 .../ka_GE/phone_number/{ => format}/raw.ts | 0 src/locales/ka_GE/phone_number/index.ts | 8 ++------ .../ko/phone_number/{ => format}/human.ts | 0 src/locales/ko/phone_number/format/index.ts | 16 ++++++++++++++++ .../ko/phone_number/{ => format}/national.ts | 0 .../ko/phone_number/{ => format}/raw.ts | 0 src/locales/ko/phone_number/index.ts | 8 ++------ .../lv/phone_number/{ => format}/human.ts | 0 src/locales/lv/phone_number/format/index.ts | 16 ++++++++++++++++ .../lv/phone_number/{ => format}/national.ts | 0 .../lv/phone_number/{ => format}/raw.ts | 0 src/locales/lv/phone_number/index.ts | 8 ++------ .../mk/phone_number/{ => format}/human.ts | 0 src/locales/mk/phone_number/format/index.ts | 16 ++++++++++++++++ .../mk/phone_number/{ => format}/national.ts | 0 .../mk/phone_number/{ => format}/raw.ts | 0 src/locales/mk/phone_number/index.ts | 8 ++------ .../nb_NO/phone_number/{ => format}/human.ts | 0 src/locales/nb_NO/phone_number/format/index.ts | 16 ++++++++++++++++ .../phone_number/{ => format}/national.ts | 0 .../nb_NO/phone_number/{ => format}/raw.ts | 0 src/locales/nb_NO/phone_number/index.ts | 8 ++------ .../ne/phone_number/{ => format}/human.ts | 0 src/locales/ne/phone_number/format/index.ts | 16 ++++++++++++++++ .../ne/phone_number/{ => format}/national.ts | 0 .../ne/phone_number/{ => format}/raw.ts | 0 src/locales/ne/phone_number/index.ts | 8 ++------ .../nl/phone_number/{ => format}/human.ts | 0 src/locales/nl/phone_number/format/index.ts | 16 ++++++++++++++++ .../nl/phone_number/{ => format}/national.ts | 0 .../nl/phone_number/{ => format}/raw.ts | 0 src/locales/nl/phone_number/index.ts | 8 ++------ .../nl_BE/phone_number/{ => format}/human.ts | 0 src/locales/nl_BE/phone_number/format/index.ts | 16 ++++++++++++++++ .../phone_number/{ => format}/national.ts | 0 .../nl_BE/phone_number/{ => format}/raw.ts | 0 src/locales/nl_BE/phone_number/index.ts | 8 ++------ .../pl/phone_number/{ => format}/human.ts | 0 src/locales/pl/phone_number/format/index.ts | 16 ++++++++++++++++ .../pl/phone_number/{ => format}/national.ts | 0 .../pl/phone_number/{ => format}/raw.ts | 0 src/locales/pl/phone_number/index.ts | 8 ++------ .../pt_BR/phone_number/{ => format}/human.ts | 0 src/locales/pt_BR/phone_number/format/index.ts | 16 ++++++++++++++++ .../phone_number/{ => format}/national.ts | 0 .../pt_BR/phone_number/{ => format}/raw.ts | 0 src/locales/pt_BR/phone_number/index.ts | 8 ++------ .../pt_PT/phone_number/{ => format}/human.ts | 0 src/locales/pt_PT/phone_number/format/index.ts | 16 ++++++++++++++++ .../phone_number/{ => format}/national.ts | 0 .../pt_PT/phone_number/{ => format}/raw.ts | 0 src/locales/pt_PT/phone_number/index.ts | 8 ++------ .../ro/phone_number/{ => format}/human.ts | 0 src/locales/ro/phone_number/format/index.ts | 16 ++++++++++++++++ .../ro/phone_number/{ => format}/national.ts | 0 .../ro/phone_number/{ => format}/raw.ts | 0 src/locales/ro/phone_number/index.ts | 8 ++------ .../ro_MD/phone_number/{ => format}/human.ts | 0 src/locales/ro_MD/phone_number/format/index.ts | 16 ++++++++++++++++ .../phone_number/{ => format}/national.ts | 0 .../ro_MD/phone_number/{ => format}/raw.ts | 0 src/locales/ro_MD/phone_number/index.ts | 8 ++------ .../ru/phone_number/{ => format}/human.ts | 0 src/locales/ru/phone_number/format/index.ts | 16 ++++++++++++++++ .../ru/phone_number/{ => format}/national.ts | 0 .../ru/phone_number/{ => format}/raw.ts | 0 src/locales/ru/phone_number/index.ts | 8 ++------ .../sk/phone_number/{ => format}/human.ts | 0 src/locales/sk/phone_number/format/index.ts | 16 ++++++++++++++++ .../sk/phone_number/{ => format}/national.ts | 0 .../sk/phone_number/{ => format}/raw.ts | 0 src/locales/sk/phone_number/index.ts | 8 ++------ .../phone_number/{ => format}/human.ts | 0 .../sr_RS_latin/phone_number/format/index.ts | 16 ++++++++++++++++ .../phone_number/{ => format}/national.ts | 0 .../phone_number/{ => format}/raw.ts | 0 src/locales/sr_RS_latin/phone_number/index.ts | 8 ++------ .../sv/phone_number/{ => format}/human.ts | 0 src/locales/sv/phone_number/format/index.ts | 16 ++++++++++++++++ .../sv/phone_number/{ => format}/national.ts | 0 .../sv/phone_number/{ => format}/raw.ts | 0 src/locales/sv/phone_number/index.ts | 8 ++------ .../th/phone_number/{ => format}/human.ts | 0 src/locales/th/phone_number/format/index.ts | 16 ++++++++++++++++ .../th/phone_number/{ => format}/national.ts | 0 .../th/phone_number/{ => format}/raw.ts | 0 src/locales/th/phone_number/index.ts | 8 ++------ .../tr/phone_number/{ => format}/human.ts | 0 src/locales/tr/phone_number/format/index.ts | 16 ++++++++++++++++ .../tr/phone_number/{ => format}/national.ts | 0 .../tr/phone_number/{ => format}/raw.ts | 0 src/locales/tr/phone_number/index.ts | 8 ++------ .../uk/phone_number/{ => format}/human.ts | 0 src/locales/uk/phone_number/format/index.ts | 16 ++++++++++++++++ .../uk/phone_number/{ => format}/national.ts | 0 .../uk/phone_number/{ => format}/raw.ts | 0 src/locales/uk/phone_number/index.ts | 8 ++------ .../vi/phone_number/{ => format}/human.ts | 0 src/locales/vi/phone_number/format/index.ts | 16 ++++++++++++++++ .../vi/phone_number/{ => format}/national.ts | 0 .../vi/phone_number/{ => format}/raw.ts | 0 src/locales/vi/phone_number/index.ts | 8 ++------ .../zh_CN/phone_number/{ => format}/human.ts | 0 src/locales/zh_CN/phone_number/format/index.ts | 16 ++++++++++++++++ .../phone_number/{ => format}/national.ts | 0 .../zh_CN/phone_number/{ => format}/raw.ts | 0 src/locales/zh_CN/phone_number/index.ts | 8 ++------ .../zh_TW/phone_number/{ => format}/human.ts | 0 src/locales/zh_TW/phone_number/format/index.ts | 16 ++++++++++++++++ .../phone_number/{ => format}/national.ts | 0 .../zh_TW/phone_number/{ => format}/raw.ts | 0 src/locales/zh_TW/phone_number/index.ts | 8 ++------ .../zu_ZA/phone_number/{ => format}/human.ts | 0 src/locales/zu_ZA/phone_number/format/index.ts | 16 ++++++++++++++++ .../phone_number/{ => format}/national.ts | 0 .../zu_ZA/phone_number/{ => format}/raw.ts | 0 src/locales/zu_ZA/phone_number/index.ts | 8 ++------ src/modules/phone/index.ts | 8 ++------ 300 files changed, 1069 insertions(+), 395 deletions(-) rename src/locales/af_ZA/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/af_ZA/phone_number/format/index.ts rename src/locales/af_ZA/phone_number/{ => format}/national.ts (100%) rename src/locales/af_ZA/phone_number/{ => format}/raw.ts (100%) delete mode 100644 src/locales/ar/phone_number/formats.ts delete mode 100644 src/locales/ar/phone_number/index.ts rename src/locales/az/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/az/phone_number/format/index.ts rename src/locales/az/phone_number/{ => format}/national.ts (100%) rename src/locales/az/phone_number/{ => format}/raw.ts (100%) rename src/locales/cs_CZ/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/cs_CZ/phone_number/format/index.ts rename src/locales/cs_CZ/phone_number/{ => format}/national.ts (100%) rename src/locales/cs_CZ/phone_number/{ => format}/raw.ts (100%) rename src/locales/da/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/da/phone_number/format/index.ts rename src/locales/da/phone_number/{ => format}/national.ts (100%) rename src/locales/da/phone_number/{ => format}/raw.ts (100%) rename src/locales/de/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/de/phone_number/format/index.ts rename src/locales/de/phone_number/{ => format}/national.ts (100%) rename src/locales/de/phone_number/{ => format}/raw.ts (100%) rename src/locales/de_AT/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/de_AT/phone_number/format/index.ts rename src/locales/de_AT/phone_number/{ => format}/national.ts (100%) rename src/locales/de_AT/phone_number/{ => format}/raw.ts (100%) rename src/locales/de_CH/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/de_CH/phone_number/format/index.ts rename src/locales/de_CH/phone_number/{ => format}/national.ts (100%) rename src/locales/de_CH/phone_number/{ => format}/raw.ts (100%) rename src/locales/dv/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/dv/phone_number/format/index.ts rename src/locales/dv/phone_number/{ => format}/national.ts (100%) rename src/locales/dv/phone_number/{ => format}/raw.ts (100%) rename src/locales/el/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/el/phone_number/format/index.ts rename src/locales/el/phone_number/{ => format}/national.ts (100%) rename src/locales/el/phone_number/{ => format}/raw.ts (100%) rename src/locales/en/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/en/phone_number/format/index.ts rename src/locales/en/phone_number/{ => format}/national.ts (100%) rename src/locales/en/phone_number/{ => format}/raw.ts (100%) rename src/locales/en_AU/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/en_AU/phone_number/format/index.ts rename src/locales/en_AU/phone_number/{ => format}/national.ts (100%) rename src/locales/en_AU/phone_number/{ => format}/raw.ts (100%) rename src/locales/en_AU_ocker/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/en_AU_ocker/phone_number/format/index.ts rename src/locales/en_AU_ocker/phone_number/{ => format}/national.ts (100%) rename src/locales/en_AU_ocker/phone_number/{ => format}/raw.ts (100%) rename src/locales/en_CA/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/en_CA/phone_number/format/index.ts rename src/locales/en_CA/phone_number/{ => format}/national.ts (100%) rename src/locales/en_CA/phone_number/{ => format}/raw.ts (100%) rename src/locales/en_GB/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/en_GB/phone_number/format/index.ts rename src/locales/en_GB/phone_number/{ => format}/national.ts (100%) rename src/locales/en_GB/phone_number/{ => format}/raw.ts (100%) rename src/locales/en_GH/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/en_GH/phone_number/format/index.ts rename src/locales/en_GH/phone_number/{ => format}/national.ts (100%) rename src/locales/en_GH/phone_number/{ => format}/raw.ts (100%) rename src/locales/en_HK/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/en_HK/phone_number/format/index.ts rename src/locales/en_HK/phone_number/{ => format}/national.ts (100%) rename src/locales/en_HK/phone_number/{ => format}/raw.ts (100%) rename src/locales/en_IE/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/en_IE/phone_number/format/index.ts rename src/locales/en_IE/phone_number/{ => format}/national.ts (100%) rename src/locales/en_IE/phone_number/{ => format}/raw.ts (100%) rename src/locales/en_IN/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/en_IN/phone_number/format/index.ts rename src/locales/en_IN/phone_number/{ => format}/national.ts (100%) rename src/locales/en_IN/phone_number/{ => format}/raw.ts (100%) rename src/locales/en_NG/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/en_NG/phone_number/format/index.ts rename src/locales/en_NG/phone_number/{ => format}/national.ts (100%) rename src/locales/en_NG/phone_number/{ => format}/raw.ts (100%) rename src/locales/en_ZA/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/en_ZA/phone_number/format/index.ts rename src/locales/en_ZA/phone_number/{ => format}/national.ts (100%) rename src/locales/en_ZA/phone_number/{ => format}/raw.ts (100%) rename src/locales/es/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/es/phone_number/format/index.ts rename src/locales/es/phone_number/{ => format}/national.ts (100%) rename src/locales/es/phone_number/{ => format}/raw.ts (100%) rename src/locales/es_MX/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/es_MX/phone_number/format/index.ts rename src/locales/es_MX/phone_number/{ => format}/national.ts (100%) rename src/locales/es_MX/phone_number/{ => format}/raw.ts (100%) rename src/locales/fa/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/fa/phone_number/format/index.ts rename src/locales/fa/phone_number/{ => format}/national.ts (100%) rename src/locales/fa/phone_number/{ => format}/raw.ts (100%) rename src/locales/fr/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/fr/phone_number/format/index.ts rename src/locales/fr/phone_number/{ => format}/national.ts (100%) rename src/locales/fr/phone_number/{ => format}/raw.ts (100%) rename src/locales/fr_BE/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/fr_BE/phone_number/format/index.ts rename src/locales/fr_BE/phone_number/{ => format}/national.ts (100%) rename src/locales/fr_BE/phone_number/{ => format}/raw.ts (100%) rename src/locales/fr_CA/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/fr_CA/phone_number/format/index.ts rename src/locales/fr_CA/phone_number/{ => format}/national.ts (100%) rename src/locales/fr_CA/phone_number/{ => format}/raw.ts (100%) rename src/locales/fr_CH/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/fr_CH/phone_number/format/index.ts rename src/locales/fr_CH/phone_number/{ => format}/national.ts (100%) rename src/locales/fr_CH/phone_number/{ => format}/raw.ts (100%) rename src/locales/fr_LU/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/fr_LU/phone_number/format/index.ts rename src/locales/fr_LU/phone_number/{ => format}/national.ts (100%) rename src/locales/fr_LU/phone_number/{ => format}/raw.ts (100%) rename src/locales/he/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/he/phone_number/format/index.ts rename src/locales/he/phone_number/{ => format}/national.ts (100%) rename src/locales/he/phone_number/{ => format}/raw.ts (100%) rename src/locales/hr/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/hr/phone_number/format/index.ts rename src/locales/hr/phone_number/{ => format}/national.ts (100%) rename src/locales/hr/phone_number/{ => format}/raw.ts (100%) rename src/locales/hu/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/hu/phone_number/format/index.ts rename src/locales/hu/phone_number/{ => format}/national.ts (100%) rename src/locales/hu/phone_number/{ => format}/raw.ts (100%) rename src/locales/hy/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/hy/phone_number/format/index.ts rename src/locales/hy/phone_number/{ => format}/national.ts (100%) rename src/locales/hy/phone_number/{ => format}/raw.ts (100%) rename src/locales/id_ID/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/id_ID/phone_number/format/index.ts rename src/locales/id_ID/phone_number/{ => format}/national.ts (100%) rename src/locales/id_ID/phone_number/{ => format}/raw.ts (100%) rename src/locales/it/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/it/phone_number/format/index.ts rename src/locales/it/phone_number/{ => format}/national.ts (100%) rename src/locales/it/phone_number/{ => format}/raw.ts (100%) rename src/locales/ja/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/ja/phone_number/format/index.ts rename src/locales/ja/phone_number/{ => format}/national.ts (100%) rename src/locales/ja/phone_number/{ => format}/raw.ts (100%) rename src/locales/ka_GE/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/ka_GE/phone_number/format/index.ts rename src/locales/ka_GE/phone_number/{ => format}/national.ts (100%) rename src/locales/ka_GE/phone_number/{ => format}/raw.ts (100%) rename src/locales/ko/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/ko/phone_number/format/index.ts rename src/locales/ko/phone_number/{ => format}/national.ts (100%) rename src/locales/ko/phone_number/{ => format}/raw.ts (100%) rename src/locales/lv/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/lv/phone_number/format/index.ts rename src/locales/lv/phone_number/{ => format}/national.ts (100%) rename src/locales/lv/phone_number/{ => format}/raw.ts (100%) rename src/locales/mk/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/mk/phone_number/format/index.ts rename src/locales/mk/phone_number/{ => format}/national.ts (100%) rename src/locales/mk/phone_number/{ => format}/raw.ts (100%) rename src/locales/nb_NO/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/nb_NO/phone_number/format/index.ts rename src/locales/nb_NO/phone_number/{ => format}/national.ts (100%) rename src/locales/nb_NO/phone_number/{ => format}/raw.ts (100%) rename src/locales/ne/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/ne/phone_number/format/index.ts rename src/locales/ne/phone_number/{ => format}/national.ts (100%) rename src/locales/ne/phone_number/{ => format}/raw.ts (100%) rename src/locales/nl/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/nl/phone_number/format/index.ts rename src/locales/nl/phone_number/{ => format}/national.ts (100%) rename src/locales/nl/phone_number/{ => format}/raw.ts (100%) rename src/locales/nl_BE/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/nl_BE/phone_number/format/index.ts rename src/locales/nl_BE/phone_number/{ => format}/national.ts (100%) rename src/locales/nl_BE/phone_number/{ => format}/raw.ts (100%) rename src/locales/pl/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/pl/phone_number/format/index.ts rename src/locales/pl/phone_number/{ => format}/national.ts (100%) rename src/locales/pl/phone_number/{ => format}/raw.ts (100%) rename src/locales/pt_BR/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/pt_BR/phone_number/format/index.ts rename src/locales/pt_BR/phone_number/{ => format}/national.ts (100%) rename src/locales/pt_BR/phone_number/{ => format}/raw.ts (100%) rename src/locales/pt_PT/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/pt_PT/phone_number/format/index.ts rename src/locales/pt_PT/phone_number/{ => format}/national.ts (100%) rename src/locales/pt_PT/phone_number/{ => format}/raw.ts (100%) rename src/locales/ro/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/ro/phone_number/format/index.ts rename src/locales/ro/phone_number/{ => format}/national.ts (100%) rename src/locales/ro/phone_number/{ => format}/raw.ts (100%) rename src/locales/ro_MD/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/ro_MD/phone_number/format/index.ts rename src/locales/ro_MD/phone_number/{ => format}/national.ts (100%) rename src/locales/ro_MD/phone_number/{ => format}/raw.ts (100%) rename src/locales/ru/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/ru/phone_number/format/index.ts rename src/locales/ru/phone_number/{ => format}/national.ts (100%) rename src/locales/ru/phone_number/{ => format}/raw.ts (100%) rename src/locales/sk/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/sk/phone_number/format/index.ts rename src/locales/sk/phone_number/{ => format}/national.ts (100%) rename src/locales/sk/phone_number/{ => format}/raw.ts (100%) rename src/locales/sr_RS_latin/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/sr_RS_latin/phone_number/format/index.ts rename src/locales/sr_RS_latin/phone_number/{ => format}/national.ts (100%) rename src/locales/sr_RS_latin/phone_number/{ => format}/raw.ts (100%) rename src/locales/sv/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/sv/phone_number/format/index.ts rename src/locales/sv/phone_number/{ => format}/national.ts (100%) rename src/locales/sv/phone_number/{ => format}/raw.ts (100%) rename src/locales/th/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/th/phone_number/format/index.ts rename src/locales/th/phone_number/{ => format}/national.ts (100%) rename src/locales/th/phone_number/{ => format}/raw.ts (100%) rename src/locales/tr/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/tr/phone_number/format/index.ts rename src/locales/tr/phone_number/{ => format}/national.ts (100%) rename src/locales/tr/phone_number/{ => format}/raw.ts (100%) rename src/locales/uk/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/uk/phone_number/format/index.ts rename src/locales/uk/phone_number/{ => format}/national.ts (100%) rename src/locales/uk/phone_number/{ => format}/raw.ts (100%) rename src/locales/vi/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/vi/phone_number/format/index.ts rename src/locales/vi/phone_number/{ => format}/national.ts (100%) rename src/locales/vi/phone_number/{ => format}/raw.ts (100%) rename src/locales/zh_CN/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/zh_CN/phone_number/format/index.ts rename src/locales/zh_CN/phone_number/{ => format}/national.ts (100%) rename src/locales/zh_CN/phone_number/{ => format}/raw.ts (100%) rename src/locales/zh_TW/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/zh_TW/phone_number/format/index.ts rename src/locales/zh_TW/phone_number/{ => format}/national.ts (100%) rename src/locales/zh_TW/phone_number/{ => format}/raw.ts (100%) rename src/locales/zu_ZA/phone_number/{ => format}/human.ts (100%) create mode 100644 src/locales/zu_ZA/phone_number/format/index.ts rename src/locales/zu_ZA/phone_number/{ => format}/national.ts (100%) rename src/locales/zu_ZA/phone_number/{ => format}/raw.ts (100%) diff --git a/src/definitions/phone_number.ts b/src/definitions/phone_number.ts index 3cbc7d66875..89e6e43b07a 100644 --- a/src/definitions/phone_number.ts +++ b/src/definitions/phone_number.ts @@ -12,7 +12,9 @@ export type PhoneNumberDefinition = LocaleEntry<{ * * @see faker.helpers.replaceSymbolWithNumber(format): For more information about how the patterns are used. */ - human: string[]; - national: string[]; - raw: string[]; + format: { + human: string[]; + national: string[]; + raw: string[]; + } }>; diff --git a/src/locales/af_ZA/phone_number/human.ts b/src/locales/af_ZA/phone_number/format/human.ts similarity index 100% rename from src/locales/af_ZA/phone_number/human.ts rename to src/locales/af_ZA/phone_number/format/human.ts diff --git a/src/locales/af_ZA/phone_number/format/index.ts b/src/locales/af_ZA/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/af_ZA/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/af_ZA/phone_number/national.ts b/src/locales/af_ZA/phone_number/format/national.ts similarity index 100% rename from src/locales/af_ZA/phone_number/national.ts rename to src/locales/af_ZA/phone_number/format/national.ts diff --git a/src/locales/af_ZA/phone_number/raw.ts b/src/locales/af_ZA/phone_number/format/raw.ts similarity index 100% rename from src/locales/af_ZA/phone_number/raw.ts rename to src/locales/af_ZA/phone_number/format/raw.ts diff --git a/src/locales/af_ZA/phone_number/index.ts b/src/locales/af_ZA/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/af_ZA/phone_number/index.ts +++ b/src/locales/af_ZA/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/ar/index.ts b/src/locales/ar/index.ts index be7757b7e26..6d7b46e0c4b 100644 --- a/src/locales/ar/index.ts +++ b/src/locales/ar/index.ts @@ -11,7 +11,6 @@ import location from './location'; import lorem from './lorem'; import metadata from './metadata'; import person from './person'; -import phone_number from './phone_number'; import team from './team'; import vehicle from './vehicle'; @@ -24,7 +23,6 @@ const ar: LocaleDefinition = { lorem, metadata, person, - phone_number, team, vehicle, }; diff --git a/src/locales/ar/phone_number/formats.ts b/src/locales/ar/phone_number/formats.ts deleted file mode 100644 index 5df10098606..00000000000 --- a/src/locales/ar/phone_number/formats.ts +++ /dev/null @@ -1,18 +0,0 @@ -export default [ - '###-###-####', - '(###) ###-####', - '1-###-###-####', - '###.###.####', - '###-###-#### x###', - '(###) ###-#### x###', - '1-###-###-#### x###', - '###.###.#### x###', - '###-###-#### x####', - '(###) ###-#### x####', - '1-###-###-#### x####', - '###.###.#### x####', - '###-###-#### x#####', - '(###) ###-#### x#####', - '1-###-###-#### x#####', - '###.###.#### x#####', -]; diff --git a/src/locales/ar/phone_number/index.ts b/src/locales/ar/phone_number/index.ts deleted file mode 100644 index 1d7f77f10b9..00000000000 --- a/src/locales/ar/phone_number/index.ts +++ /dev/null @@ -1,12 +0,0 @@ -/* - * This file is automatically generated. - * Run 'pnpm run generate:locales' to update. - */ -import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; - -const phone_number: PhoneNumberDefinition = { - formats, -}; - -export default phone_number; diff --git a/src/locales/az/phone_number/human.ts b/src/locales/az/phone_number/format/human.ts similarity index 100% rename from src/locales/az/phone_number/human.ts rename to src/locales/az/phone_number/format/human.ts diff --git a/src/locales/az/phone_number/format/index.ts b/src/locales/az/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/az/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/az/phone_number/national.ts b/src/locales/az/phone_number/format/national.ts similarity index 100% rename from src/locales/az/phone_number/national.ts rename to src/locales/az/phone_number/format/national.ts diff --git a/src/locales/az/phone_number/raw.ts b/src/locales/az/phone_number/format/raw.ts similarity index 100% rename from src/locales/az/phone_number/raw.ts rename to src/locales/az/phone_number/format/raw.ts diff --git a/src/locales/az/phone_number/index.ts b/src/locales/az/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/az/phone_number/index.ts +++ b/src/locales/az/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/cs_CZ/phone_number/human.ts b/src/locales/cs_CZ/phone_number/format/human.ts similarity index 100% rename from src/locales/cs_CZ/phone_number/human.ts rename to src/locales/cs_CZ/phone_number/format/human.ts diff --git a/src/locales/cs_CZ/phone_number/format/index.ts b/src/locales/cs_CZ/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/cs_CZ/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/cs_CZ/phone_number/national.ts b/src/locales/cs_CZ/phone_number/format/national.ts similarity index 100% rename from src/locales/cs_CZ/phone_number/national.ts rename to src/locales/cs_CZ/phone_number/format/national.ts diff --git a/src/locales/cs_CZ/phone_number/raw.ts b/src/locales/cs_CZ/phone_number/format/raw.ts similarity index 100% rename from src/locales/cs_CZ/phone_number/raw.ts rename to src/locales/cs_CZ/phone_number/format/raw.ts diff --git a/src/locales/cs_CZ/phone_number/index.ts b/src/locales/cs_CZ/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/cs_CZ/phone_number/index.ts +++ b/src/locales/cs_CZ/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/da/phone_number/human.ts b/src/locales/da/phone_number/format/human.ts similarity index 100% rename from src/locales/da/phone_number/human.ts rename to src/locales/da/phone_number/format/human.ts diff --git a/src/locales/da/phone_number/format/index.ts b/src/locales/da/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/da/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/da/phone_number/national.ts b/src/locales/da/phone_number/format/national.ts similarity index 100% rename from src/locales/da/phone_number/national.ts rename to src/locales/da/phone_number/format/national.ts diff --git a/src/locales/da/phone_number/raw.ts b/src/locales/da/phone_number/format/raw.ts similarity index 100% rename from src/locales/da/phone_number/raw.ts rename to src/locales/da/phone_number/format/raw.ts diff --git a/src/locales/da/phone_number/index.ts b/src/locales/da/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/da/phone_number/index.ts +++ b/src/locales/da/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/de/phone_number/human.ts b/src/locales/de/phone_number/format/human.ts similarity index 100% rename from src/locales/de/phone_number/human.ts rename to src/locales/de/phone_number/format/human.ts diff --git a/src/locales/de/phone_number/format/index.ts b/src/locales/de/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/de/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/de/phone_number/national.ts b/src/locales/de/phone_number/format/national.ts similarity index 100% rename from src/locales/de/phone_number/national.ts rename to src/locales/de/phone_number/format/national.ts diff --git a/src/locales/de/phone_number/raw.ts b/src/locales/de/phone_number/format/raw.ts similarity index 100% rename from src/locales/de/phone_number/raw.ts rename to src/locales/de/phone_number/format/raw.ts diff --git a/src/locales/de/phone_number/index.ts b/src/locales/de/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/de/phone_number/index.ts +++ b/src/locales/de/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/de_AT/phone_number/human.ts b/src/locales/de_AT/phone_number/format/human.ts similarity index 100% rename from src/locales/de_AT/phone_number/human.ts rename to src/locales/de_AT/phone_number/format/human.ts diff --git a/src/locales/de_AT/phone_number/format/index.ts b/src/locales/de_AT/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/de_AT/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/de_AT/phone_number/national.ts b/src/locales/de_AT/phone_number/format/national.ts similarity index 100% rename from src/locales/de_AT/phone_number/national.ts rename to src/locales/de_AT/phone_number/format/national.ts diff --git a/src/locales/de_AT/phone_number/raw.ts b/src/locales/de_AT/phone_number/format/raw.ts similarity index 100% rename from src/locales/de_AT/phone_number/raw.ts rename to src/locales/de_AT/phone_number/format/raw.ts diff --git a/src/locales/de_AT/phone_number/index.ts b/src/locales/de_AT/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/de_AT/phone_number/index.ts +++ b/src/locales/de_AT/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/de_CH/phone_number/human.ts b/src/locales/de_CH/phone_number/format/human.ts similarity index 100% rename from src/locales/de_CH/phone_number/human.ts rename to src/locales/de_CH/phone_number/format/human.ts diff --git a/src/locales/de_CH/phone_number/format/index.ts b/src/locales/de_CH/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/de_CH/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/de_CH/phone_number/national.ts b/src/locales/de_CH/phone_number/format/national.ts similarity index 100% rename from src/locales/de_CH/phone_number/national.ts rename to src/locales/de_CH/phone_number/format/national.ts diff --git a/src/locales/de_CH/phone_number/raw.ts b/src/locales/de_CH/phone_number/format/raw.ts similarity index 100% rename from src/locales/de_CH/phone_number/raw.ts rename to src/locales/de_CH/phone_number/format/raw.ts diff --git a/src/locales/de_CH/phone_number/index.ts b/src/locales/de_CH/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/de_CH/phone_number/index.ts +++ b/src/locales/de_CH/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/dv/phone_number/human.ts b/src/locales/dv/phone_number/format/human.ts similarity index 100% rename from src/locales/dv/phone_number/human.ts rename to src/locales/dv/phone_number/format/human.ts diff --git a/src/locales/dv/phone_number/format/index.ts b/src/locales/dv/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/dv/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/dv/phone_number/national.ts b/src/locales/dv/phone_number/format/national.ts similarity index 100% rename from src/locales/dv/phone_number/national.ts rename to src/locales/dv/phone_number/format/national.ts diff --git a/src/locales/dv/phone_number/raw.ts b/src/locales/dv/phone_number/format/raw.ts similarity index 100% rename from src/locales/dv/phone_number/raw.ts rename to src/locales/dv/phone_number/format/raw.ts diff --git a/src/locales/dv/phone_number/index.ts b/src/locales/dv/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/dv/phone_number/index.ts +++ b/src/locales/dv/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/el/phone_number/human.ts b/src/locales/el/phone_number/format/human.ts similarity index 100% rename from src/locales/el/phone_number/human.ts rename to src/locales/el/phone_number/format/human.ts diff --git a/src/locales/el/phone_number/format/index.ts b/src/locales/el/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/el/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/el/phone_number/national.ts b/src/locales/el/phone_number/format/national.ts similarity index 100% rename from src/locales/el/phone_number/national.ts rename to src/locales/el/phone_number/format/national.ts diff --git a/src/locales/el/phone_number/raw.ts b/src/locales/el/phone_number/format/raw.ts similarity index 100% rename from src/locales/el/phone_number/raw.ts rename to src/locales/el/phone_number/format/raw.ts diff --git a/src/locales/el/phone_number/index.ts b/src/locales/el/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/el/phone_number/index.ts +++ b/src/locales/el/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/en/phone_number/human.ts b/src/locales/en/phone_number/format/human.ts similarity index 100% rename from src/locales/en/phone_number/human.ts rename to src/locales/en/phone_number/format/human.ts diff --git a/src/locales/en/phone_number/format/index.ts b/src/locales/en/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/en/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/en/phone_number/national.ts b/src/locales/en/phone_number/format/national.ts similarity index 100% rename from src/locales/en/phone_number/national.ts rename to src/locales/en/phone_number/format/national.ts diff --git a/src/locales/en/phone_number/raw.ts b/src/locales/en/phone_number/format/raw.ts similarity index 100% rename from src/locales/en/phone_number/raw.ts rename to src/locales/en/phone_number/format/raw.ts diff --git a/src/locales/en/phone_number/index.ts b/src/locales/en/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/en/phone_number/index.ts +++ b/src/locales/en/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/en_AU/phone_number/human.ts b/src/locales/en_AU/phone_number/format/human.ts similarity index 100% rename from src/locales/en_AU/phone_number/human.ts rename to src/locales/en_AU/phone_number/format/human.ts diff --git a/src/locales/en_AU/phone_number/format/index.ts b/src/locales/en_AU/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/en_AU/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/en_AU/phone_number/national.ts b/src/locales/en_AU/phone_number/format/national.ts similarity index 100% rename from src/locales/en_AU/phone_number/national.ts rename to src/locales/en_AU/phone_number/format/national.ts diff --git a/src/locales/en_AU/phone_number/raw.ts b/src/locales/en_AU/phone_number/format/raw.ts similarity index 100% rename from src/locales/en_AU/phone_number/raw.ts rename to src/locales/en_AU/phone_number/format/raw.ts diff --git a/src/locales/en_AU/phone_number/index.ts b/src/locales/en_AU/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/en_AU/phone_number/index.ts +++ b/src/locales/en_AU/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/en_AU_ocker/phone_number/human.ts b/src/locales/en_AU_ocker/phone_number/format/human.ts similarity index 100% rename from src/locales/en_AU_ocker/phone_number/human.ts rename to src/locales/en_AU_ocker/phone_number/format/human.ts diff --git a/src/locales/en_AU_ocker/phone_number/format/index.ts b/src/locales/en_AU_ocker/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/en_AU_ocker/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/en_AU_ocker/phone_number/national.ts b/src/locales/en_AU_ocker/phone_number/format/national.ts similarity index 100% rename from src/locales/en_AU_ocker/phone_number/national.ts rename to src/locales/en_AU_ocker/phone_number/format/national.ts diff --git a/src/locales/en_AU_ocker/phone_number/raw.ts b/src/locales/en_AU_ocker/phone_number/format/raw.ts similarity index 100% rename from src/locales/en_AU_ocker/phone_number/raw.ts rename to src/locales/en_AU_ocker/phone_number/format/raw.ts diff --git a/src/locales/en_AU_ocker/phone_number/index.ts b/src/locales/en_AU_ocker/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/en_AU_ocker/phone_number/index.ts +++ b/src/locales/en_AU_ocker/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/en_CA/phone_number/human.ts b/src/locales/en_CA/phone_number/format/human.ts similarity index 100% rename from src/locales/en_CA/phone_number/human.ts rename to src/locales/en_CA/phone_number/format/human.ts diff --git a/src/locales/en_CA/phone_number/format/index.ts b/src/locales/en_CA/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/en_CA/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/en_CA/phone_number/national.ts b/src/locales/en_CA/phone_number/format/national.ts similarity index 100% rename from src/locales/en_CA/phone_number/national.ts rename to src/locales/en_CA/phone_number/format/national.ts diff --git a/src/locales/en_CA/phone_number/raw.ts b/src/locales/en_CA/phone_number/format/raw.ts similarity index 100% rename from src/locales/en_CA/phone_number/raw.ts rename to src/locales/en_CA/phone_number/format/raw.ts diff --git a/src/locales/en_CA/phone_number/index.ts b/src/locales/en_CA/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/en_CA/phone_number/index.ts +++ b/src/locales/en_CA/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/en_GB/phone_number/human.ts b/src/locales/en_GB/phone_number/format/human.ts similarity index 100% rename from src/locales/en_GB/phone_number/human.ts rename to src/locales/en_GB/phone_number/format/human.ts diff --git a/src/locales/en_GB/phone_number/format/index.ts b/src/locales/en_GB/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/en_GB/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/en_GB/phone_number/national.ts b/src/locales/en_GB/phone_number/format/national.ts similarity index 100% rename from src/locales/en_GB/phone_number/national.ts rename to src/locales/en_GB/phone_number/format/national.ts diff --git a/src/locales/en_GB/phone_number/raw.ts b/src/locales/en_GB/phone_number/format/raw.ts similarity index 100% rename from src/locales/en_GB/phone_number/raw.ts rename to src/locales/en_GB/phone_number/format/raw.ts diff --git a/src/locales/en_GB/phone_number/index.ts b/src/locales/en_GB/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/en_GB/phone_number/index.ts +++ b/src/locales/en_GB/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/en_GH/phone_number/human.ts b/src/locales/en_GH/phone_number/format/human.ts similarity index 100% rename from src/locales/en_GH/phone_number/human.ts rename to src/locales/en_GH/phone_number/format/human.ts diff --git a/src/locales/en_GH/phone_number/format/index.ts b/src/locales/en_GH/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/en_GH/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/en_GH/phone_number/national.ts b/src/locales/en_GH/phone_number/format/national.ts similarity index 100% rename from src/locales/en_GH/phone_number/national.ts rename to src/locales/en_GH/phone_number/format/national.ts diff --git a/src/locales/en_GH/phone_number/raw.ts b/src/locales/en_GH/phone_number/format/raw.ts similarity index 100% rename from src/locales/en_GH/phone_number/raw.ts rename to src/locales/en_GH/phone_number/format/raw.ts diff --git a/src/locales/en_GH/phone_number/index.ts b/src/locales/en_GH/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/en_GH/phone_number/index.ts +++ b/src/locales/en_GH/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/en_HK/phone_number/human.ts b/src/locales/en_HK/phone_number/format/human.ts similarity index 100% rename from src/locales/en_HK/phone_number/human.ts rename to src/locales/en_HK/phone_number/format/human.ts diff --git a/src/locales/en_HK/phone_number/format/index.ts b/src/locales/en_HK/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/en_HK/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/en_HK/phone_number/national.ts b/src/locales/en_HK/phone_number/format/national.ts similarity index 100% rename from src/locales/en_HK/phone_number/national.ts rename to src/locales/en_HK/phone_number/format/national.ts diff --git a/src/locales/en_HK/phone_number/raw.ts b/src/locales/en_HK/phone_number/format/raw.ts similarity index 100% rename from src/locales/en_HK/phone_number/raw.ts rename to src/locales/en_HK/phone_number/format/raw.ts diff --git a/src/locales/en_HK/phone_number/index.ts b/src/locales/en_HK/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/en_HK/phone_number/index.ts +++ b/src/locales/en_HK/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/en_IE/phone_number/human.ts b/src/locales/en_IE/phone_number/format/human.ts similarity index 100% rename from src/locales/en_IE/phone_number/human.ts rename to src/locales/en_IE/phone_number/format/human.ts diff --git a/src/locales/en_IE/phone_number/format/index.ts b/src/locales/en_IE/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/en_IE/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/en_IE/phone_number/national.ts b/src/locales/en_IE/phone_number/format/national.ts similarity index 100% rename from src/locales/en_IE/phone_number/national.ts rename to src/locales/en_IE/phone_number/format/national.ts diff --git a/src/locales/en_IE/phone_number/raw.ts b/src/locales/en_IE/phone_number/format/raw.ts similarity index 100% rename from src/locales/en_IE/phone_number/raw.ts rename to src/locales/en_IE/phone_number/format/raw.ts diff --git a/src/locales/en_IE/phone_number/index.ts b/src/locales/en_IE/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/en_IE/phone_number/index.ts +++ b/src/locales/en_IE/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/en_IN/phone_number/human.ts b/src/locales/en_IN/phone_number/format/human.ts similarity index 100% rename from src/locales/en_IN/phone_number/human.ts rename to src/locales/en_IN/phone_number/format/human.ts diff --git a/src/locales/en_IN/phone_number/format/index.ts b/src/locales/en_IN/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/en_IN/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/en_IN/phone_number/national.ts b/src/locales/en_IN/phone_number/format/national.ts similarity index 100% rename from src/locales/en_IN/phone_number/national.ts rename to src/locales/en_IN/phone_number/format/national.ts diff --git a/src/locales/en_IN/phone_number/raw.ts b/src/locales/en_IN/phone_number/format/raw.ts similarity index 100% rename from src/locales/en_IN/phone_number/raw.ts rename to src/locales/en_IN/phone_number/format/raw.ts diff --git a/src/locales/en_IN/phone_number/index.ts b/src/locales/en_IN/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/en_IN/phone_number/index.ts +++ b/src/locales/en_IN/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/en_NG/phone_number/human.ts b/src/locales/en_NG/phone_number/format/human.ts similarity index 100% rename from src/locales/en_NG/phone_number/human.ts rename to src/locales/en_NG/phone_number/format/human.ts diff --git a/src/locales/en_NG/phone_number/format/index.ts b/src/locales/en_NG/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/en_NG/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/en_NG/phone_number/national.ts b/src/locales/en_NG/phone_number/format/national.ts similarity index 100% rename from src/locales/en_NG/phone_number/national.ts rename to src/locales/en_NG/phone_number/format/national.ts diff --git a/src/locales/en_NG/phone_number/raw.ts b/src/locales/en_NG/phone_number/format/raw.ts similarity index 100% rename from src/locales/en_NG/phone_number/raw.ts rename to src/locales/en_NG/phone_number/format/raw.ts diff --git a/src/locales/en_NG/phone_number/index.ts b/src/locales/en_NG/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/en_NG/phone_number/index.ts +++ b/src/locales/en_NG/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/en_ZA/phone_number/human.ts b/src/locales/en_ZA/phone_number/format/human.ts similarity index 100% rename from src/locales/en_ZA/phone_number/human.ts rename to src/locales/en_ZA/phone_number/format/human.ts diff --git a/src/locales/en_ZA/phone_number/format/index.ts b/src/locales/en_ZA/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/en_ZA/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/en_ZA/phone_number/national.ts b/src/locales/en_ZA/phone_number/format/national.ts similarity index 100% rename from src/locales/en_ZA/phone_number/national.ts rename to src/locales/en_ZA/phone_number/format/national.ts diff --git a/src/locales/en_ZA/phone_number/raw.ts b/src/locales/en_ZA/phone_number/format/raw.ts similarity index 100% rename from src/locales/en_ZA/phone_number/raw.ts rename to src/locales/en_ZA/phone_number/format/raw.ts diff --git a/src/locales/en_ZA/phone_number/index.ts b/src/locales/en_ZA/phone_number/index.ts index a48bc17b3be..a383789bf0d 100644 --- a/src/locales/en_ZA/phone_number/index.ts +++ b/src/locales/en_ZA/phone_number/index.ts @@ -5,16 +5,12 @@ import type { PhoneNumberDefinition } from '../../..'; import area_code from './area_code'; import exchange_code from './exchange_code'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { area_code, exchange_code, - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/es/phone_number/human.ts b/src/locales/es/phone_number/format/human.ts similarity index 100% rename from src/locales/es/phone_number/human.ts rename to src/locales/es/phone_number/format/human.ts diff --git a/src/locales/es/phone_number/format/index.ts b/src/locales/es/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/es/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/es/phone_number/national.ts b/src/locales/es/phone_number/format/national.ts similarity index 100% rename from src/locales/es/phone_number/national.ts rename to src/locales/es/phone_number/format/national.ts diff --git a/src/locales/es/phone_number/raw.ts b/src/locales/es/phone_number/format/raw.ts similarity index 100% rename from src/locales/es/phone_number/raw.ts rename to src/locales/es/phone_number/format/raw.ts diff --git a/src/locales/es/phone_number/index.ts b/src/locales/es/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/es/phone_number/index.ts +++ b/src/locales/es/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/es_MX/phone_number/human.ts b/src/locales/es_MX/phone_number/format/human.ts similarity index 100% rename from src/locales/es_MX/phone_number/human.ts rename to src/locales/es_MX/phone_number/format/human.ts diff --git a/src/locales/es_MX/phone_number/format/index.ts b/src/locales/es_MX/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/es_MX/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/es_MX/phone_number/national.ts b/src/locales/es_MX/phone_number/format/national.ts similarity index 100% rename from src/locales/es_MX/phone_number/national.ts rename to src/locales/es_MX/phone_number/format/national.ts diff --git a/src/locales/es_MX/phone_number/raw.ts b/src/locales/es_MX/phone_number/format/raw.ts similarity index 100% rename from src/locales/es_MX/phone_number/raw.ts rename to src/locales/es_MX/phone_number/format/raw.ts diff --git a/src/locales/es_MX/phone_number/index.ts b/src/locales/es_MX/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/es_MX/phone_number/index.ts +++ b/src/locales/es_MX/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/fa/phone_number/human.ts b/src/locales/fa/phone_number/format/human.ts similarity index 100% rename from src/locales/fa/phone_number/human.ts rename to 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 00000000000..b0582322396 --- /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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/fa/phone_number/national.ts b/src/locales/fa/phone_number/format/national.ts similarity index 100% rename from src/locales/fa/phone_number/national.ts rename to src/locales/fa/phone_number/format/national.ts diff --git a/src/locales/fa/phone_number/raw.ts b/src/locales/fa/phone_number/format/raw.ts similarity index 100% rename from src/locales/fa/phone_number/raw.ts rename to src/locales/fa/phone_number/format/raw.ts diff --git a/src/locales/fa/phone_number/index.ts b/src/locales/fa/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/fa/phone_number/index.ts +++ b/src/locales/fa/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/fr/phone_number/human.ts b/src/locales/fr/phone_number/format/human.ts similarity index 100% rename from src/locales/fr/phone_number/human.ts rename to src/locales/fr/phone_number/format/human.ts diff --git a/src/locales/fr/phone_number/format/index.ts b/src/locales/fr/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/fr/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/fr/phone_number/national.ts b/src/locales/fr/phone_number/format/national.ts similarity index 100% rename from src/locales/fr/phone_number/national.ts rename to src/locales/fr/phone_number/format/national.ts diff --git a/src/locales/fr/phone_number/raw.ts b/src/locales/fr/phone_number/format/raw.ts similarity index 100% rename from src/locales/fr/phone_number/raw.ts rename to src/locales/fr/phone_number/format/raw.ts diff --git a/src/locales/fr/phone_number/index.ts b/src/locales/fr/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/fr/phone_number/index.ts +++ b/src/locales/fr/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/fr_BE/phone_number/human.ts b/src/locales/fr_BE/phone_number/format/human.ts similarity index 100% rename from src/locales/fr_BE/phone_number/human.ts rename to src/locales/fr_BE/phone_number/format/human.ts diff --git a/src/locales/fr_BE/phone_number/format/index.ts b/src/locales/fr_BE/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/fr_BE/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/fr_BE/phone_number/national.ts b/src/locales/fr_BE/phone_number/format/national.ts similarity index 100% rename from src/locales/fr_BE/phone_number/national.ts rename to src/locales/fr_BE/phone_number/format/national.ts diff --git a/src/locales/fr_BE/phone_number/raw.ts b/src/locales/fr_BE/phone_number/format/raw.ts similarity index 100% rename from src/locales/fr_BE/phone_number/raw.ts rename to src/locales/fr_BE/phone_number/format/raw.ts diff --git a/src/locales/fr_BE/phone_number/index.ts b/src/locales/fr_BE/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/fr_BE/phone_number/index.ts +++ b/src/locales/fr_BE/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/fr_CA/phone_number/human.ts b/src/locales/fr_CA/phone_number/format/human.ts similarity index 100% rename from src/locales/fr_CA/phone_number/human.ts rename to src/locales/fr_CA/phone_number/format/human.ts diff --git a/src/locales/fr_CA/phone_number/format/index.ts b/src/locales/fr_CA/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/fr_CA/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/fr_CA/phone_number/national.ts b/src/locales/fr_CA/phone_number/format/national.ts similarity index 100% rename from src/locales/fr_CA/phone_number/national.ts rename to src/locales/fr_CA/phone_number/format/national.ts diff --git a/src/locales/fr_CA/phone_number/raw.ts b/src/locales/fr_CA/phone_number/format/raw.ts similarity index 100% rename from src/locales/fr_CA/phone_number/raw.ts rename to src/locales/fr_CA/phone_number/format/raw.ts diff --git a/src/locales/fr_CA/phone_number/index.ts b/src/locales/fr_CA/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/fr_CA/phone_number/index.ts +++ b/src/locales/fr_CA/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/fr_CH/phone_number/human.ts b/src/locales/fr_CH/phone_number/format/human.ts similarity index 100% rename from src/locales/fr_CH/phone_number/human.ts rename to src/locales/fr_CH/phone_number/format/human.ts diff --git a/src/locales/fr_CH/phone_number/format/index.ts b/src/locales/fr_CH/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/fr_CH/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/fr_CH/phone_number/national.ts b/src/locales/fr_CH/phone_number/format/national.ts similarity index 100% rename from src/locales/fr_CH/phone_number/national.ts rename to src/locales/fr_CH/phone_number/format/national.ts diff --git a/src/locales/fr_CH/phone_number/raw.ts b/src/locales/fr_CH/phone_number/format/raw.ts similarity index 100% rename from src/locales/fr_CH/phone_number/raw.ts rename to src/locales/fr_CH/phone_number/format/raw.ts diff --git a/src/locales/fr_CH/phone_number/index.ts b/src/locales/fr_CH/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/fr_CH/phone_number/index.ts +++ b/src/locales/fr_CH/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/fr_LU/phone_number/human.ts b/src/locales/fr_LU/phone_number/format/human.ts similarity index 100% rename from src/locales/fr_LU/phone_number/human.ts rename to src/locales/fr_LU/phone_number/format/human.ts diff --git a/src/locales/fr_LU/phone_number/format/index.ts b/src/locales/fr_LU/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/fr_LU/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/fr_LU/phone_number/national.ts b/src/locales/fr_LU/phone_number/format/national.ts similarity index 100% rename from src/locales/fr_LU/phone_number/national.ts rename to src/locales/fr_LU/phone_number/format/national.ts diff --git a/src/locales/fr_LU/phone_number/raw.ts b/src/locales/fr_LU/phone_number/format/raw.ts similarity index 100% rename from src/locales/fr_LU/phone_number/raw.ts rename to src/locales/fr_LU/phone_number/format/raw.ts diff --git a/src/locales/fr_LU/phone_number/index.ts b/src/locales/fr_LU/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/fr_LU/phone_number/index.ts +++ b/src/locales/fr_LU/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/he/phone_number/human.ts b/src/locales/he/phone_number/format/human.ts similarity index 100% rename from src/locales/he/phone_number/human.ts rename to src/locales/he/phone_number/format/human.ts diff --git a/src/locales/he/phone_number/format/index.ts b/src/locales/he/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/he/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/he/phone_number/national.ts b/src/locales/he/phone_number/format/national.ts similarity index 100% rename from src/locales/he/phone_number/national.ts rename to src/locales/he/phone_number/format/national.ts diff --git a/src/locales/he/phone_number/raw.ts b/src/locales/he/phone_number/format/raw.ts similarity index 100% rename from src/locales/he/phone_number/raw.ts rename to src/locales/he/phone_number/format/raw.ts diff --git a/src/locales/he/phone_number/index.ts b/src/locales/he/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/he/phone_number/index.ts +++ b/src/locales/he/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/hr/phone_number/human.ts b/src/locales/hr/phone_number/format/human.ts similarity index 100% rename from src/locales/hr/phone_number/human.ts rename to src/locales/hr/phone_number/format/human.ts diff --git a/src/locales/hr/phone_number/format/index.ts b/src/locales/hr/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/hr/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/hr/phone_number/national.ts b/src/locales/hr/phone_number/format/national.ts similarity index 100% rename from src/locales/hr/phone_number/national.ts rename to src/locales/hr/phone_number/format/national.ts diff --git a/src/locales/hr/phone_number/raw.ts b/src/locales/hr/phone_number/format/raw.ts similarity index 100% rename from src/locales/hr/phone_number/raw.ts rename to src/locales/hr/phone_number/format/raw.ts diff --git a/src/locales/hr/phone_number/index.ts b/src/locales/hr/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/hr/phone_number/index.ts +++ b/src/locales/hr/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/hu/phone_number/human.ts b/src/locales/hu/phone_number/format/human.ts similarity index 100% rename from src/locales/hu/phone_number/human.ts rename to 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 00000000000..b0582322396 --- /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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/hu/phone_number/national.ts b/src/locales/hu/phone_number/format/national.ts similarity index 100% rename from src/locales/hu/phone_number/national.ts rename to src/locales/hu/phone_number/format/national.ts diff --git a/src/locales/hu/phone_number/raw.ts b/src/locales/hu/phone_number/format/raw.ts similarity index 100% rename from src/locales/hu/phone_number/raw.ts rename to src/locales/hu/phone_number/format/raw.ts diff --git a/src/locales/hu/phone_number/index.ts b/src/locales/hu/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/hu/phone_number/index.ts +++ b/src/locales/hu/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/hy/phone_number/human.ts b/src/locales/hy/phone_number/format/human.ts similarity index 100% rename from src/locales/hy/phone_number/human.ts rename to src/locales/hy/phone_number/format/human.ts diff --git a/src/locales/hy/phone_number/format/index.ts b/src/locales/hy/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/hy/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/hy/phone_number/national.ts b/src/locales/hy/phone_number/format/national.ts similarity index 100% rename from src/locales/hy/phone_number/national.ts rename to src/locales/hy/phone_number/format/national.ts diff --git a/src/locales/hy/phone_number/raw.ts b/src/locales/hy/phone_number/format/raw.ts similarity index 100% rename from src/locales/hy/phone_number/raw.ts rename to src/locales/hy/phone_number/format/raw.ts diff --git a/src/locales/hy/phone_number/index.ts b/src/locales/hy/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/hy/phone_number/index.ts +++ b/src/locales/hy/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/id_ID/phone_number/human.ts b/src/locales/id_ID/phone_number/format/human.ts similarity index 100% rename from src/locales/id_ID/phone_number/human.ts rename to src/locales/id_ID/phone_number/format/human.ts diff --git a/src/locales/id_ID/phone_number/format/index.ts b/src/locales/id_ID/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/id_ID/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/id_ID/phone_number/national.ts b/src/locales/id_ID/phone_number/format/national.ts similarity index 100% rename from src/locales/id_ID/phone_number/national.ts rename to src/locales/id_ID/phone_number/format/national.ts diff --git a/src/locales/id_ID/phone_number/raw.ts b/src/locales/id_ID/phone_number/format/raw.ts similarity index 100% rename from src/locales/id_ID/phone_number/raw.ts rename to src/locales/id_ID/phone_number/format/raw.ts diff --git a/src/locales/id_ID/phone_number/index.ts b/src/locales/id_ID/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/id_ID/phone_number/index.ts +++ b/src/locales/id_ID/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/it/phone_number/human.ts b/src/locales/it/phone_number/format/human.ts similarity index 100% rename from src/locales/it/phone_number/human.ts rename to 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 00000000000..b0582322396 --- /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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/it/phone_number/national.ts b/src/locales/it/phone_number/format/national.ts similarity index 100% rename from src/locales/it/phone_number/national.ts rename to src/locales/it/phone_number/format/national.ts diff --git a/src/locales/it/phone_number/raw.ts b/src/locales/it/phone_number/format/raw.ts similarity index 100% rename from src/locales/it/phone_number/raw.ts rename to src/locales/it/phone_number/format/raw.ts diff --git a/src/locales/it/phone_number/index.ts b/src/locales/it/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/it/phone_number/index.ts +++ b/src/locales/it/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/ja/phone_number/human.ts b/src/locales/ja/phone_number/format/human.ts similarity index 100% rename from src/locales/ja/phone_number/human.ts rename to src/locales/ja/phone_number/format/human.ts diff --git a/src/locales/ja/phone_number/format/index.ts b/src/locales/ja/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/ja/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/ja/phone_number/national.ts b/src/locales/ja/phone_number/format/national.ts similarity index 100% rename from src/locales/ja/phone_number/national.ts rename to src/locales/ja/phone_number/format/national.ts diff --git a/src/locales/ja/phone_number/raw.ts b/src/locales/ja/phone_number/format/raw.ts similarity index 100% rename from src/locales/ja/phone_number/raw.ts rename to src/locales/ja/phone_number/format/raw.ts diff --git a/src/locales/ja/phone_number/index.ts b/src/locales/ja/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/ja/phone_number/index.ts +++ b/src/locales/ja/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/ka_GE/phone_number/human.ts b/src/locales/ka_GE/phone_number/format/human.ts similarity index 100% rename from src/locales/ka_GE/phone_number/human.ts rename to src/locales/ka_GE/phone_number/format/human.ts diff --git a/src/locales/ka_GE/phone_number/format/index.ts b/src/locales/ka_GE/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/ka_GE/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/ka_GE/phone_number/national.ts b/src/locales/ka_GE/phone_number/format/national.ts similarity index 100% rename from src/locales/ka_GE/phone_number/national.ts rename to src/locales/ka_GE/phone_number/format/national.ts diff --git a/src/locales/ka_GE/phone_number/raw.ts b/src/locales/ka_GE/phone_number/format/raw.ts similarity index 100% rename from src/locales/ka_GE/phone_number/raw.ts rename to src/locales/ka_GE/phone_number/format/raw.ts diff --git a/src/locales/ka_GE/phone_number/index.ts b/src/locales/ka_GE/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/ka_GE/phone_number/index.ts +++ b/src/locales/ka_GE/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/ko/phone_number/human.ts b/src/locales/ko/phone_number/format/human.ts similarity index 100% rename from src/locales/ko/phone_number/human.ts rename to src/locales/ko/phone_number/format/human.ts diff --git a/src/locales/ko/phone_number/format/index.ts b/src/locales/ko/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/ko/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/ko/phone_number/national.ts b/src/locales/ko/phone_number/format/national.ts similarity index 100% rename from src/locales/ko/phone_number/national.ts rename to src/locales/ko/phone_number/format/national.ts diff --git a/src/locales/ko/phone_number/raw.ts b/src/locales/ko/phone_number/format/raw.ts similarity index 100% rename from src/locales/ko/phone_number/raw.ts rename to src/locales/ko/phone_number/format/raw.ts diff --git a/src/locales/ko/phone_number/index.ts b/src/locales/ko/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/ko/phone_number/index.ts +++ b/src/locales/ko/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/lv/phone_number/human.ts b/src/locales/lv/phone_number/format/human.ts similarity index 100% rename from src/locales/lv/phone_number/human.ts rename to src/locales/lv/phone_number/format/human.ts diff --git a/src/locales/lv/phone_number/format/index.ts b/src/locales/lv/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/lv/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/lv/phone_number/national.ts b/src/locales/lv/phone_number/format/national.ts similarity index 100% rename from src/locales/lv/phone_number/national.ts rename to src/locales/lv/phone_number/format/national.ts diff --git a/src/locales/lv/phone_number/raw.ts b/src/locales/lv/phone_number/format/raw.ts similarity index 100% rename from src/locales/lv/phone_number/raw.ts rename to src/locales/lv/phone_number/format/raw.ts diff --git a/src/locales/lv/phone_number/index.ts b/src/locales/lv/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/lv/phone_number/index.ts +++ b/src/locales/lv/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/mk/phone_number/human.ts b/src/locales/mk/phone_number/format/human.ts similarity index 100% rename from src/locales/mk/phone_number/human.ts rename to src/locales/mk/phone_number/format/human.ts diff --git a/src/locales/mk/phone_number/format/index.ts b/src/locales/mk/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/mk/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/mk/phone_number/national.ts b/src/locales/mk/phone_number/format/national.ts similarity index 100% rename from src/locales/mk/phone_number/national.ts rename to src/locales/mk/phone_number/format/national.ts diff --git a/src/locales/mk/phone_number/raw.ts b/src/locales/mk/phone_number/format/raw.ts similarity index 100% rename from src/locales/mk/phone_number/raw.ts rename to src/locales/mk/phone_number/format/raw.ts diff --git a/src/locales/mk/phone_number/index.ts b/src/locales/mk/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/mk/phone_number/index.ts +++ b/src/locales/mk/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/nb_NO/phone_number/human.ts b/src/locales/nb_NO/phone_number/format/human.ts similarity index 100% rename from src/locales/nb_NO/phone_number/human.ts rename to src/locales/nb_NO/phone_number/format/human.ts diff --git a/src/locales/nb_NO/phone_number/format/index.ts b/src/locales/nb_NO/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/nb_NO/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/nb_NO/phone_number/national.ts b/src/locales/nb_NO/phone_number/format/national.ts similarity index 100% rename from src/locales/nb_NO/phone_number/national.ts rename to src/locales/nb_NO/phone_number/format/national.ts diff --git a/src/locales/nb_NO/phone_number/raw.ts b/src/locales/nb_NO/phone_number/format/raw.ts similarity index 100% rename from src/locales/nb_NO/phone_number/raw.ts rename to src/locales/nb_NO/phone_number/format/raw.ts diff --git a/src/locales/nb_NO/phone_number/index.ts b/src/locales/nb_NO/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/nb_NO/phone_number/index.ts +++ b/src/locales/nb_NO/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/ne/phone_number/human.ts b/src/locales/ne/phone_number/format/human.ts similarity index 100% rename from src/locales/ne/phone_number/human.ts rename to src/locales/ne/phone_number/format/human.ts diff --git a/src/locales/ne/phone_number/format/index.ts b/src/locales/ne/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/ne/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/ne/phone_number/national.ts b/src/locales/ne/phone_number/format/national.ts similarity index 100% rename from src/locales/ne/phone_number/national.ts rename to src/locales/ne/phone_number/format/national.ts diff --git a/src/locales/ne/phone_number/raw.ts b/src/locales/ne/phone_number/format/raw.ts similarity index 100% rename from src/locales/ne/phone_number/raw.ts rename to src/locales/ne/phone_number/format/raw.ts diff --git a/src/locales/ne/phone_number/index.ts b/src/locales/ne/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/ne/phone_number/index.ts +++ b/src/locales/ne/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/nl/phone_number/human.ts b/src/locales/nl/phone_number/format/human.ts similarity index 100% rename from src/locales/nl/phone_number/human.ts rename to src/locales/nl/phone_number/format/human.ts diff --git a/src/locales/nl/phone_number/format/index.ts b/src/locales/nl/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/nl/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/nl/phone_number/national.ts b/src/locales/nl/phone_number/format/national.ts similarity index 100% rename from src/locales/nl/phone_number/national.ts rename to src/locales/nl/phone_number/format/national.ts diff --git a/src/locales/nl/phone_number/raw.ts b/src/locales/nl/phone_number/format/raw.ts similarity index 100% rename from src/locales/nl/phone_number/raw.ts rename to src/locales/nl/phone_number/format/raw.ts diff --git a/src/locales/nl/phone_number/index.ts b/src/locales/nl/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/nl/phone_number/index.ts +++ b/src/locales/nl/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/nl_BE/phone_number/human.ts b/src/locales/nl_BE/phone_number/format/human.ts similarity index 100% rename from src/locales/nl_BE/phone_number/human.ts rename to src/locales/nl_BE/phone_number/format/human.ts diff --git a/src/locales/nl_BE/phone_number/format/index.ts b/src/locales/nl_BE/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/nl_BE/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/nl_BE/phone_number/national.ts b/src/locales/nl_BE/phone_number/format/national.ts similarity index 100% rename from src/locales/nl_BE/phone_number/national.ts rename to src/locales/nl_BE/phone_number/format/national.ts diff --git a/src/locales/nl_BE/phone_number/raw.ts b/src/locales/nl_BE/phone_number/format/raw.ts similarity index 100% rename from src/locales/nl_BE/phone_number/raw.ts rename to src/locales/nl_BE/phone_number/format/raw.ts diff --git a/src/locales/nl_BE/phone_number/index.ts b/src/locales/nl_BE/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/nl_BE/phone_number/index.ts +++ b/src/locales/nl_BE/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/pl/phone_number/human.ts b/src/locales/pl/phone_number/format/human.ts similarity index 100% rename from src/locales/pl/phone_number/human.ts rename to src/locales/pl/phone_number/format/human.ts diff --git a/src/locales/pl/phone_number/format/index.ts b/src/locales/pl/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/pl/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/pl/phone_number/national.ts b/src/locales/pl/phone_number/format/national.ts similarity index 100% rename from src/locales/pl/phone_number/national.ts rename to src/locales/pl/phone_number/format/national.ts diff --git a/src/locales/pl/phone_number/raw.ts b/src/locales/pl/phone_number/format/raw.ts similarity index 100% rename from src/locales/pl/phone_number/raw.ts rename to src/locales/pl/phone_number/format/raw.ts diff --git a/src/locales/pl/phone_number/index.ts b/src/locales/pl/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/pl/phone_number/index.ts +++ b/src/locales/pl/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/pt_BR/phone_number/human.ts b/src/locales/pt_BR/phone_number/format/human.ts similarity index 100% rename from src/locales/pt_BR/phone_number/human.ts rename to src/locales/pt_BR/phone_number/format/human.ts diff --git a/src/locales/pt_BR/phone_number/format/index.ts b/src/locales/pt_BR/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/pt_BR/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/pt_BR/phone_number/national.ts b/src/locales/pt_BR/phone_number/format/national.ts similarity index 100% rename from src/locales/pt_BR/phone_number/national.ts rename to src/locales/pt_BR/phone_number/format/national.ts diff --git a/src/locales/pt_BR/phone_number/raw.ts b/src/locales/pt_BR/phone_number/format/raw.ts similarity index 100% rename from src/locales/pt_BR/phone_number/raw.ts rename to src/locales/pt_BR/phone_number/format/raw.ts diff --git a/src/locales/pt_BR/phone_number/index.ts b/src/locales/pt_BR/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/pt_BR/phone_number/index.ts +++ b/src/locales/pt_BR/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/pt_PT/phone_number/human.ts b/src/locales/pt_PT/phone_number/format/human.ts similarity index 100% rename from src/locales/pt_PT/phone_number/human.ts rename to src/locales/pt_PT/phone_number/format/human.ts diff --git a/src/locales/pt_PT/phone_number/format/index.ts b/src/locales/pt_PT/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/pt_PT/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/pt_PT/phone_number/national.ts b/src/locales/pt_PT/phone_number/format/national.ts similarity index 100% rename from src/locales/pt_PT/phone_number/national.ts rename to src/locales/pt_PT/phone_number/format/national.ts diff --git a/src/locales/pt_PT/phone_number/raw.ts b/src/locales/pt_PT/phone_number/format/raw.ts similarity index 100% rename from src/locales/pt_PT/phone_number/raw.ts rename to src/locales/pt_PT/phone_number/format/raw.ts diff --git a/src/locales/pt_PT/phone_number/index.ts b/src/locales/pt_PT/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/pt_PT/phone_number/index.ts +++ b/src/locales/pt_PT/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/ro/phone_number/human.ts b/src/locales/ro/phone_number/format/human.ts similarity index 100% rename from src/locales/ro/phone_number/human.ts rename to src/locales/ro/phone_number/format/human.ts diff --git a/src/locales/ro/phone_number/format/index.ts b/src/locales/ro/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/ro/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/ro/phone_number/national.ts b/src/locales/ro/phone_number/format/national.ts similarity index 100% rename from src/locales/ro/phone_number/national.ts rename to src/locales/ro/phone_number/format/national.ts diff --git a/src/locales/ro/phone_number/raw.ts b/src/locales/ro/phone_number/format/raw.ts similarity index 100% rename from src/locales/ro/phone_number/raw.ts rename to src/locales/ro/phone_number/format/raw.ts diff --git a/src/locales/ro/phone_number/index.ts b/src/locales/ro/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/ro/phone_number/index.ts +++ b/src/locales/ro/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/ro_MD/phone_number/human.ts b/src/locales/ro_MD/phone_number/format/human.ts similarity index 100% rename from src/locales/ro_MD/phone_number/human.ts rename to src/locales/ro_MD/phone_number/format/human.ts diff --git a/src/locales/ro_MD/phone_number/format/index.ts b/src/locales/ro_MD/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/ro_MD/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/ro_MD/phone_number/national.ts b/src/locales/ro_MD/phone_number/format/national.ts similarity index 100% rename from src/locales/ro_MD/phone_number/national.ts rename to src/locales/ro_MD/phone_number/format/national.ts diff --git a/src/locales/ro_MD/phone_number/raw.ts b/src/locales/ro_MD/phone_number/format/raw.ts similarity index 100% rename from src/locales/ro_MD/phone_number/raw.ts rename to src/locales/ro_MD/phone_number/format/raw.ts diff --git a/src/locales/ro_MD/phone_number/index.ts b/src/locales/ro_MD/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/ro_MD/phone_number/index.ts +++ b/src/locales/ro_MD/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/ru/phone_number/human.ts b/src/locales/ru/phone_number/format/human.ts similarity index 100% rename from src/locales/ru/phone_number/human.ts rename to src/locales/ru/phone_number/format/human.ts diff --git a/src/locales/ru/phone_number/format/index.ts b/src/locales/ru/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/ru/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/ru/phone_number/national.ts b/src/locales/ru/phone_number/format/national.ts similarity index 100% rename from src/locales/ru/phone_number/national.ts rename to src/locales/ru/phone_number/format/national.ts diff --git a/src/locales/ru/phone_number/raw.ts b/src/locales/ru/phone_number/format/raw.ts similarity index 100% rename from src/locales/ru/phone_number/raw.ts rename to src/locales/ru/phone_number/format/raw.ts diff --git a/src/locales/ru/phone_number/index.ts b/src/locales/ru/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/ru/phone_number/index.ts +++ b/src/locales/ru/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/sk/phone_number/human.ts b/src/locales/sk/phone_number/format/human.ts similarity index 100% rename from src/locales/sk/phone_number/human.ts rename to src/locales/sk/phone_number/format/human.ts diff --git a/src/locales/sk/phone_number/format/index.ts b/src/locales/sk/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/sk/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/sk/phone_number/national.ts b/src/locales/sk/phone_number/format/national.ts similarity index 100% rename from src/locales/sk/phone_number/national.ts rename to src/locales/sk/phone_number/format/national.ts diff --git a/src/locales/sk/phone_number/raw.ts b/src/locales/sk/phone_number/format/raw.ts similarity index 100% rename from src/locales/sk/phone_number/raw.ts rename to src/locales/sk/phone_number/format/raw.ts diff --git a/src/locales/sk/phone_number/index.ts b/src/locales/sk/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/sk/phone_number/index.ts +++ b/src/locales/sk/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/sr_RS_latin/phone_number/human.ts b/src/locales/sr_RS_latin/phone_number/format/human.ts similarity index 100% rename from src/locales/sr_RS_latin/phone_number/human.ts rename to src/locales/sr_RS_latin/phone_number/format/human.ts diff --git a/src/locales/sr_RS_latin/phone_number/format/index.ts b/src/locales/sr_RS_latin/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/sr_RS_latin/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/sr_RS_latin/phone_number/national.ts b/src/locales/sr_RS_latin/phone_number/format/national.ts similarity index 100% rename from src/locales/sr_RS_latin/phone_number/national.ts rename to src/locales/sr_RS_latin/phone_number/format/national.ts diff --git a/src/locales/sr_RS_latin/phone_number/raw.ts b/src/locales/sr_RS_latin/phone_number/format/raw.ts similarity index 100% rename from src/locales/sr_RS_latin/phone_number/raw.ts rename to src/locales/sr_RS_latin/phone_number/format/raw.ts diff --git a/src/locales/sr_RS_latin/phone_number/index.ts b/src/locales/sr_RS_latin/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/sr_RS_latin/phone_number/index.ts +++ b/src/locales/sr_RS_latin/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/sv/phone_number/human.ts b/src/locales/sv/phone_number/format/human.ts similarity index 100% rename from src/locales/sv/phone_number/human.ts rename to src/locales/sv/phone_number/format/human.ts diff --git a/src/locales/sv/phone_number/format/index.ts b/src/locales/sv/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/sv/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/sv/phone_number/national.ts b/src/locales/sv/phone_number/format/national.ts similarity index 100% rename from src/locales/sv/phone_number/national.ts rename to src/locales/sv/phone_number/format/national.ts diff --git a/src/locales/sv/phone_number/raw.ts b/src/locales/sv/phone_number/format/raw.ts similarity index 100% rename from src/locales/sv/phone_number/raw.ts rename to src/locales/sv/phone_number/format/raw.ts diff --git a/src/locales/sv/phone_number/index.ts b/src/locales/sv/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/sv/phone_number/index.ts +++ b/src/locales/sv/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/th/phone_number/human.ts b/src/locales/th/phone_number/format/human.ts similarity index 100% rename from src/locales/th/phone_number/human.ts rename to 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 00000000000..b0582322396 --- /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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/th/phone_number/national.ts b/src/locales/th/phone_number/format/national.ts similarity index 100% rename from src/locales/th/phone_number/national.ts rename to src/locales/th/phone_number/format/national.ts diff --git a/src/locales/th/phone_number/raw.ts b/src/locales/th/phone_number/format/raw.ts similarity index 100% rename from src/locales/th/phone_number/raw.ts rename to src/locales/th/phone_number/format/raw.ts diff --git a/src/locales/th/phone_number/index.ts b/src/locales/th/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/th/phone_number/index.ts +++ b/src/locales/th/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/tr/phone_number/human.ts b/src/locales/tr/phone_number/format/human.ts similarity index 100% rename from src/locales/tr/phone_number/human.ts rename to src/locales/tr/phone_number/format/human.ts diff --git a/src/locales/tr/phone_number/format/index.ts b/src/locales/tr/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/tr/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/tr/phone_number/national.ts b/src/locales/tr/phone_number/format/national.ts similarity index 100% rename from src/locales/tr/phone_number/national.ts rename to src/locales/tr/phone_number/format/national.ts diff --git a/src/locales/tr/phone_number/raw.ts b/src/locales/tr/phone_number/format/raw.ts similarity index 100% rename from src/locales/tr/phone_number/raw.ts rename to src/locales/tr/phone_number/format/raw.ts diff --git a/src/locales/tr/phone_number/index.ts b/src/locales/tr/phone_number/index.ts index e581ebbadb2..0bf58be5b6b 100644 --- a/src/locales/tr/phone_number/index.ts +++ b/src/locales/tr/phone_number/index.ts @@ -4,15 +4,11 @@ */ import type { PhoneNumberDefinition } from '../../..'; import area_code from './area_code'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { area_code, - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/uk/phone_number/human.ts b/src/locales/uk/phone_number/format/human.ts similarity index 100% rename from src/locales/uk/phone_number/human.ts rename to src/locales/uk/phone_number/format/human.ts diff --git a/src/locales/uk/phone_number/format/index.ts b/src/locales/uk/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/uk/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/uk/phone_number/national.ts b/src/locales/uk/phone_number/format/national.ts similarity index 100% rename from src/locales/uk/phone_number/national.ts rename to src/locales/uk/phone_number/format/national.ts diff --git a/src/locales/uk/phone_number/raw.ts b/src/locales/uk/phone_number/format/raw.ts similarity index 100% rename from src/locales/uk/phone_number/raw.ts rename to src/locales/uk/phone_number/format/raw.ts diff --git a/src/locales/uk/phone_number/index.ts b/src/locales/uk/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/uk/phone_number/index.ts +++ b/src/locales/uk/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/vi/phone_number/human.ts b/src/locales/vi/phone_number/format/human.ts similarity index 100% rename from src/locales/vi/phone_number/human.ts rename to src/locales/vi/phone_number/format/human.ts diff --git a/src/locales/vi/phone_number/format/index.ts b/src/locales/vi/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/vi/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/vi/phone_number/national.ts b/src/locales/vi/phone_number/format/national.ts similarity index 100% rename from src/locales/vi/phone_number/national.ts rename to src/locales/vi/phone_number/format/national.ts diff --git a/src/locales/vi/phone_number/raw.ts b/src/locales/vi/phone_number/format/raw.ts similarity index 100% rename from src/locales/vi/phone_number/raw.ts rename to src/locales/vi/phone_number/format/raw.ts diff --git a/src/locales/vi/phone_number/index.ts b/src/locales/vi/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/vi/phone_number/index.ts +++ b/src/locales/vi/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/zh_CN/phone_number/human.ts b/src/locales/zh_CN/phone_number/format/human.ts similarity index 100% rename from src/locales/zh_CN/phone_number/human.ts rename to src/locales/zh_CN/phone_number/format/human.ts diff --git a/src/locales/zh_CN/phone_number/format/index.ts b/src/locales/zh_CN/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/zh_CN/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/zh_CN/phone_number/national.ts b/src/locales/zh_CN/phone_number/format/national.ts similarity index 100% rename from src/locales/zh_CN/phone_number/national.ts rename to src/locales/zh_CN/phone_number/format/national.ts diff --git a/src/locales/zh_CN/phone_number/raw.ts b/src/locales/zh_CN/phone_number/format/raw.ts similarity index 100% rename from src/locales/zh_CN/phone_number/raw.ts rename to src/locales/zh_CN/phone_number/format/raw.ts diff --git a/src/locales/zh_CN/phone_number/index.ts b/src/locales/zh_CN/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/zh_CN/phone_number/index.ts +++ b/src/locales/zh_CN/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/zh_TW/phone_number/human.ts b/src/locales/zh_TW/phone_number/format/human.ts similarity index 100% rename from src/locales/zh_TW/phone_number/human.ts rename to src/locales/zh_TW/phone_number/format/human.ts diff --git a/src/locales/zh_TW/phone_number/format/index.ts b/src/locales/zh_TW/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/zh_TW/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/zh_TW/phone_number/national.ts b/src/locales/zh_TW/phone_number/format/national.ts similarity index 100% rename from src/locales/zh_TW/phone_number/national.ts rename to src/locales/zh_TW/phone_number/format/national.ts diff --git a/src/locales/zh_TW/phone_number/raw.ts b/src/locales/zh_TW/phone_number/format/raw.ts similarity index 100% rename from src/locales/zh_TW/phone_number/raw.ts rename to src/locales/zh_TW/phone_number/format/raw.ts diff --git a/src/locales/zh_TW/phone_number/index.ts b/src/locales/zh_TW/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/zh_TW/phone_number/index.ts +++ b/src/locales/zh_TW/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/locales/zu_ZA/phone_number/human.ts b/src/locales/zu_ZA/phone_number/format/human.ts similarity index 100% rename from src/locales/zu_ZA/phone_number/human.ts rename to src/locales/zu_ZA/phone_number/format/human.ts diff --git a/src/locales/zu_ZA/phone_number/format/index.ts b/src/locales/zu_ZA/phone_number/format/index.ts new file mode 100644 index 00000000000..b0582322396 --- /dev/null +++ b/src/locales/zu_ZA/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 national from './national'; +import raw from './raw'; + +const format: PhoneNumberDefinition['format'] = { + human, + national, + raw, +}; + +export default format; diff --git a/src/locales/zu_ZA/phone_number/national.ts b/src/locales/zu_ZA/phone_number/format/national.ts similarity index 100% rename from src/locales/zu_ZA/phone_number/national.ts rename to src/locales/zu_ZA/phone_number/format/national.ts diff --git a/src/locales/zu_ZA/phone_number/raw.ts b/src/locales/zu_ZA/phone_number/format/raw.ts similarity index 100% rename from src/locales/zu_ZA/phone_number/raw.ts rename to src/locales/zu_ZA/phone_number/format/raw.ts diff --git a/src/locales/zu_ZA/phone_number/index.ts b/src/locales/zu_ZA/phone_number/index.ts index fba454b26cc..1f3945ced7e 100644 --- a/src/locales/zu_ZA/phone_number/index.ts +++ b/src/locales/zu_ZA/phone_number/index.ts @@ -3,14 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { PhoneNumberDefinition } from '../../..'; -import human from './human'; -import national from './national'; -import raw from './raw'; +import format from './format'; const phone_number: PhoneNumberDefinition = { - human, - national, - raw, + format, }; export default phone_number; diff --git a/src/modules/phone/index.ts b/src/modules/phone/index.ts index 5c0bc15fd7c..0fdf40fca5b 100644 --- a/src/modules/phone/index.ts +++ b/src/modules/phone/index.ts @@ -49,13 +49,9 @@ export class PhoneModule extends ModuleBase { style: 'human' | 'national' | 'raw'; }): string { const { style } = options ?? { style: 'human' }; - const styleDefinitions = { - human: this.faker.definitions.phone_number.human, - national: this.faker.definitions.phone_number.national, - raw: this.faker.definitions.phone_number.raw, - }; + const formats = this.faker.definitions.phone_number.format; - const definitions = styleDefinitions[style] || styleDefinitions.human; + const definitions = formats[style] || formats.human; const format = this.faker.helpers.arrayElement(definitions); return legacyReplaceSymbolWithNumber(this.faker, format); } From b83137b6da55d66fa18ba072ec312d0d258bd39e Mon Sep 17 00:00:00 2001 From: Matt Mayer Date: Tue, 5 Mar 2024 23:56:33 +0700 Subject: [PATCH 07/13] lint --- src/definitions/phone_number.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/definitions/phone_number.ts b/src/definitions/phone_number.ts index 89e6e43b07a..120a05d0af8 100644 --- a/src/definitions/phone_number.ts +++ b/src/definitions/phone_number.ts @@ -16,5 +16,5 @@ export type PhoneNumberDefinition = LocaleEntry<{ human: string[]; national: string[]; raw: string[]; - } + }; }>; From f2ef62bc96e834c41a68cfa25c3db1eba48990a7 Mon Sep 17 00:00:00 2001 From: Matt Mayer Date: Wed, 6 Mar 2024 11:03:24 +0700 Subject: [PATCH 08/13] implement review suggestions --- src/modules/phone/index.ts | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/src/modules/phone/index.ts b/src/modules/phone/index.ts index 0fdf40fca5b..694174d6cfe 100644 --- a/src/modules/phone/index.ts +++ b/src/modules/phone/index.ts @@ -9,19 +9,6 @@ import { legacyReplaceSymbolWithNumber } from '../helpers'; * For a phone number, use [`number()`](https://fakerjs.dev/api/phone.html#number). Many locales provide country-specific formats. */ export class PhoneModule extends ModuleBase { - /** - * Generates a random phone number. - * - * @see faker.string.numeric(): For generating a random string of numbers. - * @see faker.helpers.fromRegExp(): For generating a phone number matching a regular expression. - * - * @example - * faker.phone.number() // '961-770-7727' - * - * @since 7.3.0 - */ - number(): string; - /** * Generates a random phone number. * @@ -33,16 +20,18 @@ export class PhoneModule extends ModuleBase { * * @example * faker.phone.number() // '961-770-7727' + * faker.phone.number({ style: 'human' }) // '555.770.7727 x1234' + * faker.phone.number({ style: 'national' }) // '(961) 770-7727' + * faker.phone.number({ style: 'raw' }) // '+15551234567' * * @since 7.3.0 */ - number(options?: { style: 'human' | 'national' | 'raw' }): string; number(options?: { /** * Style of the generated phone number: - * - `'human'`: (default) A human-input phone number, e.g. 555-770-7727 or 555.770.7727 x1234 - * - `'national'`: A phone number in a standardized national format, e.g. (555) 123-4567. - * - `'raw'`: A phone number in the raw format, e.g. +15551234567 + * - `'human'`: (default) A human-input phone number, e.g. `555-770-7727` or `555.770.7727 x1234` + * - `'national'`: A phone number in a standardized national format, e.g. `(555) 123-4567`. + * - `'raw'`: A phone number in the raw format, e.g. `+15551234567` * * @default 'human' */ @@ -51,7 +40,11 @@ export class PhoneModule extends ModuleBase { const { style } = options ?? { style: 'human' }; const formats = this.faker.definitions.phone_number.format; - const definitions = formats[style] || formats.human; + const definitions = formats[style]; + if (!definitions) { + throw new Error(`No definitions for ${style} in this locale`); + } + const format = this.faker.helpers.arrayElement(definitions); return legacyReplaceSymbolWithNumber(this.faker, format); } From 3b253594821fbe97ad1a712d764592694fba79c1 Mon Sep 17 00:00:00 2001 From: Matt Mayer <152770+matthewmayer@users.noreply.github.com> Date: Wed, 6 Mar 2024 15:07:50 +0700 Subject: [PATCH 09/13] Update index.ts Co-authored-by: ST-DDT --- src/modules/phone/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/phone/index.ts b/src/modules/phone/index.ts index 694174d6cfe..9538e4c0dc2 100644 --- a/src/modules/phone/index.ts +++ b/src/modules/phone/index.ts @@ -13,7 +13,7 @@ export class PhoneModule extends ModuleBase { * Generates a random phone number. * * @param options Options object - * @param options.style Style of the phone number. Defaults to 'human' + * @param options.style Style of the phone number. Defaults to `'human'`. * * @see faker.string.numeric(): For generating a random string of numbers. * @see faker.helpers.fromRegExp(): For generating a phone number matching a regular expression. From c296bc0f40864687cb6dbb2854c2f284e0bcca79 Mon Sep 17 00:00:00 2001 From: Matt Mayer <152770+matthewmayer@users.noreply.github.com> Date: Wed, 6 Mar 2024 15:08:02 +0700 Subject: [PATCH 10/13] Update 2578.md Co-authored-by: Eric Cheng --- docs/guide/upgrading_v9/2578.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/upgrading_v9/2578.md b/docs/guide/upgrading_v9/2578.md index 26e4fe37060..fa7e0d955e5 100644 --- a/docs/guide/upgrading_v9/2578.md +++ b/docs/guide/upgrading_v9/2578.md @@ -8,7 +8,7 @@ If you wanted more control over the number, it was previously necessary to pass - - `'human'`: (default, existing behavior) A human-input phone number, e.g. `555-770-7727` or `555.770.7727 x1234` - - `'national'`: A phone number in a standardized national format, e.g. `(555) 123-4567`. -- - `'raw'`: A phone number in a raw international forma with country code, e.g. `+15551234567` +- - `'raw'`: A phone number in a raw international format with country code, e.g. `+15551234567` The styles are locale-aware, so for example if you use pt_PT, phone numbers suitable for Portugal would be generated. From f0dd78eefd1a2ec82d7f09dc52c657bc1057f524 Mon Sep 17 00:00:00 2001 From: Matt Mayer Date: Wed, 6 Mar 2024 18:18:04 +0700 Subject: [PATCH 11/13] rename raw to international, add comments in definitions --- src/definitions/phone_number.ts | 11 ++++++++++- src/locales/af_ZA/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/az/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/cs_CZ/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/da/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/de/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/de_AT/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/de_CH/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/dv/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/el/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/en/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/en_AU/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/en_AU_ocker/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/en_CA/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/en_GB/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/en_GH/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/en_HK/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/en_IE/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/en_IN/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/en_NG/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/en_ZA/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/es/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/es_MX/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/fa/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/fr/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/fr_BE/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/fr_CA/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/fr_CH/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/fr_LU/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/he/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/hr/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/hu/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/hy/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/id_ID/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/it/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/ja/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/ka_GE/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/ko/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/lv/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/mk/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/nb_NO/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/ne/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/nl/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/nl_BE/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/pl/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/pt_BR/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/pt_PT/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/ro/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/ro_MD/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/ru/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/sk/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/sr_RS_latin/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/sv/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/th/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/tr/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/uk/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/vi/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/zh_CN/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/zh_TW/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/locales/zu_ZA/phone_number/format/index.ts | 4 ++-- .../phone_number/format/{raw.ts => international.ts} | 0 src/modules/phone/index.ts | 6 +++--- test/modules/__snapshots__/phone.spec.ts.snap | 12 ++++++------ test/modules/phone.spec.ts | 2 +- 122 files changed, 138 insertions(+), 129 deletions(-) rename src/locales/af_ZA/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/az/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/cs_CZ/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/da/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/de/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/de_AT/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/de_CH/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/dv/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/el/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/en/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/en_AU/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/en_AU_ocker/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/en_CA/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/en_GB/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/en_GH/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/en_HK/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/en_IE/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/en_IN/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/en_NG/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/en_ZA/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/es/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/es_MX/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/fa/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/fr/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/fr_BE/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/fr_CA/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/fr_CH/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/fr_LU/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/he/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/hr/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/hu/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/hy/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/id_ID/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/it/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/ja/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/ka_GE/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/ko/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/lv/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/mk/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/nb_NO/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/ne/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/nl/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/nl_BE/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/pl/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/pt_BR/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/pt_PT/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/ro/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/ro_MD/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/ru/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/sk/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/sr_RS_latin/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/sv/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/th/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/tr/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/uk/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/vi/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/zh_CN/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/zh_TW/phone_number/format/{raw.ts => international.ts} (100%) rename src/locales/zu_ZA/phone_number/format/{raw.ts => international.ts} (100%) diff --git a/src/definitions/phone_number.ts b/src/definitions/phone_number.ts index 120a05d0af8..c77bbb913a5 100644 --- a/src/definitions/phone_number.ts +++ b/src/definitions/phone_number.ts @@ -13,8 +13,17 @@ export type PhoneNumberDefinition = LocaleEntry<{ * @see faker.helpers.replaceSymbolWithNumber(format): For more information about how the patterns are used. */ format: { + /** + * Formats for a human-input phone number, e.g. `555-770-7727` or `555.770.7727 x1234` + */ human: string[]; + /** + * Formats for a phone number in a standardized national format, e.g. `(555) 123-4567`. + */ national: string[]; - raw: string[]; + /** + * Formats for a phone number in the standardised E.123 format, e.g. `+15551234567` + */ + international: string[]; }; }>; diff --git a/src/locales/af_ZA/phone_number/format/index.ts b/src/locales/af_ZA/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/af_ZA/phone_number/format/index.ts +++ b/src/locales/af_ZA/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/af_ZA/phone_number/format/raw.ts b/src/locales/af_ZA/phone_number/format/international.ts similarity index 100% rename from src/locales/af_ZA/phone_number/format/raw.ts rename to src/locales/af_ZA/phone_number/format/international.ts diff --git a/src/locales/az/phone_number/format/index.ts b/src/locales/az/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/az/phone_number/format/index.ts +++ b/src/locales/az/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/az/phone_number/format/raw.ts b/src/locales/az/phone_number/format/international.ts similarity index 100% rename from src/locales/az/phone_number/format/raw.ts rename to src/locales/az/phone_number/format/international.ts diff --git a/src/locales/cs_CZ/phone_number/format/index.ts b/src/locales/cs_CZ/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/cs_CZ/phone_number/format/index.ts +++ b/src/locales/cs_CZ/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/cs_CZ/phone_number/format/raw.ts b/src/locales/cs_CZ/phone_number/format/international.ts similarity index 100% rename from src/locales/cs_CZ/phone_number/format/raw.ts rename to src/locales/cs_CZ/phone_number/format/international.ts diff --git a/src/locales/da/phone_number/format/index.ts b/src/locales/da/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/da/phone_number/format/index.ts +++ b/src/locales/da/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/da/phone_number/format/raw.ts b/src/locales/da/phone_number/format/international.ts similarity index 100% rename from src/locales/da/phone_number/format/raw.ts rename to src/locales/da/phone_number/format/international.ts diff --git a/src/locales/de/phone_number/format/index.ts b/src/locales/de/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/de/phone_number/format/index.ts +++ b/src/locales/de/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/de/phone_number/format/raw.ts b/src/locales/de/phone_number/format/international.ts similarity index 100% rename from src/locales/de/phone_number/format/raw.ts rename to src/locales/de/phone_number/format/international.ts diff --git a/src/locales/de_AT/phone_number/format/index.ts b/src/locales/de_AT/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/de_AT/phone_number/format/index.ts +++ b/src/locales/de_AT/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/de_AT/phone_number/format/raw.ts b/src/locales/de_AT/phone_number/format/international.ts similarity index 100% rename from src/locales/de_AT/phone_number/format/raw.ts rename to src/locales/de_AT/phone_number/format/international.ts diff --git a/src/locales/de_CH/phone_number/format/index.ts b/src/locales/de_CH/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/de_CH/phone_number/format/index.ts +++ b/src/locales/de_CH/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/de_CH/phone_number/format/raw.ts b/src/locales/de_CH/phone_number/format/international.ts similarity index 100% rename from src/locales/de_CH/phone_number/format/raw.ts rename to src/locales/de_CH/phone_number/format/international.ts diff --git a/src/locales/dv/phone_number/format/index.ts b/src/locales/dv/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/dv/phone_number/format/index.ts +++ b/src/locales/dv/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/dv/phone_number/format/raw.ts b/src/locales/dv/phone_number/format/international.ts similarity index 100% rename from src/locales/dv/phone_number/format/raw.ts rename to src/locales/dv/phone_number/format/international.ts diff --git a/src/locales/el/phone_number/format/index.ts b/src/locales/el/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/el/phone_number/format/index.ts +++ b/src/locales/el/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/el/phone_number/format/raw.ts b/src/locales/el/phone_number/format/international.ts similarity index 100% rename from src/locales/el/phone_number/format/raw.ts rename to src/locales/el/phone_number/format/international.ts diff --git a/src/locales/en/phone_number/format/index.ts b/src/locales/en/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/en/phone_number/format/index.ts +++ b/src/locales/en/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/en/phone_number/format/raw.ts b/src/locales/en/phone_number/format/international.ts similarity index 100% rename from src/locales/en/phone_number/format/raw.ts rename to src/locales/en/phone_number/format/international.ts diff --git a/src/locales/en_AU/phone_number/format/index.ts b/src/locales/en_AU/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/en_AU/phone_number/format/index.ts +++ b/src/locales/en_AU/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/en_AU/phone_number/format/raw.ts b/src/locales/en_AU/phone_number/format/international.ts similarity index 100% rename from src/locales/en_AU/phone_number/format/raw.ts rename to src/locales/en_AU/phone_number/format/international.ts diff --git a/src/locales/en_AU_ocker/phone_number/format/index.ts b/src/locales/en_AU_ocker/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/en_AU_ocker/phone_number/format/index.ts +++ b/src/locales/en_AU_ocker/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/en_AU_ocker/phone_number/format/raw.ts b/src/locales/en_AU_ocker/phone_number/format/international.ts similarity index 100% rename from src/locales/en_AU_ocker/phone_number/format/raw.ts rename to src/locales/en_AU_ocker/phone_number/format/international.ts diff --git a/src/locales/en_CA/phone_number/format/index.ts b/src/locales/en_CA/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/en_CA/phone_number/format/index.ts +++ b/src/locales/en_CA/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/en_CA/phone_number/format/raw.ts b/src/locales/en_CA/phone_number/format/international.ts similarity index 100% rename from src/locales/en_CA/phone_number/format/raw.ts rename to src/locales/en_CA/phone_number/format/international.ts diff --git a/src/locales/en_GB/phone_number/format/index.ts b/src/locales/en_GB/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/en_GB/phone_number/format/index.ts +++ b/src/locales/en_GB/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/en_GB/phone_number/format/raw.ts b/src/locales/en_GB/phone_number/format/international.ts similarity index 100% rename from src/locales/en_GB/phone_number/format/raw.ts rename to src/locales/en_GB/phone_number/format/international.ts diff --git a/src/locales/en_GH/phone_number/format/index.ts b/src/locales/en_GH/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/en_GH/phone_number/format/index.ts +++ b/src/locales/en_GH/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/en_GH/phone_number/format/raw.ts b/src/locales/en_GH/phone_number/format/international.ts similarity index 100% rename from src/locales/en_GH/phone_number/format/raw.ts rename to src/locales/en_GH/phone_number/format/international.ts diff --git a/src/locales/en_HK/phone_number/format/index.ts b/src/locales/en_HK/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/en_HK/phone_number/format/index.ts +++ b/src/locales/en_HK/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/en_HK/phone_number/format/raw.ts b/src/locales/en_HK/phone_number/format/international.ts similarity index 100% rename from src/locales/en_HK/phone_number/format/raw.ts rename to src/locales/en_HK/phone_number/format/international.ts diff --git a/src/locales/en_IE/phone_number/format/index.ts b/src/locales/en_IE/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/en_IE/phone_number/format/index.ts +++ b/src/locales/en_IE/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/en_IE/phone_number/format/raw.ts b/src/locales/en_IE/phone_number/format/international.ts similarity index 100% rename from src/locales/en_IE/phone_number/format/raw.ts rename to src/locales/en_IE/phone_number/format/international.ts diff --git a/src/locales/en_IN/phone_number/format/index.ts b/src/locales/en_IN/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/en_IN/phone_number/format/index.ts +++ b/src/locales/en_IN/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/en_IN/phone_number/format/raw.ts b/src/locales/en_IN/phone_number/format/international.ts similarity index 100% rename from src/locales/en_IN/phone_number/format/raw.ts rename to src/locales/en_IN/phone_number/format/international.ts diff --git a/src/locales/en_NG/phone_number/format/index.ts b/src/locales/en_NG/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/en_NG/phone_number/format/index.ts +++ b/src/locales/en_NG/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/en_NG/phone_number/format/raw.ts b/src/locales/en_NG/phone_number/format/international.ts similarity index 100% rename from src/locales/en_NG/phone_number/format/raw.ts rename to src/locales/en_NG/phone_number/format/international.ts diff --git a/src/locales/en_ZA/phone_number/format/index.ts b/src/locales/en_ZA/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/en_ZA/phone_number/format/index.ts +++ b/src/locales/en_ZA/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/en_ZA/phone_number/format/raw.ts b/src/locales/en_ZA/phone_number/format/international.ts similarity index 100% rename from src/locales/en_ZA/phone_number/format/raw.ts rename to src/locales/en_ZA/phone_number/format/international.ts diff --git a/src/locales/es/phone_number/format/index.ts b/src/locales/es/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/es/phone_number/format/index.ts +++ b/src/locales/es/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/es/phone_number/format/raw.ts b/src/locales/es/phone_number/format/international.ts similarity index 100% rename from src/locales/es/phone_number/format/raw.ts rename to src/locales/es/phone_number/format/international.ts diff --git a/src/locales/es_MX/phone_number/format/index.ts b/src/locales/es_MX/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/es_MX/phone_number/format/index.ts +++ b/src/locales/es_MX/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/es_MX/phone_number/format/raw.ts b/src/locales/es_MX/phone_number/format/international.ts similarity index 100% rename from src/locales/es_MX/phone_number/format/raw.ts rename to src/locales/es_MX/phone_number/format/international.ts diff --git a/src/locales/fa/phone_number/format/index.ts b/src/locales/fa/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/fa/phone_number/format/index.ts +++ b/src/locales/fa/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/fa/phone_number/format/raw.ts b/src/locales/fa/phone_number/format/international.ts similarity index 100% rename from src/locales/fa/phone_number/format/raw.ts rename to src/locales/fa/phone_number/format/international.ts diff --git a/src/locales/fr/phone_number/format/index.ts b/src/locales/fr/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/fr/phone_number/format/index.ts +++ b/src/locales/fr/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/fr/phone_number/format/raw.ts b/src/locales/fr/phone_number/format/international.ts similarity index 100% rename from src/locales/fr/phone_number/format/raw.ts rename to src/locales/fr/phone_number/format/international.ts diff --git a/src/locales/fr_BE/phone_number/format/index.ts b/src/locales/fr_BE/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/fr_BE/phone_number/format/index.ts +++ b/src/locales/fr_BE/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/fr_BE/phone_number/format/raw.ts b/src/locales/fr_BE/phone_number/format/international.ts similarity index 100% rename from src/locales/fr_BE/phone_number/format/raw.ts rename to src/locales/fr_BE/phone_number/format/international.ts diff --git a/src/locales/fr_CA/phone_number/format/index.ts b/src/locales/fr_CA/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/fr_CA/phone_number/format/index.ts +++ b/src/locales/fr_CA/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/fr_CA/phone_number/format/raw.ts b/src/locales/fr_CA/phone_number/format/international.ts similarity index 100% rename from src/locales/fr_CA/phone_number/format/raw.ts rename to src/locales/fr_CA/phone_number/format/international.ts diff --git a/src/locales/fr_CH/phone_number/format/index.ts b/src/locales/fr_CH/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/fr_CH/phone_number/format/index.ts +++ b/src/locales/fr_CH/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/fr_CH/phone_number/format/raw.ts b/src/locales/fr_CH/phone_number/format/international.ts similarity index 100% rename from src/locales/fr_CH/phone_number/format/raw.ts rename to src/locales/fr_CH/phone_number/format/international.ts diff --git a/src/locales/fr_LU/phone_number/format/index.ts b/src/locales/fr_LU/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/fr_LU/phone_number/format/index.ts +++ b/src/locales/fr_LU/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/fr_LU/phone_number/format/raw.ts b/src/locales/fr_LU/phone_number/format/international.ts similarity index 100% rename from src/locales/fr_LU/phone_number/format/raw.ts rename to src/locales/fr_LU/phone_number/format/international.ts diff --git a/src/locales/he/phone_number/format/index.ts b/src/locales/he/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/he/phone_number/format/index.ts +++ b/src/locales/he/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/he/phone_number/format/raw.ts b/src/locales/he/phone_number/format/international.ts similarity index 100% rename from src/locales/he/phone_number/format/raw.ts rename to src/locales/he/phone_number/format/international.ts diff --git a/src/locales/hr/phone_number/format/index.ts b/src/locales/hr/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/hr/phone_number/format/index.ts +++ b/src/locales/hr/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/hr/phone_number/format/raw.ts b/src/locales/hr/phone_number/format/international.ts similarity index 100% rename from src/locales/hr/phone_number/format/raw.ts rename to src/locales/hr/phone_number/format/international.ts diff --git a/src/locales/hu/phone_number/format/index.ts b/src/locales/hu/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/hu/phone_number/format/index.ts +++ b/src/locales/hu/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/hu/phone_number/format/raw.ts b/src/locales/hu/phone_number/format/international.ts similarity index 100% rename from src/locales/hu/phone_number/format/raw.ts rename to src/locales/hu/phone_number/format/international.ts diff --git a/src/locales/hy/phone_number/format/index.ts b/src/locales/hy/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/hy/phone_number/format/index.ts +++ b/src/locales/hy/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/hy/phone_number/format/raw.ts b/src/locales/hy/phone_number/format/international.ts similarity index 100% rename from src/locales/hy/phone_number/format/raw.ts rename to src/locales/hy/phone_number/format/international.ts diff --git a/src/locales/id_ID/phone_number/format/index.ts b/src/locales/id_ID/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/id_ID/phone_number/format/index.ts +++ b/src/locales/id_ID/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/id_ID/phone_number/format/raw.ts b/src/locales/id_ID/phone_number/format/international.ts similarity index 100% rename from src/locales/id_ID/phone_number/format/raw.ts rename to src/locales/id_ID/phone_number/format/international.ts diff --git a/src/locales/it/phone_number/format/index.ts b/src/locales/it/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/it/phone_number/format/index.ts +++ b/src/locales/it/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/it/phone_number/format/raw.ts b/src/locales/it/phone_number/format/international.ts similarity index 100% rename from src/locales/it/phone_number/format/raw.ts rename to src/locales/it/phone_number/format/international.ts diff --git a/src/locales/ja/phone_number/format/index.ts b/src/locales/ja/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/ja/phone_number/format/index.ts +++ b/src/locales/ja/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/ja/phone_number/format/raw.ts b/src/locales/ja/phone_number/format/international.ts similarity index 100% rename from src/locales/ja/phone_number/format/raw.ts rename to src/locales/ja/phone_number/format/international.ts diff --git a/src/locales/ka_GE/phone_number/format/index.ts b/src/locales/ka_GE/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/ka_GE/phone_number/format/index.ts +++ b/src/locales/ka_GE/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/ka_GE/phone_number/format/raw.ts b/src/locales/ka_GE/phone_number/format/international.ts similarity index 100% rename from src/locales/ka_GE/phone_number/format/raw.ts rename to src/locales/ka_GE/phone_number/format/international.ts diff --git a/src/locales/ko/phone_number/format/index.ts b/src/locales/ko/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/ko/phone_number/format/index.ts +++ b/src/locales/ko/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/ko/phone_number/format/raw.ts b/src/locales/ko/phone_number/format/international.ts similarity index 100% rename from src/locales/ko/phone_number/format/raw.ts rename to src/locales/ko/phone_number/format/international.ts diff --git a/src/locales/lv/phone_number/format/index.ts b/src/locales/lv/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/lv/phone_number/format/index.ts +++ b/src/locales/lv/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/lv/phone_number/format/raw.ts b/src/locales/lv/phone_number/format/international.ts similarity index 100% rename from src/locales/lv/phone_number/format/raw.ts rename to src/locales/lv/phone_number/format/international.ts diff --git a/src/locales/mk/phone_number/format/index.ts b/src/locales/mk/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/mk/phone_number/format/index.ts +++ b/src/locales/mk/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/mk/phone_number/format/raw.ts b/src/locales/mk/phone_number/format/international.ts similarity index 100% rename from src/locales/mk/phone_number/format/raw.ts rename to src/locales/mk/phone_number/format/international.ts diff --git a/src/locales/nb_NO/phone_number/format/index.ts b/src/locales/nb_NO/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/nb_NO/phone_number/format/index.ts +++ b/src/locales/nb_NO/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/nb_NO/phone_number/format/raw.ts b/src/locales/nb_NO/phone_number/format/international.ts similarity index 100% rename from src/locales/nb_NO/phone_number/format/raw.ts rename to src/locales/nb_NO/phone_number/format/international.ts diff --git a/src/locales/ne/phone_number/format/index.ts b/src/locales/ne/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/ne/phone_number/format/index.ts +++ b/src/locales/ne/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/ne/phone_number/format/raw.ts b/src/locales/ne/phone_number/format/international.ts similarity index 100% rename from src/locales/ne/phone_number/format/raw.ts rename to src/locales/ne/phone_number/format/international.ts diff --git a/src/locales/nl/phone_number/format/index.ts b/src/locales/nl/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/nl/phone_number/format/index.ts +++ b/src/locales/nl/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/nl/phone_number/format/raw.ts b/src/locales/nl/phone_number/format/international.ts similarity index 100% rename from src/locales/nl/phone_number/format/raw.ts rename to src/locales/nl/phone_number/format/international.ts diff --git a/src/locales/nl_BE/phone_number/format/index.ts b/src/locales/nl_BE/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/nl_BE/phone_number/format/index.ts +++ b/src/locales/nl_BE/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/nl_BE/phone_number/format/raw.ts b/src/locales/nl_BE/phone_number/format/international.ts similarity index 100% rename from src/locales/nl_BE/phone_number/format/raw.ts rename to src/locales/nl_BE/phone_number/format/international.ts diff --git a/src/locales/pl/phone_number/format/index.ts b/src/locales/pl/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/pl/phone_number/format/index.ts +++ b/src/locales/pl/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/pl/phone_number/format/raw.ts b/src/locales/pl/phone_number/format/international.ts similarity index 100% rename from src/locales/pl/phone_number/format/raw.ts rename to src/locales/pl/phone_number/format/international.ts diff --git a/src/locales/pt_BR/phone_number/format/index.ts b/src/locales/pt_BR/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/pt_BR/phone_number/format/index.ts +++ b/src/locales/pt_BR/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/pt_BR/phone_number/format/raw.ts b/src/locales/pt_BR/phone_number/format/international.ts similarity index 100% rename from src/locales/pt_BR/phone_number/format/raw.ts rename to src/locales/pt_BR/phone_number/format/international.ts diff --git a/src/locales/pt_PT/phone_number/format/index.ts b/src/locales/pt_PT/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/pt_PT/phone_number/format/index.ts +++ b/src/locales/pt_PT/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/pt_PT/phone_number/format/raw.ts b/src/locales/pt_PT/phone_number/format/international.ts similarity index 100% rename from src/locales/pt_PT/phone_number/format/raw.ts rename to src/locales/pt_PT/phone_number/format/international.ts diff --git a/src/locales/ro/phone_number/format/index.ts b/src/locales/ro/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/ro/phone_number/format/index.ts +++ b/src/locales/ro/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/ro/phone_number/format/raw.ts b/src/locales/ro/phone_number/format/international.ts similarity index 100% rename from src/locales/ro/phone_number/format/raw.ts rename to src/locales/ro/phone_number/format/international.ts diff --git a/src/locales/ro_MD/phone_number/format/index.ts b/src/locales/ro_MD/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/ro_MD/phone_number/format/index.ts +++ b/src/locales/ro_MD/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/ro_MD/phone_number/format/raw.ts b/src/locales/ro_MD/phone_number/format/international.ts similarity index 100% rename from src/locales/ro_MD/phone_number/format/raw.ts rename to src/locales/ro_MD/phone_number/format/international.ts diff --git a/src/locales/ru/phone_number/format/index.ts b/src/locales/ru/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/ru/phone_number/format/index.ts +++ b/src/locales/ru/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/ru/phone_number/format/raw.ts b/src/locales/ru/phone_number/format/international.ts similarity index 100% rename from src/locales/ru/phone_number/format/raw.ts rename to src/locales/ru/phone_number/format/international.ts diff --git a/src/locales/sk/phone_number/format/index.ts b/src/locales/sk/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/sk/phone_number/format/index.ts +++ b/src/locales/sk/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/sk/phone_number/format/raw.ts b/src/locales/sk/phone_number/format/international.ts similarity index 100% rename from src/locales/sk/phone_number/format/raw.ts rename to src/locales/sk/phone_number/format/international.ts diff --git a/src/locales/sr_RS_latin/phone_number/format/index.ts b/src/locales/sr_RS_latin/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/sr_RS_latin/phone_number/format/index.ts +++ b/src/locales/sr_RS_latin/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/sr_RS_latin/phone_number/format/raw.ts b/src/locales/sr_RS_latin/phone_number/format/international.ts similarity index 100% rename from src/locales/sr_RS_latin/phone_number/format/raw.ts rename to src/locales/sr_RS_latin/phone_number/format/international.ts diff --git a/src/locales/sv/phone_number/format/index.ts b/src/locales/sv/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/sv/phone_number/format/index.ts +++ b/src/locales/sv/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/sv/phone_number/format/raw.ts b/src/locales/sv/phone_number/format/international.ts similarity index 100% rename from src/locales/sv/phone_number/format/raw.ts rename to src/locales/sv/phone_number/format/international.ts diff --git a/src/locales/th/phone_number/format/index.ts b/src/locales/th/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/th/phone_number/format/index.ts +++ b/src/locales/th/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/th/phone_number/format/raw.ts b/src/locales/th/phone_number/format/international.ts similarity index 100% rename from src/locales/th/phone_number/format/raw.ts rename to src/locales/th/phone_number/format/international.ts diff --git a/src/locales/tr/phone_number/format/index.ts b/src/locales/tr/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/tr/phone_number/format/index.ts +++ b/src/locales/tr/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/tr/phone_number/format/raw.ts b/src/locales/tr/phone_number/format/international.ts similarity index 100% rename from src/locales/tr/phone_number/format/raw.ts rename to src/locales/tr/phone_number/format/international.ts diff --git a/src/locales/uk/phone_number/format/index.ts b/src/locales/uk/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/uk/phone_number/format/index.ts +++ b/src/locales/uk/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/uk/phone_number/format/raw.ts b/src/locales/uk/phone_number/format/international.ts similarity index 100% rename from src/locales/uk/phone_number/format/raw.ts rename to src/locales/uk/phone_number/format/international.ts diff --git a/src/locales/vi/phone_number/format/index.ts b/src/locales/vi/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/vi/phone_number/format/index.ts +++ b/src/locales/vi/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/vi/phone_number/format/raw.ts b/src/locales/vi/phone_number/format/international.ts similarity index 100% rename from src/locales/vi/phone_number/format/raw.ts rename to src/locales/vi/phone_number/format/international.ts diff --git a/src/locales/zh_CN/phone_number/format/index.ts b/src/locales/zh_CN/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/zh_CN/phone_number/format/index.ts +++ b/src/locales/zh_CN/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/zh_CN/phone_number/format/raw.ts b/src/locales/zh_CN/phone_number/format/international.ts similarity index 100% rename from src/locales/zh_CN/phone_number/format/raw.ts rename to src/locales/zh_CN/phone_number/format/international.ts diff --git a/src/locales/zh_TW/phone_number/format/index.ts b/src/locales/zh_TW/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/zh_TW/phone_number/format/index.ts +++ b/src/locales/zh_TW/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/zh_TW/phone_number/format/raw.ts b/src/locales/zh_TW/phone_number/format/international.ts similarity index 100% rename from src/locales/zh_TW/phone_number/format/raw.ts rename to src/locales/zh_TW/phone_number/format/international.ts diff --git a/src/locales/zu_ZA/phone_number/format/index.ts b/src/locales/zu_ZA/phone_number/format/index.ts index b0582322396..36711bc1a10 100644 --- a/src/locales/zu_ZA/phone_number/format/index.ts +++ b/src/locales/zu_ZA/phone_number/format/index.ts @@ -4,13 +4,13 @@ */ import type { PhoneNumberDefinition } from '../../../..'; import human from './human'; +import international from './international'; import national from './national'; -import raw from './raw'; const format: PhoneNumberDefinition['format'] = { human, + international, national, - raw, }; export default format; diff --git a/src/locales/zu_ZA/phone_number/format/raw.ts b/src/locales/zu_ZA/phone_number/format/international.ts similarity index 100% rename from src/locales/zu_ZA/phone_number/format/raw.ts rename to src/locales/zu_ZA/phone_number/format/international.ts diff --git a/src/modules/phone/index.ts b/src/modules/phone/index.ts index 9538e4c0dc2..33f323a8849 100644 --- a/src/modules/phone/index.ts +++ b/src/modules/phone/index.ts @@ -22,7 +22,7 @@ export class PhoneModule extends ModuleBase { * faker.phone.number() // '961-770-7727' * faker.phone.number({ style: 'human' }) // '555.770.7727 x1234' * faker.phone.number({ style: 'national' }) // '(961) 770-7727' - * faker.phone.number({ style: 'raw' }) // '+15551234567' + * faker.phone.number({ style: 'international' }) // '+15551234567' * * @since 7.3.0 */ @@ -31,11 +31,11 @@ export class PhoneModule extends ModuleBase { * Style of the generated phone number: * - `'human'`: (default) A human-input phone number, e.g. `555-770-7727` or `555.770.7727 x1234` * - `'national'`: A phone number in a standardized national format, e.g. `(555) 123-4567`. - * - `'raw'`: A phone number in the raw format, e.g. `+15551234567` + * - `'international'`: A phone number in the E.123 international format, e.g. `+15551234567` * * @default 'human' */ - style: 'human' | 'national' | 'raw'; + style: 'human' | 'national' | 'international'; }): string { const { style } = options ?? { style: 'human' }; const formats = this.faker.definitions.phone_number.format; diff --git a/test/modules/__snapshots__/phone.spec.ts.snap b/test/modules/__snapshots__/phone.spec.ts.snap index d60aa93dda3..cd9778c3e23 100644 --- a/test/modules/__snapshots__/phone.spec.ts.snap +++ b/test/modules/__snapshots__/phone.spec.ts.snap @@ -6,9 +6,9 @@ exports[`phone > 42 > number > noArgs 1`] = `"(975) 310-8670 x982"`; exports[`phone > 42 > number > with human style 1`] = `"(975) 310-8670 x982"`; -exports[`phone > 42 > number > with national style 1`] = `"(497) 611-0867"`; +exports[`phone > 42 > number > with international style 1`] = `"+14976110867"`; -exports[`phone > 42 > number > with raw style 1`] = `"+14976110867"`; +exports[`phone > 42 > number > with national style 1`] = `"(497) 611-0867"`; exports[`phone > 1211 > imei 1`] = `"98-296673-687684-2"`; @@ -16,9 +16,9 @@ exports[`phone > 1211 > number > noArgs 1`] = `"1-929-767-3687 x68488"`; exports[`phone > 1211 > number > with human style 1`] = `"1-929-767-3687 x68488"`; -exports[`phone > 1211 > number > with national style 1`] = `"(982) 966-7368"`; +exports[`phone > 1211 > number > with international style 1`] = `"+19829667368"`; -exports[`phone > 1211 > number > with raw style 1`] = `"+19829667368"`; +exports[`phone > 1211 > number > with national style 1`] = `"(982) 966-7368"`; exports[`phone > 1337 > imei 1`] = `"21-243529-713619-6"`; @@ -26,6 +26,6 @@ exports[`phone > 1337 > number > noArgs 1`] = `"324-452-9713 x619"`; exports[`phone > 1337 > number > with human style 1`] = `"324-452-9713 x619"`; -exports[`phone > 1337 > number > with national style 1`] = `"(412) 535-2971"`; +exports[`phone > 1337 > number > with international style 1`] = `"+14125352971"`; -exports[`phone > 1337 > number > with raw style 1`] = `"+14125352971"`; +exports[`phone > 1337 > number > with national style 1`] = `"(412) 535-2971"`; diff --git a/test/modules/phone.spec.ts b/test/modules/phone.spec.ts index bbda92b29bf..131129ac1f7 100644 --- a/test/modules/phone.spec.ts +++ b/test/modules/phone.spec.ts @@ -14,7 +14,7 @@ describe('phone', () => { t.it('noArgs') .it('with human style', { style: 'human' }) .it('with national style', { style: 'national' }) - .it('with raw style', { style: 'raw' }); + .it('with international style', { style: 'international' }); }); }); From a47a890d8abe05727bf8eb641c6aae513814c652 Mon Sep 17 00:00:00 2001 From: Matt Mayer Date: Wed, 6 Mar 2024 18:23:10 +0700 Subject: [PATCH 12/13] standardize options object code --- src/modules/phone/index.ts | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/modules/phone/index.ts b/src/modules/phone/index.ts index 33f323a8849..0d670f58e9e 100644 --- a/src/modules/phone/index.ts +++ b/src/modules/phone/index.ts @@ -26,18 +26,20 @@ export class PhoneModule extends ModuleBase { * * @since 7.3.0 */ - number(options?: { - /** - * Style of the generated phone number: - * - `'human'`: (default) A human-input phone number, e.g. `555-770-7727` or `555.770.7727 x1234` - * - `'national'`: A phone number in a standardized national format, e.g. `(555) 123-4567`. - * - `'international'`: A phone number in the E.123 international format, e.g. `+15551234567` - * - * @default 'human' - */ - style: 'human' | 'national' | 'international'; - }): string { - const { style } = options ?? { style: 'human' }; + number( + options: { + /** + * Style of the generated phone number: + * - `'human'`: (default) A human-input phone number, e.g. `555-770-7727` or `555.770.7727 x1234` + * - `'national'`: A phone number in a standardized national format, e.g. `(555) 123-4567`. + * - `'international'`: A phone number in the E.123 international format, e.g. `+15551234567` + * + * @default 'human' + */ + style?: 'human' | 'national' | 'international'; + } = {} + ): string { + const { style = 'human' } = options; const formats = this.faker.definitions.phone_number.format; const definitions = formats[style]; From 6ed77dfab2b3a2d207ebc7bfbc5e23b5a89b38e8 Mon Sep 17 00:00:00 2001 From: Matt Mayer Date: Wed, 6 Mar 2024 18:24:31 +0700 Subject: [PATCH 13/13] change migration guide --- docs/guide/upgrading_v9/2578.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/upgrading_v9/2578.md b/docs/guide/upgrading_v9/2578.md index fa7e0d955e5..cb2963d25e9 100644 --- a/docs/guide/upgrading_v9/2578.md +++ b/docs/guide/upgrading_v9/2578.md @@ -8,7 +8,7 @@ If you wanted more control over the number, it was previously necessary to pass - - `'human'`: (default, existing behavior) A human-input phone number, e.g. `555-770-7727` or `555.770.7727 x1234` - - `'national'`: A phone number in a standardized national format, e.g. `(555) 123-4567`. -- - `'raw'`: A phone number in a raw international format with country code, e.g. `+15551234567` +- - `'international'`: A phone number in a E.123 standard international format with country code, e.g. `+15551234567` The styles are locale-aware, so for example if you use pt_PT, phone numbers suitable for Portugal would be generated.