Skip to content

Commit

Permalink
Merge pull request #22 from crishoj/update-i18n-data
Browse files Browse the repository at this point in the history
Update i18n data
  • Loading branch information
adamlc authored Aug 7, 2023
2 parents 4427f9c + e999e1f commit 0496f38
Show file tree
Hide file tree
Showing 257 changed files with 315 additions and 268 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: PHP Composer

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Run test suite
run: composer run-script test
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
"require" : {
"php" : ">=5.3.0"
},

"require-dev": {
"phpunit/phpunit": "^9.0"
},
"scripts": {
"test": "vendor/bin/phpunit"
},
"autoload" : {
"psr-0" : {
"Adamlc\\AddressFormat": "src/"
Expand Down
1 change: 0 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
>
<testsuites>
<testsuite name="AddressFormat Test Suite">
Expand Down
4 changes: 2 additions & 2 deletions src/Adamlc/AddressFormat/PopulateLocales.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ class PopulateLocales
/**
* Locale Data URL - this is used to parse the list of available countries
*
* (default value: 'http://i18napis.appspot.com/address/data')
* (default value: 'https://chromium-i18n.appspot.com/ssl-address/data')
*
* @var string
* @access private
*/
private $locale_data_url = 'http://i18napis.appspot.com/address/data';
private $locale_data_url = 'https://chromium-i18n.appspot.com/ssl-address/data';

/**
* Function to fetch data from Google API and populate local files.
Expand Down
2 changes: 1 addition & 1 deletion src/Adamlc/AddressFormat/i18n/AC.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"zip": "ASCN 1ZZ", "zipex": "ASCN 1ZZ", "id": "data/AC", "key": "AC", "name": "ASCENSION ISLAND"}
{"id":"data/AC","key":"AC","name":"ASCENSION ISLAND","fmt":"%N%n%O%n%A%n%C%n%Z","zip":"ASCN 1ZZ","zipex":"ASCN 1ZZ"}
2 changes: 1 addition & 1 deletion src/Adamlc/AddressFormat/i18n/AD.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"lang": "ca", "upper": "S", "sub_zipexs": "AD500~AD100~AD200~AD700~AD400~AD300~AD600", "zipex": "AD100,AD501,AD700", "sub_zips": "AD50[01]~AD10[01]~AD20[01]~AD70[01]~AD40[01]~AD30[01]~AD60[01]", "zip": "AD[1-7]0\\d", "fmt": "%N%n%O%n%A%n%Z %S", "posturl": "http://www.correos.es/comun/CodigosPostales/1010_s-CodPostal.asp?Provincia=", "state_name_type": "parish", "languages": "ca", "sub_keys": "ANDORRA LA VELLA~CANILLO~ENCAMP~ESCALDES ENGORDANY~LAMASSANA~ORDINO~SANT JULIA DE LORIA", "key": "AD", "sub_isoids": "07~02~03~08~04~05~06", "require": "AS", "id": "data/AD", "sub_names": "Andorra la Vella~Canillo~Encamp~Escaldes Engordany~Lamassana~Ordino~Sant Julia de Loria", "name": "ANDORRA"}
{"id":"data/AD","key":"AD","name":"ANDORRA","lang":"ca","languages":"ca","fmt":"%N%n%O%n%A%n%Z %C","zip":"AD[1-7]0\\d","zipex":"AD100,AD501,AD700","posturl":"http://www.correos.es/comun/CodigosPostales/1010_s-CodPostal.asp?Provincia=","sub_keys":"Parròquia d'Andorra la Vella~Canillo~Encamp~Escaldes-Engordany~La Massana~Ordino~Sant Julià de Lòria","sub_names":"Andorra la Vella~Canillo~Encamp~Escaldes-Engordany~La Massana~Ordino~Sant Julià de Lòria","sub_zips":"AD50[01]~AD10[01]~AD20[01]~AD70[01]~AD40[01]~AD30[01]~AD60[01]","sub_zipexs":"AD500~AD100~AD200~AD700~AD400~AD300~AD600","sub_isoids":"07~02~03~08~04~05~06"}
2 changes: 1 addition & 1 deletion src/Adamlc/AddressFormat/i18n/AE.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"fmt": "%N%n%O%n%A%n%C", "require": "AC", "id": "data/AE", "key": "AE", "name": "UNITED ARAB EMIRATES"}
{"id":"data/AE","key":"AE","name":"UNITED ARAB EMIRATES","lang":"ar","languages":"ar","fmt":"%N%n%O%n%A%n%S","lfmt":"%N%n%O%n%A%n%S","require":"AS","state_name_type":"emirate","sub_keys":"أبو ظبي~إمارة الشارقةّ~الفجيرة~ام القيوين~إمارة دبيّ~إمارة رأس الخيمة~عجمان","sub_names":"أبو ظبي~الشارقة~الفجيرة~ام القيوين~دبي~رأس الخيمة~عجمان","sub_lnames":"Abu Dhabi~Sharjah~Fujairah~Umm Al Quwain~Dubai~Ras al Khaimah~Ajman","sub_isoids":"AZ~SH~FU~UQ~DU~RK~AJ"}
2 changes: 1 addition & 1 deletion src/Adamlc/AddressFormat/i18n/AF.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"zipex": "1001,2601,3801", "key": "AF", "zip": "\\d{4}", "posturl": "http://afghanpost.gov.af/Postal%20Code/", "id": "data/AF", "name": "AFGHANISTAN"}
{"id":"data/AF","key":"AF","name":"AFGHANISTAN","fmt":"%N%n%O%n%A%n%C%n%Z","zip":"\\d{4}","zipex":"1001,2601,3801"}
2 changes: 1 addition & 1 deletion src/Adamlc/AddressFormat/i18n/AG.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"require": "A", "id": "data/AG", "key": "AG", "name": "ANTIGUA AND BARBUDA"}
{"id":"data/AG","key":"AG","name":"ANTIGUA AND BARBUDA","require":"A"}
2 changes: 1 addition & 1 deletion src/Adamlc/AddressFormat/i18n/AI.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"zip": "2640", "zipex": "2640", "id": "data/AI", "key": "AI", "name": "ANGUILLA"}
{"id":"data/AI","key":"AI","name":"ANGUILLA","fmt":"%N%n%O%n%A%n%C%n%Z","zip":"(?:AI-)?2640","zipex":"2640"}
2 changes: 1 addition & 1 deletion src/Adamlc/AddressFormat/i18n/AL.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"zip": "\\d{4}", "zipex": "1001,1017,3501", "id": "data/AL", "key": "AL", "name": "ALBANIA"}
{"id":"data/AL","key":"AL","name":"ALBANIA","fmt":"%N%n%O%n%A%n%Z%n%C","zip":"\\d{4}","zipex":"1001,1017,3501"}
2 changes: 1 addition & 1 deletion src/Adamlc/AddressFormat/i18n/AM.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"lang": "hy", "sub_zipexs": "0201,0514~0601,0823~0901,1149~1201,1626~0000,0099~1701,2117~2201,2506~2601,3126~3201,3519~3601,3810~3901,4216", "zipex": "375010,0002,0010", "name": "ARMENIA", "zip": "(37)?\\d{4}", "fmt": "%N%n%O%n%A%n%Z%n%C%n%S", "languages": "hy", "lfmt": "%N%n%O%n%A%n%Z%n%C%n%S", "sub_lnames": "Aragatsotn~Ararat~Armavir~Gegharkunik~Yerevan~Lori~Kotayk~Shirak~Syunik~Vayots Dzor~Tavush", "sub_keys": "Արագածոտն~Արարատ~Արմավիր~Գեղարքունիք~Երևան~Լոռի~Կոտայք~Շիրակ~Սյունիք~Վայոց ձոր~Տավուշ", "key": "AM", "sub_isoids": "AG~AR~AV~GR~ER~LO~KT~SH~SU~VD~TV", "id": "data/AM", "sub_zips": "0[2-5]~0[6-8]~09|1[01]~1[2-6]~00~1[7-9]|2[01]~2[2-5]~2[6-9]|3[01]~3[2-5]~3[6-8]~39|4[0-2]"}
{"id":"data/AM","key":"AM","name":"ARMENIA","lang":"hy","languages":"hy","fmt":"%N%n%O%n%A%n%Z%n%C%n%S","lfmt":"%N%n%O%n%A%n%Z%n%C%n%S","zip":"(?:37)?\\d{4}","zipex":"375010,0002,0010","sub_keys":"Արագածոտն~Արարատ~Արմավիր~Գեղարքունիք~Երևան~Լոռի~Կոտայք~Շիրակ~Սյունիք~Վայոց ձոր~Տավուշ","sub_lnames":"Aragatsotn~Ararat~Armavir~Gegharkunik~Yerevan~Lori~Kotayk~Shirak~Syunik~Vayots Dzor~Tavush","sub_zips":"0[2-5]~0[6-8]~09|1[01]~1[2-6]~00~1[7-9]|2[01]~2[2-5]~2[6-9]|3[01]~3[2-5]~3[6-8]~39|4[0-2]","sub_zipexs":"0201,0514~0601,0823~0901,1149~1201,1626~0000,0099~1701,2117~2201,2506~2601,3126~3201,3519~3601,3810~3901,4216","sub_isoids":"AG~AR~AV~GR~ER~LO~KT~SH~SU~VD~TV"}
2 changes: 1 addition & 1 deletion src/Adamlc/AddressFormat/i18n/AO.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"id": "data/AO", "key": "AO", "name": "ANGOLA"}
{"id":"data/AO","key":"AO","name":"ANGOLA"}
2 changes: 1 addition & 1 deletion src/Adamlc/AddressFormat/i18n/AQ.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"id": "data/AQ", "key": "AQ", "name": "ANTARCTICA"}
{"id":"data/AQ","key":"AQ","name":"ANTARCTICA"}
2 changes: 1 addition & 1 deletion src/Adamlc/AddressFormat/i18n/AR.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"lang": "es", "upper": "ACZ", "zipex": "C1070AAM,C1000WAM,B1000TBU,X5187XAB", "name": "ARGENTINA", "zip": "((?:[A-HJ-NP-Z])?\\d{4})([A-Z]{3})?", "fmt": "%N%n%O%n%A%n%Z %C%n%S", "state_name_type": "state", "languages": "es", "sub_keys": "Buenos Aires~Catamarca~Chaco~Chubut~Ciudad Autónoma de Buenos Aires~Córdoba~Corrientes~Entre Ríos~Formosa~Jujuy~La Pampa~La Rioja~Mendoza~Misiones~Neuquén~Río Negro~Salta~San Juan~San Luis~Santa Cruz~Santa Fe~Santiago del Estero~Tierra del Fuego~Tucumán", "key": "AR", "sub_isoids": "B~K~H~U~C~X~W~E~P~Y~L~F~M~N~Q~R~A~J~D~Z~S~G~V~T", "posturl": "http://www.correoargentino.com.ar/formularios/cpa", "id": "data/AR", "sub_names": "Buenos Aires~Catamarca~Chaco~Chubut~Ciudad de Buenos Aires~Córdoba~Corrientes~Entre Ríos~Formosa~Jujuy~La Pampa~La Rioja~Mendoza~Misiones~Neuquén~Río Negro~Salta~San Juan~San Luis~Santa Cruz~Santa Fe~Santiago del Estero~Tierra del Fuego~Tucumán", "sub_zips": "B?[1-36-8]~K?[45]~H?3~U?[89]~C?1~X?[235-8]~W?3~E?[1-3]~P?[37]~Y?4~L?[3568]~F?5~M?[56]~N?3~Q?[38]~R?[89]~A?[34]~J?5~D?[4-6]~Z?[89]~S?[2368]~G?[2-5]~V?9~T?[45]"}
{"id":"data/AR","key":"AR","name":"ARGENTINA","lang":"es","languages":"es","fmt":"%N%n%O%n%A%n%Z %C%n%S","upper":"ACZ","zip":"((?:[A-HJ-NP-Z])?\\d{4})([A-Z]{3})?","zipex":"C1070AAM,C1000WAM,B1000TBU,X5187XAB","posturl":"http://www.correoargentino.com.ar/formularios/cpa","sub_keys":"Buenos Aires~Catamarca~Chaco~Chubut~Ciudad Autónoma de Buenos Aires~Córdoba~Corrientes~Entre Ríos~Formosa~Jujuy~La Pampa~La Rioja~Mendoza~Misiones~Neuquén~Río Negro~Salta~San Juan~San Luis~Santa Cruz~Santa Fe~Santiago del Estero~Tierra del Fuego~Tucumán","sub_names":"Buenos Aires~Catamarca~Chaco~Chubut~Ciudad Autónoma de Buenos Aires~Córdoba~Corrientes~Entre Ríos~Formosa~Jujuy~La Pampa~La Rioja~Mendoza~Misiones~Neuquén~Río Negro~Salta~San Juan~San Luis~Santa Cruz~Santa Fe~Santiago del Estero~Tierra del Fuego~Tucumán","sub_zips":"B?[1-36-8]~K?[45]~H?3~U?[89]~C?1~X?[235-8]~W?3~E?[1-3]~P?[37]~Y?4~L?[3568]~F?5~M?[56]~N?3~Q?[38]~R?[89]~A?[34]~J?5~D?[4-6]~Z?[89]~S?[2368]~G?[2-5]~V?9~T?[45]","sub_isoids":"B~K~H~U~C~X~W~E~P~Y~L~F~M~N~Q~R~A~J~D~Z~S~G~V~T"}
2 changes: 1 addition & 1 deletion src/Adamlc/AddressFormat/i18n/AS.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"upper": "ACNOS", "zipex": "96799", "name": "AMERICAN SAMOA", "zip": "(96799)(?:[ \\-](\\d{4}))?", "zip_name_type": "zip", "fmt": "%N%n%O%n%A%n%C %S %Z", "posturl": "http://zip4.usps.com/zip4/welcome.jsp", "state_name_type": "state", "key": "AS", "require": "ACSZ", "id": "data/AS"}
{"id":"data/AS","key":"AS","name":"AMERICAN SAMOA","fmt":"%N%n%O%n%A%n%C %S %Z","require":"ACSZ","upper":"ACNOS","zip":"(96799)(?:[ \\-](\\d{4}))?","zipex":"96799","posturl":"http://zip4.usps.com/zip4/welcome.jsp","zip_name_type":"zip","state_name_type":"state"}
2 changes: 1 addition & 1 deletion src/Adamlc/AddressFormat/i18n/AT.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"zipex": "1010,3741", "name": "AUSTRIA", "zip": "\\d{4}", "fmt": "%O%n%N%n%A%n%Z %C", "id": "data/AT", "key": "AT", "posturl": "http://www.post.at/post_subsite_postleitzahlfinder.php", "require": "ACZ"}
{"id":"data/AT","key":"AT","name":"AUSTRIA","fmt":"%O%n%N%n%A%n%Z %C","require":"ACZ","zip":"\\d{4}","zipex":"1010,3741","posturl":"http://www.post.at/post_subsite_postleitzahlfinder.php"}
2 changes: 1 addition & 1 deletion src/Adamlc/AddressFormat/i18n/AU.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"lang": "en", "upper": "CS", "sub_zipexs": "0200,0299:2540:2600,2618:2620:2900,2999~1000,1999:2000,2999:3500:3585:3586:3644:3707~0800,0999~4000,4999:9000,9999~5000,5999:0872~7000,7999~3000,3999:8000,8999~6000,6999:0872", "zipex": "2060,3171,6430,4000,4006,3001", "sub_zips": "29|2540|260|261[0-8]|02|2620~1|2[0-57-8]|26[2-9]|261[189]|3500|3585|3586|3644|3707~0[89]~[49]~5|0872~7~[38]~6|0872", "zip": "\\d{4}", "fmt": "%O%n%N%n%A%n%C %S %Z", "posturl": "http://www1.auspost.com.au/postcodes/", "state_name_type": "state", "languages": "en", "sub_keys": "ACT~NSW~NT~QLD~SA~TAS~VIC~WA", "key": "AU", "require": "ACSZ", "id": "data/AU", "sub_names": "Australian Capital Territory~New South Wales~Northern Territory~Queensland~South Australia~Tasmania~Victoria~Western Australia", "name": "AUSTRALIA"}
{"id":"data/AU","key":"AU","name":"AUSTRALIA","lang":"en","languages":"en","fmt":"%O%n%N%n%A%n%C %S %Z","require":"ACSZ","upper":"CS","zip":"\\d{4}","zipex":"2060,3171,6430,4000,4006,3001","posturl":"http://www1.auspost.com.au/postcodes/","state_name_type":"state","locality_name_type":"suburb","sub_keys":"ACT~JBT~NSW~NT~QLD~SA~TAS~VIC~WA","sub_names":"Australian Capital Territory~Jervis Bay Territory~New South Wales~Northern Territory~Queensland~South Australia~Tasmania~Victoria~Western Australia","sub_zips":"29|2540|260|261[0-8]|02|2620~2540~1|2[0-57-8]|26[2-9]|261[189]|3500|358[56]|3644|3707~0[89]~[49]~5|0872~7~[38]~6|0872","sub_zipexs":"0200,2540,2618,2999~2540~1000,2888,3585,3707~0800,0999~4000,9999~5000~7000,7999~3000,8000~6000,0872","sub_isoids":"ACT~~NSW~NT~QLD~SA~TAS~VIC~WA"}
2 changes: 1 addition & 1 deletion src/Adamlc/AddressFormat/i18n/AW.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"id": "data/AW", "key": "AW", "name": "ARUBA"}
{"id":"data/AW","key":"AW","name":"ARUBA"}
2 changes: 1 addition & 1 deletion src/Adamlc/AddressFormat/i18n/AX.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"postprefix": "AX-", "zipex": "22150,22550,22240,22710,22270,22730,22430", "name": "FINLAND", "zip": "22\\d{3}", "fmt": "%O%n%N%n%A%nAX-%Z %C%nÅLAND", "require": "ACZ", "key": "AX", "posturl": "http://www.posten.ax/department.con?iPage=123", "id": "data/AX"}
{"id":"data/AX","key":"AX","name":"FINLAND","fmt":"%O%n%N%n%A%nAX-%Z %C%nÅLAND","require":"ACZ","zip":"22\\d{3}","zipex":"22150,22550,22240,22710,22270,22730,22430","posturl":"https://www.alandpost.ax/privat/skicka-brev/postnummer-pa-aland/postnummersokning","postprefix":"AX-"}
2 changes: 1 addition & 1 deletion src/Adamlc/AddressFormat/i18n/AZ.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"postprefix": "AZ ", "zipex": "1000", "name": "AZERBAIJAN", "zip": "\\d{4}", "fmt": "%N%n%O%n%A%nAZ %Z %C", "key": "AZ", "id": "data/AZ"}
{"id":"data/AZ","key":"AZ","name":"AZERBAIJAN","fmt":"%N%n%O%n%A%nAZ %Z %C","zip":"\\d{4}","zipex":"1000","postprefix":"AZ "}
2 changes: 1 addition & 1 deletion src/Adamlc/AddressFormat/i18n/BA.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"zipex": "71000", "name": "BOSNIA AND HERZEGOVINA", "zip": "\\d{5}", "fmt": "%N%n%O%n%A%n%Z %C", "key": "BA", "posturl": "http://www.post.ba/postanski_brojevi.php", "id": "data/BA"}
{"id":"data/BA","key":"BA","name":"BOSNIA AND HERZEGOVINA","fmt":"%N%n%O%n%A%n%Z %C","zip":"\\d{5}","zipex":"71000"}
2 changes: 1 addition & 1 deletion src/Adamlc/AddressFormat/i18n/BB.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"zipex": "BB23026,BB22025", "name": "BARBADOS", "zip": "(?:BB\\d{5})?", "state_name_type": "parish", "key": "BB", "posturl": "http://barbadospostal.com/zipcodes.html", "id": "data/BB"}
{"id":"data/BB","key":"BB","name":"BARBADOS","fmt":"%N%n%O%n%A%n%C, %S %Z","zip":"BB\\d{5}","zipex":"BB23026,BB22025","state_name_type":"parish"}
2 changes: 1 addition & 1 deletion src/Adamlc/AddressFormat/i18n/BD.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"zipex": "1340,1000", "name": "BANGLADESH", "zip": "\\d{4}", "fmt": "%N%n%O%n%A%n%C - %Z", "key": "BD", "posturl": "http://www.bangladeshpost.gov.bd/PostCode.asp", "id": "data/BD"}
{"id":"data/BD","key":"BD","name":"BANGLADESH","fmt":"%N%n%O%n%A%n%C - %Z","zip":"\\d{4}","zipex":"1340,1000","posturl":"https://bdpost.portal.gov.bd/site/page/f41a42bd-2540-4afa-8568-af56443c3df8/-"}
2 changes: 1 addition & 1 deletion src/Adamlc/AddressFormat/i18n/BE.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"zipex": "4000,1000", "name": "BELGIUM", "zip": "\\d{4}", "fmt": "%O%n%N%n%A%n%Z %C", "id": "data/BE", "key": "BE", "posturl": "http://www.post.be/site/nl/residential/customerservice/search/postal_codes.html", "require": "ACZ"}
{"id":"data/BE","key":"BE","name":"BELGIUM","fmt":"%O%n%N%n%A%n%Z %C","require":"ACZ","zip":"\\d{4}","zipex":"4000,1000","posturl":"http://www.post.be/site/nl/residential/customerservice/search/postal_codes.html"}
2 changes: 1 addition & 1 deletion src/Adamlc/AddressFormat/i18n/BF.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"fmt": "%N%n%O%n%A%n%C %X", "id": "data/BF", "key": "BF", "name": "BURKINA FASO"}
{"id":"data/BF","key":"BF","name":"BURKINA FASO","fmt":"%N%n%O%n%A%n%C %X"}
2 changes: 1 addition & 1 deletion src/Adamlc/AddressFormat/i18n/BG.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"zipex": "1000,1700", "name": "BULGARIA (REP.)", "zip": "\\d{4}", "fmt": "%N%n%O%n%A%n%Z %C", "key": "BG", "posturl": "http://www.bgpost.bg/?cid=5", "id": "data/BG"}
{"id":"data/BG","key":"BG","name":"BULGARIA (REP.)","fmt":"%N%n%O%n%A%n%Z %C","zip":"\\d{4}","zipex":"1000,1700","posturl":"http://www.bgpost.bg/?cid=5"}
2 changes: 1 addition & 1 deletion src/Adamlc/AddressFormat/i18n/BH.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"zipex": "317", "name": "BAHRAIN", "zip": "(?:(?:\\d|1[0-2])\\d{2})?", "fmt": "%N%n%O%n%A%n%C %Z", "key": "BH", "id": "data/BH"}
{"id":"data/BH","key":"BH","name":"BAHRAIN","fmt":"%N%n%O%n%A%n%C %Z","zip":"(?:^|\\b)(?:1[0-2]|[1-9])\\d{2}(?:$|\\b)","zipex":"317"}
2 changes: 1 addition & 1 deletion src/Adamlc/AddressFormat/i18n/BI.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"id": "data/BI", "key": "BI", "name": "BURUNDI"}
{"id":"data/BI","key":"BI","name":"BURUNDI"}
2 changes: 1 addition & 1 deletion src/Adamlc/AddressFormat/i18n/BJ.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"upper": "AC", "id": "data/BJ", "key": "BJ", "name": "BENIN"}
{"id":"data/BJ","key":"BJ","name":"BENIN","upper":"AC"}
2 changes: 1 addition & 1 deletion src/Adamlc/AddressFormat/i18n/BL.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"upper": "ACX", "zipex": "97100", "name": "SAINT BARTHELEMY", "zip": "9[78][01]\\d{2}", "fmt": "%O%n%N%n%A%n%Z %C %X", "id": "data/BL", "key": "BL", "posturl": "http://www.laposte.fr/Particulier/Utiliser-nos-outils-pratiques/Outils-et-documents/Trouvez-un-code-postal", "require": "ACZ"}
{"id":"data/BL","key":"BL","name":"SAINT BARTHELEMY","fmt":"%O%n%N%n%A%n%Z %C %X","require":"ACZ","upper":"ACX","zip":"9[78][01]\\d{2}","zipex":"97100","posturl":"http://www.laposte.fr/Particulier/Utiliser-nos-outils-pratiques/Outils-et-documents/Trouvez-un-code-postal"}
2 changes: 1 addition & 1 deletion src/Adamlc/AddressFormat/i18n/BM.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"zipex": "FL 07,HM GX,HM 12", "name": "BERMUDA", "zip": "[A-Z]{2}[ ]?[A-Z0-9]{2}", "fmt": "%N%n%O%n%A%n%C %Z", "key": "BM", "posturl": "http://www.landvaluation.bm/", "id": "data/BM"}
{"id":"data/BM","key":"BM","name":"BERMUDA","fmt":"%N%n%O%n%A%n%C %Z","zip":"[A-Z]{2} ?[A-Z0-9]{2}","zipex":"FL 07,HM GX,HM 12","posturl":"http://www.landvaluation.bm/"}
2 changes: 1 addition & 1 deletion src/Adamlc/AddressFormat/i18n/BN.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"zipex": "BT2328,KA1131,BA1511", "name": "BRUNEI DARUSSALAM", "zip": "[A-Z]{2}[ ]?\\d{4}", "fmt": "%N%n%O%n%A%n%C %Z", "key": "BN", "posturl": "http://www.post.gov.bn/index.php/extensions/postcode-guide", "id": "data/BN"}
{"id":"data/BN","key":"BN","name":"BRUNEI DARUSSALAM","fmt":"%N%n%O%n%A%n%C %Z","zip":"[A-Z]{2} ?\\d{4}","zipex":"BT2328,KA1131,BA1511","posturl":"http://www.post.gov.bn/SitePages/postcodes.aspx"}
2 changes: 1 addition & 1 deletion src/Adamlc/AddressFormat/i18n/BO.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"upper": "AC", "id": "data/BO", "key": "BO", "name": "BOLIVIA"}
{"id":"data/BO","key":"BO","name":"BOLIVIA","upper":"AC"}
1 change: 1 addition & 0 deletions src/Adamlc/AddressFormat/i18n/BQ.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"id":"data/BQ","key":"BQ","name":"BONAIRE, SINT EUSTATIUS, AND SABA"}
Loading

0 comments on commit 0496f38

Please sign in to comment.