Fix various small typos
This commit is contained in:
parent
6a254e10e5
commit
137e25037c
5 changed files with 24 additions and 1 deletions
|
@ -93,6 +93,10 @@ export default class TagRenderingConfig {
|
||||||
if (this.question && this.freeform?.key === undefined && this.mappings === undefined) {
|
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}`
|
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 (json.multiAnswer) {
|
||||||
if ((this.mappings?.length ?? 0) === 0) {
|
if ((this.mappings?.length ?? 0) === 0) {
|
||||||
|
|
|
@ -122,6 +122,7 @@
|
||||||
"freeform": {
|
"freeform": {
|
||||||
"key": "brand"
|
"key": "brand"
|
||||||
},
|
},
|
||||||
|
"render": "{brand} tubes are sold here",
|
||||||
"mappings": [
|
"mappings": [
|
||||||
{
|
{
|
||||||
"if": "brand=Continental",
|
"if": "brand=Continental",
|
||||||
|
@ -137,10 +138,15 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"question": "Who maintains this vending machine?",
|
"question": "Who maintains this vending machine?",
|
||||||
|
"render": "This vending machine is maintained by {operator}",
|
||||||
"mappings": [
|
"mappings": [
|
||||||
{
|
{
|
||||||
"if": "operator=Schwalbe",
|
"if": "operator=Schwalbe",
|
||||||
"then": "Maintained by Schwalbe"
|
"then": "Maintained by Schwalbe"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "operator=Continental",
|
||||||
|
"then": "Maintained by Continental"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"freeform": {
|
"freeform": {
|
||||||
|
@ -165,6 +171,10 @@
|
||||||
{
|
{
|
||||||
"if": "vending:bicycle_pump=yes",
|
"if": "vending:bicycle_pump=yes",
|
||||||
"then": "Bicycle pumps are sold here"
|
"then": "Bicycle pumps are sold here"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "vending:bicycle_lock=yes",
|
||||||
|
"then": "Bicycle locks are sold here"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"multiAnswer": true
|
"multiAnswer": true
|
||||||
|
|
|
@ -163,7 +163,7 @@
|
||||||
"then": {
|
"then": {
|
||||||
"en": "There are both tools and a pump present",
|
"en": "There are both tools and a pump present",
|
||||||
"nl": "Er is zowel een pomp als gereedschap aanwezig",
|
"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",
|
"gl": "Hai ferramentas e unha bomba de ar presentes",
|
||||||
"de": "Es sind sowohl Werkzeuge als auch eine Pumpe vorhanden"
|
"de": "Es sind sowohl Werkzeuge als auch eine Pumpe vorhanden"
|
||||||
}
|
}
|
||||||
|
|
|
@ -188,6 +188,10 @@
|
||||||
"en": "On which level is this camera located?",
|
"en": "On which level is this camera located?",
|
||||||
"nl": "Op welke verdieping bevindt deze camera zich?"
|
"nl": "Op welke verdieping bevindt deze camera zich?"
|
||||||
},
|
},
|
||||||
|
"render": {
|
||||||
|
"en": "Located on level {level}",
|
||||||
|
"nl": "Bevindt zich op verdieping {level}"
|
||||||
|
},
|
||||||
"freeform": {
|
"freeform": {
|
||||||
"key": "level",
|
"key": "level",
|
||||||
"type": "nat"
|
"type": "nat"
|
||||||
|
@ -287,6 +291,10 @@
|
||||||
"en": "How is this camera placed?",
|
"en": "How is this camera placed?",
|
||||||
"nl": "Hoe is deze camera geplaatst?"
|
"nl": "Hoe is deze camera geplaatst?"
|
||||||
},
|
},
|
||||||
|
"render": {
|
||||||
|
"en": "Mounting method: {mount}",
|
||||||
|
"nl": "Montage: {mount}"
|
||||||
|
},
|
||||||
"freeform": {
|
"freeform": {
|
||||||
"key": "camera:mount"
|
"key": "camera:mount"
|
||||||
},
|
},
|
||||||
|
|
|
@ -97,6 +97,7 @@
|
||||||
"key": "opening_hours",
|
"key": "opening_hours",
|
||||||
"type": "opening_hours"
|
"type": "opening_hours"
|
||||||
},
|
},
|
||||||
|
"render": "{opening_hours_table(opening_hours)}",
|
||||||
"question": {
|
"question": {
|
||||||
"nl": "Op welke uren is deze speeltuin toegankelijk?"
|
"nl": "Op welke uren is deze speeltuin toegankelijk?"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue