diff --git a/Customizations/JSON/TagRenderingConfig.ts b/Customizations/JSON/TagRenderingConfig.ts index 5817bb5..b06d063 100644 --- a/Customizations/JSON/TagRenderingConfig.ts +++ b/Customizations/JSON/TagRenderingConfig.ts @@ -93,6 +93,10 @@ export default class TagRenderingConfig { if (this.question && this.freeform?.key === undefined && this.mappings === undefined) { throw `A question is defined, but no mappings nor freeform (key) are. The question is ${this.question.txt} at ${context}` } + + if(this.freeform && this.render === undefined){ + throw `Detected a freeform key without rendering... Key: ${this.freeform.key} in ${context}` + } if (json.multiAnswer) { if ((this.mappings?.length ?? 0) === 0) { diff --git a/assets/layers/bicycle_tube_vending_machine/bicycle_tube_vending_machine.json b/assets/layers/bicycle_tube_vending_machine/bicycle_tube_vending_machine.json index 105d881..3b0b816 100644 --- a/assets/layers/bicycle_tube_vending_machine/bicycle_tube_vending_machine.json +++ b/assets/layers/bicycle_tube_vending_machine/bicycle_tube_vending_machine.json @@ -122,6 +122,7 @@ "freeform": { "key": "brand" }, + "render": "{brand} tubes are sold here", "mappings": [ { "if": "brand=Continental", @@ -137,10 +138,15 @@ }, { "question": "Who maintains this vending machine?", + "render": "This vending machine is maintained by {operator}", "mappings": [ { "if": "operator=Schwalbe", "then": "Maintained by Schwalbe" + }, + { + "if": "operator=Continental", + "then": "Maintained by Continental" } ], "freeform": { @@ -165,6 +171,10 @@ { "if": "vending:bicycle_pump=yes", "then": "Bicycle pumps are sold here" + }, + { + "if": "vending:bicycle_lock=yes", + "then": "Bicycle locks are sold here" } ], "multiAnswer": true diff --git a/assets/layers/bike_repair_station/bike_repair_station.json b/assets/layers/bike_repair_station/bike_repair_station.json index 18a6638..207dfa1 100644 --- a/assets/layers/bike_repair_station/bike_repair_station.json +++ b/assets/layers/bike_repair_station/bike_repair_station.json @@ -163,7 +163,7 @@ "then": { "en": "There are both tools and a pump present", "nl": "Er is zowel een pomp als gereedschap aanwezig", - "fr": "IL y a des outils et une pompe", + "fr": "Il y a des outils et une pompe", "gl": "Hai ferramentas e unha bomba de ar presentes", "de": "Es sind sowohl Werkzeuge als auch eine Pumpe vorhanden" } diff --git a/assets/layers/surveillance_cameras/surveillance_cameras.json b/assets/layers/surveillance_cameras/surveillance_cameras.json index cc8b5b0..f65537c 100644 --- a/assets/layers/surveillance_cameras/surveillance_cameras.json +++ b/assets/layers/surveillance_cameras/surveillance_cameras.json @@ -188,6 +188,10 @@ "en": "On which level is this camera located?", "nl": "Op welke verdieping bevindt deze camera zich?" }, + "render": { + "en": "Located on level {level}", + "nl": "Bevindt zich op verdieping {level}" + }, "freeform": { "key": "level", "type": "nat" @@ -287,6 +291,10 @@ "en": "How is this camera placed?", "nl": "Hoe is deze camera geplaatst?" }, + "render": { + "en": "Mounting method: {mount}", + "nl": "Montage: {mount}" + }, "freeform": { "key": "camera:mount" }, diff --git a/assets/themes/playgrounds/playgrounds.json b/assets/themes/playgrounds/playgrounds.json index 759308b..eaa4bef 100644 --- a/assets/themes/playgrounds/playgrounds.json +++ b/assets/themes/playgrounds/playgrounds.json @@ -97,6 +97,7 @@ "key": "opening_hours", "type": "opening_hours" }, + "render": "{opening_hours_table(opening_hours)}", "question": { "nl": "Op welke uren is deze speeltuin toegankelijk?" },