Fix rendering issue

This commit is contained in:
Pieter Vander Vennet 2020-07-29 20:19:29 +02:00
parent 2dd14028ce
commit 7a9c21f83d
2 changed files with 6 additions and 2 deletions

View file

@ -360,9 +360,13 @@ class TagRendering extends UIElement implements TagDependantUIElement {
return undefined; return undefined;
} }
const prepost = Translations.W(freeform.template).InnerRender().split("$"); const prepost = Translations.W(freeform.template).InnerRender()
.replace("$$$","$string$")
.split("$");
const type = prepost[1]; const type = prepost[1];
console.log("PrePost:", prepost);
let isValid = TagRenderingOptions.inputValidation[type]; let isValid = TagRenderingOptions.inputValidation[type];
if (isValid === undefined) { if (isValid === undefined) {
isValid = (str) => true; isValid = (str) => true;

View file

@ -399,7 +399,7 @@ export default class Translations {
qName: { qName: {
question: new T({en: "What is the name of this bicycle shop?", nl: "Wat is de naam van deze fietszaak?", fr: "Quel est le nom du magasin de vélo?"}), question: new T({en: "What is the name of this bicycle shop?", nl: "Wat is de naam van deze fietszaak?", fr: "Quel est le nom du magasin de vélo?"}),
render: new T({en: "This bicycle shop is called {name}", nl: "Deze fietszaak heet <b>{name}</b>", fr: "Ce magasin s'appelle <b>{name}</b>"}), render: new T({en: "This bicycle shop is called {name}", nl: "Deze fietszaak heet <b>{name}</b>", fr: "Ce magasin s'appelle <b>{name}</b>"}),
template: new T({en: "This bicycle shop is called: $$$", nl: "Deze fietszaak heet: <b>$$$</b>", fr: "Ce magasin s'appelle <b>$$$</b>"}) template: new T({en: "This bicycle shop is called: $$$", nl: "Deze fietszaak heet: <b>$$$</b>", fr: "Ce magasin s'appelle $$$"})
}, },
secondHand: { secondHand: {
question: new T({en: "Does this shop sell second-hand bikes?", nl: "Verkoopt deze winkel tweedehands fietsen?", fr: "Est-ce ce magasin vend des vélos d'occasion"}), question: new T({en: "Does this shop sell second-hand bikes?", nl: "Verkoopt deze winkel tweedehands fietsen?", fr: "Est-ce ce magasin vend des vélos d'occasion"}),