Skip to content

Commit

Permalink
Adding japanese address scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
MKuranowski committed Jan 2, 2017
1 parent 9ff18af commit 5102782
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 1 deletion.
4 changes: 4 additions & 0 deletions data/address-formats.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
{
"countryCodes": ["tw"],
"format": [["postcode", "city", "district"], ["place", "street"], ["housenumber", "floor"]]
},
{
"countryCodes": ["jp"],
"format": [["province", "county"], ["city", "suburb", "quarter"], ["neighbourhood", "block_number", "housenumber"]]
}
]
}
6 changes: 5 additions & 1 deletion data/presets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,24 @@ en:
# access=*
label: Access
address:
# 'addr:city=*, addr:conscriptionnumber=*, addr:country=*, addr:district=*, addr:floor=*, addr:hamlet=*, addr:housename=*, addr:housenumber=*, addr:place=*, addr:postcode=*, addr:province=*, addr:state=*, addr:street=*, addr:subdistrict=*, addr:suburb=*'
# 'addr:block_number=*, addr:city=*, addr:conscriptionnumber=*, addr:county=*, addr:country=*, addr:district=*, addr:floor=*, addr:hamlet=*, addr:housename=*, addr:housenumber=*, addr:neighbourhood=*, addr:place=*, addr:postcode=*, addr:province=*, addr:quarter=*, addr:state=*, addr:street=*, addr:subdistrict=*, addr:suburb=*'
label: Address
placeholders:
block_number: Block number
city: City
conscriptionnumber: '123'
country: Country
county: County
district: District
floor: Floor
hamlet: Hamlet
housename: Housename
housenumber: '123'
neighbourhood: Neighbourhood
place: Place
postcode: Postcode
province: Province
quarter: Quarter
state: State
street: Street
subdistrict: Subdistrict
Expand Down
8 changes: 8 additions & 0 deletions data/presets/fields.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,21 @@
"address": {
"type": "address",
"keys": [
"addr:block_number",
"addr:city",
"addr:conscriptionnumber",
"addr:county",
"addr:country",
"addr:district",
"addr:floor",
"addr:hamlet",
"addr:housename",
"addr:housenumber",
"addr:neighbourhood",
"addr:place",
"addr:postcode",
"addr:province",
"addr:quarter",
"addr:state",
"addr:street",
"addr:subdistrict",
Expand All @@ -103,17 +107,21 @@
"label": "Address",
"strings": {
"placeholders": {
"block_number": "Block number",
"city": "City",
"conscriptionnumber": "123",
"county": "County",
"country": "Country",
"district": "District",
"floor": "Floor",
"hamlet": "Hamlet",
"housename": "Housename",
"housenumber": "123",
"neighbourhood": "Neighbourhood",
"place": "Place",
"postcode": "Postcode",
"province": "Province",
"quarter": "Quarter",
"state": "State",
"street": "Street",
"subdistrict": "Subdistrict",
Expand Down
8 changes: 8 additions & 0 deletions data/presets/fields/address.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
{
"type": "address",
"keys": [
"addr:block_number",
"addr:city",
"addr:conscriptionnumber",
"addr:county",
"addr:country",
"addr:district",
"addr:floor",
"addr:hamlet",
"addr:housename",
"addr:housenumber",
"addr:neighbourhood",
"addr:place",
"addr:postcode",
"addr:province",
"addr:quarter",
"addr:state",
"addr:street",
"addr:subdistrict",
Expand All @@ -23,17 +27,21 @@
"label": "Address",
"strings": {
"placeholders": {
"block_number": "Block number",
"city": "City",
"conscriptionnumber": "123",
"county": "County",
"country": "Country",
"district": "District",
"floor": "Floor",
"hamlet": "Hamlet",
"housename": "Housename",
"housenumber": "123",
"neighbourhood": "Neighbourhood",
"place": "Place",
"postcode": "Postcode",
"province": "Province",
"quarter": "Quarter",
"state": "State",
"street": "Street",
"subdistrict": "Subdistrict",
Expand Down
4 changes: 4 additions & 0 deletions dist/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -703,17 +703,21 @@
"address": {
"label": "Address",
"placeholders": {
"block_number": "Block number",
"city": "City",
"conscriptionnumber": "123",
"county": "County",
"country": "Country",
"district": "District",
"floor": "Floor",
"hamlet": "Hamlet",
"housename": "Housename",
"housenumber": "123",
"neighbourhood": "Neighbourhood",
"place": "Place",
"postcode": "Postcode",
"province": "Province",
"quarter": "Quarter",
"state": "State",
"street": "Street",
"subdistrict": "Subdistrict",
Expand Down

0 comments on commit 5102782

Please sign in to comment.