From f85d136bf293642ebaeb192d82a788ab90c58051 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Mon, 24 Jan 2022 01:13:53 +0100 Subject: [PATCH] Correct rendering of UK-addresses preview --- assets/themes/uk_addresses/uk_addresses.json | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/assets/themes/uk_addresses/uk_addresses.json b/assets/themes/uk_addresses/uk_addresses.json index 03486bd28f..9d5931105f 100644 --- a/assets/themes/uk_addresses/uk_addresses.json +++ b/assets/themes/uk_addresses/uk_addresses.json @@ -6,6 +6,9 @@ "it": "Indirizzi UK", "id": "Alamat Inggris" }, + "mustHaveLanguage": [ + "en" + ], "shortDescription": { "en": "Help to build an open dataset of UK addresses", "de": "Helfen Sie beim Aufbau eines offenen Datensatzes britischer Adressen", @@ -406,8 +409,14 @@ { "id": "preview", "render": { - "en": "To send a letter to this addres, you would write:
Name of the inhabitant
{addr:housename}
{addr:unit} {addr:housenumber} {addr:street}
{addr:place}
Suburb
Town
Postal code
" - } + "en": "To send a letter to this address, you would write:
Name of the inhabitant
{addr:unit} {addr:housename}
{addr:housenumber} {addr:street}
Suburb
Town
Postal code
" + }, + "mappings": [ + { + "if": "addr:place~*", + "then": "To send a letter to this address, you would write:
Name of the inhabitant
{addr:unit} {addr:housename}
{addr:housenumber} {addr:place}
{addr:street}
Suburb
Town
Postal code
" + } + ] } ], "mapRendering": [