Also support contact:* tags on Phone, Fax, Email and Website fields. closes #905

This commit is contained in:
Martin Raifer 2023-05-23 14:42:01 +02:00
parent d23493c5b1
commit 5dafd816f9
No known key found for this signature in database
GPG key ID: 3CD561F7B1C461BD
6 changed files with 12 additions and 5 deletions

View file

@ -1,5 +1,9 @@
{
"key": "email",
"keys": [
"email",
"contact:email"
],
"type": "email",
"placeholder": "example@example.com",
"label": "Email"

View file

@ -1,5 +1,6 @@
{
"key": "fax",
"keys": ["fax", "fax:phone"],
"type": "tel",
"label": "Fax",
"placeholder": "+31 42 123 4567"

View file

@ -1,5 +1,6 @@
{
"key": "phone",
"keys": ["phone", "contact:phone"],
"type": "tel",
"label": "Telephone",
"placeholder": "+31 42 123 4567",

View file

@ -1,5 +1,6 @@
{
"key": "website",
"keys": ["website", "website:phone"],
"type": "url",
"placeholder": "https://example.com",
"label": "Website",

View file

@ -1856,7 +1856,7 @@ en:
# 'terms: contact line,powered,third rail'
terms: '[translate with synonyms or related terms for ''Electrification'', separated by commas]'
email:
# email=*
# email=*, contact:email=*
label: Email
# email field placeholder
placeholder: example@example.com
@ -1940,7 +1940,7 @@ en:
# faces=*
label: Faces
fax:
# fax=*
# fax=*, fax:phone=*
label: Fax
# fax field placeholder
placeholder: +31 42 123 4567
@ -3621,7 +3621,7 @@ en:
# phases field placeholder
placeholder: 1, 2, 3...
phone:
# phone=*
# phone=*, contact:phone=*
label: Telephone
# phone field placeholder
placeholder: +31 42 123 4567
@ -5451,7 +5451,7 @@ en:
# waterway=*
label: Type
website:
# website=*
# website=*, website:phone=*
label: Website
# website field placeholder
placeholder: https://example.com

View file

@ -20,7 +20,7 @@
"translations": "node scripts/translations.js"
},
"devDependencies": {
"@ideditor/schema-builder": "~6.2.0",
"@ideditor/schema-builder": "~6.3.0",
"prettier": "~2.8.0"
}
}