Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Japanese address scheme #3712

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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": [["postcode", "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