From 7463ce346961b6a74754e0bb3ea93f094cebb067 Mon Sep 17 00:00:00 2001 From: Diego Date: Mon, 23 Dec 2019 21:06:44 -0500 Subject: [PATCH 1/2] Added peruvian phone format --- data/phone-formats.json | 1 + 1 file changed, 1 insertion(+) diff --git a/data/phone-formats.json b/data/phone-formats.json index cb51b958a..7e0554aa8 100644 --- a/data/phone-formats.json +++ b/data/phone-formats.json @@ -39,6 +39,7 @@ "ms": "+1-664-555-1234", "nl": "+31 42 123 4567", "no": "+47 22 12 34 56", + "pe": "+51 1 1234567", "pl": "+48 42 123 4567", "pr": "+1-787-555-1234", "pt": "+351 211 123456", From 619417c020a44ac57454c45c823b7d008bb9454a Mon Sep 17 00:00:00 2001 From: Diego Date: Mon, 23 Dec 2019 21:34:45 -0500 Subject: [PATCH 2/2] Add peruvian address for urban and rural areas --- data/address-formats.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/data/address-formats.json b/data/address-formats.json index ec30fb291..8790a6779 100644 --- a/data/address-formats.json +++ b/data/address-formats.json @@ -160,6 +160,24 @@ "housenumber": 0.3, "neighbourhood": 0.5, "city": 0.5 + }, + { + "countryCodes": ["pe"], + "format": [ + ["street", "housenumber"], + ["neighbourhood"], + ["city", "state", "postcode"] + ], + "dropdowns": [ + "street", "neighbourhood", "city", "state", "postcode" + ], + "widths": { + "street": 0.7, + "housenumber": 0.3, + "city": 0.4, + "state": 0.4, + "postcode": 0.2, + } } } ]