From 25d3443013e403b0174d8ed2ca5037d5400fa315 Mon Sep 17 00:00:00 2001 From: sudeeptarlekar Date: Mon, 20 Jul 2020 13:34:08 +0530 Subject: [PATCH] removed extra + sign from country codes --- lib/locales/en-AU.yml | 10 ++++++-- lib/locales/en-IND.yml | 3 ++- lib/locales/en-US.yml | 58 +++++++++++++++++++++--------------------- lib/locales/fr-CA.yml | 54 ++++++++++++++++++++++++--------------- 4 files changed, 73 insertions(+), 52 deletions(-) diff --git a/lib/locales/en-AU.yml b/lib/locales/en-AU.yml index 1ac6a94a03..ea2bcfec0f 100644 --- a/lib/locales/en-AU.yml +++ b/lib/locales/en-AU.yml @@ -41,7 +41,13 @@ en-AU: phone_number: area_code: ['02', '03', '07', '08'] subscriber_number: ['####'] - formats: ["#{area_code} 7010 #{subscriber_number}", '7010 ####', "(#{area_code}) 7010 #{subscriber_number}", '5550 ####', "#{area_code} 5550 #{subscriber_number}", "(#{area_code}) 5550 #{subscriber_number}", "+#{country_code} #{area_code} 7010 #{subscriber_number}", "+#{country_code} #{area_code} 5550 #{subscriber_number}"] + formats: + - '7010 ####' + - '5550 ####' + - "#{area_code} 7010 #{subscriber_number}" + - "#{area_code} 5550 #{subscriber_number}" + - "(#{area_code}) 7010 #{subscriber_number}" + - "(#{area_code}) 5550 #{subscriber_number}" cell_phone: formats: ['0491 570 006', '0491 570 156', '(04) 91570157', '0491 570 158', '0491 570 159', '0491570110', '0491 57 03 13', '0491 570 737', '0491 571 266', '0491 57 14 91', '0491 571 804', '0491 572 549', '0491 5726 65', '0491572983', '0491 573 770', '0491 573 087', '0491 574 118', '0491574632', '(04) 9157 5254', '0491 575 789', '0491 576 398', '0491576801', '0491 577 426', '0491577644', '0491 578 957', '0491 578 148', '0491 578 888', '0491 5792 12', '0491 579 760', '(04) 9157 9455'] team: @@ -59,4 +65,4 @@ en-AU: university: name: [University of South Australia, University of Tasmania, University of Technology Sydney, Australian National University, University of Melbourne, Monash University, University of Sydney, University of Queensland, The University of Western Australia, Curtin University, Murdoch University, University of Adelaide, Macquarie University, Deakin University, Griffith University, Flinders University, Edith Cowan University, Australia Catholic University, Charles Sturt University, University of New South Wales] bank: - name: [ANZ, Westpac, Commonwealth Bank, National Australia Bank, St George Bank, Bank of Queensland, Bankwest, Bendigo Bank, Credit Union Australia, ING] \ No newline at end of file + name: [ANZ, Westpac, Commonwealth Bank, National Australia Bank, St George Bank, Bank of Queensland, Bankwest, Bendigo Bank, Credit Union Australia, ING] diff --git a/lib/locales/en-IND.yml b/lib/locales/en-IND.yml index 065b9074b5..1370509710 100644 --- a/lib/locales/en-IND.yml +++ b/lib/locales/en-IND.yml @@ -22,4 +22,5 @@ en-IND: company: suffix: [Pvt Ltd, Limited, Ltd, and Sons, Corp, Group, Brothers] phone_number: - formats: ['+91###-###-####', '+91##########', '+91-###-#######'] + formats: ['###-###-####', '##########', '###-#######'] + country_code: ['91'] diff --git a/lib/locales/en-US.yml b/lib/locales/en-US.yml index 1374a19eb7..b946919615 100644 --- a/lib/locales/en-US.yml +++ b/lib/locales/en-US.yml @@ -85,33 +85,33 @@ en-US: WV: '247##' WI: '549##' WY: '831##' - country_code: ['+1'] + country_code: ['1'] phone_number: subscriber_number: ['####'] extension: ['####'] area_code: ["201", "202", "203", "205", "206", "207", "208", "209", "210", "212", "213", "214", "215", "216", "217", "218", "219", "224", "225", "226", "228", "229", "231", "234", "239", "240", "248", "251", "252", "253", "254", "256", "260", "262", "267", "269", "270", "276", "281", "301", "302", "303", "304", "305", "307", "308", "309", "310", "312", "313", "314", "315", "316", "317", "318", "319", "320", "321", "323", "330", "334", "336", "337", "339", "347", "351", "352", "360", "361", "386", "401", "402", "404", "405", "406", "407", "408", "409", "410", "412", "413", "414", "415", "417", "419", "423", "424", "425", "434", "435", "440", "443", "469", "478", "479", "480", "484", "501", "502", "503", "504", "505", "507", "508", "509", "510", "512", "513", "515", "516", "517", "518", "520", "530", "540", "541", "551", "559", "561", "562", "563", "567", "570", "571", "573", "574", "580", "585", "586", "601", "602", "603", "605", "606", "607", "608", "609", "610", "612", "614", "615", "616", "617", "618", "619", "620", "623", "626", "630", "631", "636", "641", "646", "650", "651", "660", "661", "662", "678", "682", "701", "702", "703", "704", "706", "707", "708", "712", "713", "714", "715", "716", "717", "718", "719", "720", "724", "727", "731", "732", "734", "740", "754", "757", "760", "763", "765", "770", "772", "773", "774", "775", "781", "785", "786", "801", "802", "803", "804", "805", "806", "808", "810", "812", "813", "814", "815", "816", "817", "818", "828", "830", "831", "832", "843", "845", "847", "848", "850", "856", "857", "858", "859", "860", "862", "863", "864", "865", "870", "878", "901", "903", "904", "906", "907", "908", "909", "910", "912", "913", "914", "915", "916", "917", "918", "919", "920", "925", "928", "931", "936", "937", "940", "941", "947", "949", "952", "954", "956", "970", "971", "972", "973", "978", "979", "980", "985", "989"] exchange_code: ["201", "202", "203", "205", "206", "207", "208", "209", "210", "212", "213", "214", "215", "216", "217", "218", "219", "224", "225", "227", "228", "229", "231", "234", "239", "240", "248", "251", "252", "253", "254", "256", "260", "262", "267", "269", "270", "276", "281", "283", "301", "302", "303", "304", "305", "307", "308", "309", "310", "312", "313", "314", "315", "316", "317", "318", "319", "320", "321", "323", "330", "331", "334", "336", "337", "339", "347", "351", "352", "360", "361", "386", "401", "402", "404", "405", "406", "407", "408", "409", "410", "412", "413", "414", "415", "417", "419", "423", "424", "425", "434", "435", "440", "443", "445", "464", "469", "470", "475", "478", "479", "480", "484", "501", "502", "503", "504", "505", "507", "508", "509", "510", "512", "513", "515", "516", "517", "518", "520", "530", "540", "541", "551", "557", "559", "561", "562", "563", "564", "567", "570", "571", "573", "574", "580", "585", "586", "601", "602", "603", "605", "606", "607", "608", "609", "610", "612", "614", "615", "616", "617", "618", "619", "620", "623", "626", "630", "631", "636", "641", "646", "650", "651", "660", "661", "662", "667", "678", "682", "701", "702", "703", "704", "706", "707", "708", "712", "713", "714", "715", "716", "717", "718", "719", "720", "724", "727", "731", "732", "734", "737", "740", "754", "757", "760", "763", "765", "770", "772", "773", "774", "775", "781", "785", "786", "801", "802", "803", "804", "805", "806", "808", "810", "812", "813", "814", "815", "816", "817", "818", "828", "830", "831", "832", "835", "843", "845", "847", "848", "850", "856", "857", "858", "859", "860", "862", "863", "864", "865", "870", "872", "878", "901", "903", "904", "906", "907", "908", "909", "910", "912", "913", "914", "915", "916", "917", "918", "919", "920", "925", "928", "931", "936", "937", "940", "941", "947", "949", "952", "954", "956", "959", "970", "971", "972", "973", "975", "978", "979", "980", "984", "985", "989"] formats: - - "#{PhoneNumber.area_code}-#{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number}" - - "(#{PhoneNumber.area_code}) #{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number}" - - "1-#{PhoneNumber.area_code}-#{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number}" - - "#{PhoneNumber.area_code}.#{PhoneNumber.exchange_code}.#{PhoneNumber.subscriber_number}" - - "#{PhoneNumber.area_code}-#{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number}" - - "(#{PhoneNumber.area_code}) #{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number}" - - "1-#{PhoneNumber.area_code}-#{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number}" - - "#{PhoneNumber.area_code}.#{PhoneNumber.exchange_code}.#{PhoneNumber.subscriber_number}" - - "#{PhoneNumber.area_code}-#{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number} x#{PhoneNumber.extension}" - - "(#{PhoneNumber.area_code}) #{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number} x#{PhoneNumber.extension}" - - "1-#{PhoneNumber.area_code}-#{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number} x#{PhoneNumber.extension}" - - "#{PhoneNumber.area_code}.#{PhoneNumber.exchange_code}.#{PhoneNumber.subscriber_number} x#{PhoneNumber.extension}" - - "#{PhoneNumber.area_code}-#{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number} x#{PhoneNumber.extension}" - - "(#{PhoneNumber.area_code}) #{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number} x#{PhoneNumber.extension}" - - "1-#{PhoneNumber.area_code}-#{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number} x#{PhoneNumber.extension}" - - "#{PhoneNumber.area_code}.#{PhoneNumber.exchange_code}.#{PhoneNumber.subscriber_number} x#{PhoneNumber.extension}" - - "#{PhoneNumber.area_code}-#{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number} x#{PhoneNumber.extension}" - - "(#{PhoneNumber.area_code}) #{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number} x#{PhoneNumber.extension}" - - "1-#{PhoneNumber.area_code}-#{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number} x#{PhoneNumber.extension}" - - "#{PhoneNumber.area_code}.#{PhoneNumber.exchange_code}.#{PhoneNumber.subscriber_number} x#{PhoneNumber.extension}" + - "#{area_code}-#{exchange_code}-#{subscriber_number}" + - "(#{area_code}) #{exchange_code}-#{subscriber_number}" + - "-#{area_code}-#{exchange_code}-#{subscriber_number}" + - "#{area_code}.#{exchange_code}.#{subscriber_number}" + - "#{area_code}-#{exchange_code}-#{subscriber_number}" + - "(#{area_code}) #{exchange_code}-#{subscriber_number}" + - "-#{area_code}-#{exchange_code}-#{subscriber_number}" + - "#{area_code}.#{exchange_code}.#{subscriber_number}" + - "#{area_code}-#{exchange_code}-#{subscriber_number} x#{extension}" + - "(#{area_code}) #{exchange_code}-#{subscriber_number} x#{extension}" + - "-#{area_code}-#{exchange_code}-#{subscriber_number} x#{extension}" + - "#{area_code}.#{exchange_code}.#{subscriber_number} x#{extension}" + - "#{area_code}-#{exchange_code}-#{subscriber_number} x#{extension}" + - "(#{area_code}) #{exchange_code}-#{subscriber_number} x#{extension}" + - "-#{area_code}-#{exchange_code}-#{subscriber_number} x#{extension}" + - "#{area_code}.#{exchange_code}.#{subscriber_number} x#{extension}" + - "#{area_code}-#{exchange_code}-#{subscriber_number} x#{extension}" + - "(#{area_code}) #{exchange_code}-#{subscriber_number} x#{extension}" + - "-#{area_code}-#{exchange_code}-#{subscriber_number} x#{extension}" + - "#{area_code}.#{exchange_code}.#{subscriber_number} x#{extension}" id_number: valid: "#{IDNumber.ssn_valid}" @@ -119,11 +119,11 @@ en-US: cell_phone: formats: - - "#{PhoneNumber.area_code}-#{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number}" - - "(#{PhoneNumber.area_code}) #{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number}" - - "1-#{PhoneNumber.area_code}-#{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number}" - - "#{PhoneNumber.area_code}.#{PhoneNumber.exchange_code}.#{PhoneNumber.subscriber_number}" - - "#{PhoneNumber.area_code}-#{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number}" - - "(#{PhoneNumber.area_code}) #{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number}" - - "1-#{PhoneNumber.area_code}-#{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number}" - - "#{PhoneNumber.area_code}.#{PhoneNumber.exchange_code}.#{PhoneNumber.subscriber_number}" + - "#{area_code}-#{exchange_code}-#{subscriber_number}" + - "(#{area_code}) #{exchange_code}-#{subscriber_number}" + - "-#{area_code}-#{exchange_code}-#{subscriber_number}" + - "#{area_code}.#{exchange_code}.#{subscriber_number}" + - "#{area_code}-#{exchange_code}-#{subscriber_number}" + - "(#{area_code}) #{exchange_code}-#{subscriber_number}" + - "-#{area_code}-#{exchange_code}-#{subscriber_number}" + - "#{area_code}.#{exchange_code}.#{subscriber_number}" diff --git a/lib/locales/fr-CA.yml b/lib/locales/fr-CA.yml index d6059d8953..c51867af1a 100644 --- a/lib/locales/fr-CA.yml +++ b/lib/locales/fr-CA.yml @@ -24,26 +24,40 @@ fr-CA: area_code: ["204", "226", "236", "249", "250", "289", "306", "343", "365", "403", "416", "418", "431", "437", "438", "450", "506", "514", "519", "579", "581", "587", "604", "613", "639", "647", "705", "709", "778", "780", "807", "819", "867", "873", "902", "905"] exchange_code: ["201", "202", "203", "205", "206", "207", "208", "209", "210", "212", "213", "214", "215", "216", "217", "218", "219", "224", "225", "227", "228", "229", "231", "234", "239", "240", "248", "251", "252", "253", "254", "256", "260", "262", "267", "269", "270", "276", "281", "283", "301", "302", "303", "304", "305", "307", "308", "309", "310", "312", "313", "314", "315", "316", "317", "318", "319", "320", "321", "323", "330", "331", "334", "336", "337", "339", "347", "351", "352", "360", "361", "386", "401", "402", "404", "405", "406", "407", "408", "409", "410", "412", "413", "414", "415", "417", "419", "423", "424", "425", "434", "435", "440", "443", "445", "464", "469", "470", "475", "478", "479", "480", "484", "501", "502", "503", "504", "505", "507", "508", "509", "510", "512", "513", "515", "516", "517", "518", "520", "530", "540", "541", "551", "557", "559", "561", "562", "563", "564", "567", "570", "571", "573", "574", "580", "585", "586", "601", "602", "603", "605", "606", "607", "608", "609", "610", "612", "614", "615", "616", "617", "618", "619", "620", "623", "626", "630", "631", "636", "641", "646", "650", "651", "660", "661", "662", "667", "678", "682", "701", "702", "703", "704", "706", "707", "708", "712", "713", "714", "715", "716", "717", "718", "719", "720", "724", "727", "731", "732", "734", "737", "740", "754", "757", "760", "763", "765", "770", "772", "773", "774", "775", "781", "785", "786", "801", "802", "803", "804", "805", "806", "808", "810", "812", "813", "814", "815", "816", "817", "818", "828", "830", "831", "832", "835", "843", "845", "847", "848", "850", "856", "857", "858", "859", "860", "862", "863", "864", "865", "870", "872", "878", "901", "903", "904", "906", "907", "908", "909", "910", "912", "913", "914", "915", "916", "917", "918", "919", "920", "925", "928", "931", "936", "937", "940", "941", "947", "949", "952", "954", "956", "959", "970", "971", "972", "973", "975", "978", "979", "980", "984", "985", "989"] formats: - - "#{PhoneNumber.area_code}-#{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number}" - - "(#{PhoneNumber.area_code}) #{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number}" - - "1-#{PhoneNumber.area_code}-#{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number}" - - "#{PhoneNumber.area_code}.#{PhoneNumber.exchange_code}.#{PhoneNumber.subscriber_number}" - - "#{PhoneNumber.area_code}-#{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number}" - - "(#{PhoneNumber.area_code}) #{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number}" - - "1-#{PhoneNumber.area_code}-#{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number}" - - "#{PhoneNumber.area_code}.#{PhoneNumber.exchange_code}.#{PhoneNumber.subscriber_number}" - - "#{PhoneNumber.area_code}-#{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number} x#{PhoneNumber.extension}" - - "(#{PhoneNumber.area_code}) #{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number} x#{PhoneNumber.extension}" - - "1-#{PhoneNumber.area_code}-#{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number} x#{PhoneNumber.extension}" - - "#{PhoneNumber.area_code}.#{PhoneNumber.exchange_code}.#{PhoneNumber.subscriber_number} x#{PhoneNumber.extension}" - - "#{PhoneNumber.area_code}-#{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number} x#{PhoneNumber.extension}" - - "(#{PhoneNumber.area_code}) #{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number} x#{PhoneNumber.extension}" - - "1-#{PhoneNumber.area_code}-#{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number} x#{PhoneNumber.extension}" - - "#{PhoneNumber.area_code}.#{PhoneNumber.exchange_code}.#{PhoneNumber.subscriber_number} x#{PhoneNumber.extension}" - - "#{PhoneNumber.area_code}-#{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number} x#{PhoneNumber.extension}" - - "(#{PhoneNumber.area_code}) #{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number} x#{PhoneNumber.extension}" - - "1-#{PhoneNumber.area_code}-#{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number} x#{PhoneNumber.extension}" - - "#{PhoneNumber.area_code}.#{PhoneNumber.exchange_code}.#{PhoneNumber.subscriber_number} x#{PhoneNumber.extension}" + - "#{area_code}-#{exchange_code}-#{subscriber_number}" + - "(#{area_code}) #{exchange_code}-#{subscriber_number}" + - "-#{area_code}-#{exchange_code}-#{subscriber_number}" + - "#{area_code}.#{exchange_code}.#{subscriber_number}" + - "#{area_code}-#{exchange_code}-#{subscriber_number}" + - "(#{area_code}) #{exchange_code}-#{subscriber_number}" + - "-#{area_code}-#{exchange_code}-#{subscriber_number}" + - "#{area_code}.#{exchange_code}.#{subscriber_number}" + - "#{area_code}-#{exchange_code}-#{subscriber_number} x#{extension}" + - "(#{area_code}) #{exchange_code}-#{subscriber_number} x#{extension}" + - "-#{area_code}-#{exchange_code}-#{subscriber_number} x#{extension}" + - "#{area_code}.#{exchange_code}.#{subscriber_number} x#{extension}" + - "#{area_code}-#{exchange_code}-#{subscriber_number} x#{extension}" + - "(#{area_code}) #{exchange_code}-#{subscriber_number} x#{extension}" + - "-#{area_code}-#{exchange_code}-#{subscriber_number} x#{extension}" + - "#{area_code}.#{exchange_code}.#{subscriber_number} x#{extension}" + - "#{area_code}-#{exchange_code}-#{subscriber_number} x#{extension}" + - "(#{area_code}) #{exchange_code}-#{subscriber_number} x#{extension}" + - "-#{area_code}-#{exchange_code}-#{subscriber_number} x#{extension}" + - "#{area_code}.#{exchange_code}.#{subscriber_number} x#{extension}" + cell_phone: + formats: + - "#{area_code}-#{exchange_code}-#{subscriber_number}" + - "(#{area_code}) #{exchange_code}-#{subscriber_number}" + - "-#{area_code}-#{exchange_code}-#{subscriber_number}" + - "#{area_code}.#{exchange_code}.#{subscriber_number}" + - "#{area_code}-#{exchange_code}-#{subscriber_number}" + - "(#{area_code}) #{exchange_code}-#{subscriber_number}" + - "-#{area_code}-#{exchange_code}-#{subscriber_number}" + - "#{area_code}.#{exchange_code}.#{subscriber_number}" + + country_code: + - '1' + company: suffix: [SARL, SA, EURL, SAS, SEM, SCOP, GIE, EI] # Buzzword wordlist from http://www.1728.com/buzzword.htm