From b43a7edbcd117c6b9ad58e4473c988a4ccea1020 Mon Sep 17 00:00:00 2001 From: Flo Edelmann Date: Fri, 23 Oct 2020 19:39:14 +0200 Subject: [PATCH] Add mappings for colour (and use Brithish English) --- assets/themes/benches/benches.json | 80 ++++++++++++++++++++++++++++-- 1 file changed, 77 insertions(+), 3 deletions(-) diff --git a/assets/themes/benches/benches.json b/assets/themes/benches/benches.json index e517258..0c913c7 100644 --- a/assets/themes/benches/benches.json +++ b/assets/themes/benches/benches.json @@ -171,16 +171,90 @@ }, { "render": { - "en": "Color: {colour}", + "en": "Colour: {colour}", "de": "Farbe: {colour}" }, "question": { - "en": "Which color does this bench have?", + "en": "Which colour does this bench have?", "de": "Welche Farbe hat diese Sitzbank?" }, "freeform": { "key": "colour" - } + }, + "mappings": [ + { + "if": { + "and": ["colour=brown"] + }, + "then": { + "en": "Colour: brown", + "de": "Farbe: braun" + } + }, + { + "if": { + "and": ["colour=green"] + }, + "then": { + "en": "Colour: green", + "de": "Farbe: grün" + } + }, + { + "if": { + "and": ["colour=gray"] + }, + "then": { + "en": "Colour: gray", + "de": "Farbe: grau" + } + }, + { + "if": { + "and": ["colour=white"] + }, + "then": { + "en": "Colour: white", + "de": "Farbe: weiß" + } + }, + { + "if": { + "and": ["colour=red"] + }, + "then": { + "en": "Colour: red", + "de": "Farbe: rot" + } + }, + { + "if": { + "and": ["colour=black"] + }, + "then": { + "en": "Colour: black", + "de": "Farbe: schwarz" + } + }, + { + "if": { + "and": ["colour=blue"] + }, + "then": { + "en": "Colour: blue", + "de": "Farbe: blau" + } + }, + { + "if": { + "and": ["colour=yellow"] + }, + "then": { + "en": "Colour: yellow", + "de": "Farbe: gelb" + } + } + ] } ], "hideUnderlayingFeaturesMinPercentage": 0,