diff --git a/assets/layers/crossings/crossings.json b/assets/layers/crossings/crossings.json index 0d033f2d7..876656d1f 100644 --- a/assets/layers/crossings/crossings.json +++ b/assets/layers/crossings/crossings.json @@ -97,7 +97,6 @@ } ], "tagRenderings": [ - "images", { "question": { "en": "What kind of crossing is this?", diff --git a/assets/layers/food/food.json b/assets/layers/food/food.json index cb2aa258f..9c5ce26fd 100644 --- a/assets/layers/food/food.json +++ b/assets/layers/food/food.json @@ -182,7 +182,6 @@ "phone", "payment-options", "wheelchair-access", - "dog-access", { "#": "Cuisine", "question": { @@ -551,7 +550,8 @@ } ], "condition": "cuisine=friture" - } + }, + "dog-access" ], "filter": [ { diff --git a/assets/themes/cyclestreets/cyclestreets.json b/assets/themes/cyclestreets/cyclestreets.json index 9d09f0c7a..45ad1a90c 100644 --- a/assets/themes/cyclestreets/cyclestreets.json +++ b/assets/themes/cyclestreets/cyclestreets.json @@ -68,7 +68,7 @@ ] }, "then": { - "nl": "Deze straat is een fietsstraat", + "nl": "Deze straat i een fietsstraat", "en": "This street is a cyclestreet", "ja": "この通りはcyclestreetだ", "nb_NO": "Denne gaten er en sykkelvei" diff --git a/langs/shared-questions/en.json b/langs/shared-questions/en.json index 9821d4039..709534fcc 100644 --- a/langs/shared-questions/en.json +++ b/langs/shared-questions/en.json @@ -3,6 +3,23 @@ "description": { "question": "Is there still something relevant you couldn't give in the previous questions? Add it here.
Don't repeat already stated facts" }, + "dog-access": { + "mappings": { + "0": { + "then": "Dogs are allowed" + }, + "1": { + "then": "Dogs are not allowed" + }, + "2": { + "then": "Dogs are allowed, but they have to be leashed" + }, + "3": { + "then": "Dogs are allowed and can run around freely" + } + }, + "question": "Are dogs allowed in this business?" + }, "email": { "question": "What is the email address of {name}?" }, diff --git a/langs/shared-questions/nl.json b/langs/shared-questions/nl.json index b6749039b..8c7d6b514 100644 --- a/langs/shared-questions/nl.json +++ b/langs/shared-questions/nl.json @@ -3,6 +3,23 @@ "description": { "question": "Zijn er nog andere relevante zaken die je niet in de bovenstaande vragen kwijt kon? Vul ze hier in.
Herhaal geen antwoorden die je reeds gaf" }, + "dog-access": { + "mappings": { + "0": { + "then": "honden zijn toegelaten" + }, + "1": { + "then": "honden zijn niet toegelaten" + }, + "2": { + "then": "honden zijn enkel aan de leiband welkom" + }, + "3": { + "then": "honden zijn welkom en mogen vrij rondlopen" + } + }, + "question": "Zijn honden toegelaten in deze zaak?" + }, "email": { "question": "Wat is het e-mailadres van {name}?" }, diff --git a/scripts/generateTranslations.ts b/scripts/generateTranslations.ts index f5f59afd8..2bdc852c9 100644 --- a/scripts/generateTranslations.ts +++ b/scripts/generateTranslations.ts @@ -248,7 +248,11 @@ function MergeTranslation(source: any, target: any, language: string, context: s } if (typeof sourceV === "object") { if (targetV === undefined) { + try{ target[language] = sourceV; + }catch(e){ + throw `At context${context}: Could not add a translation in language ${language} due to ${e}` + } } else { MergeTranslation(sourceV, targetV, language, context + "." + key); }