diproche / webinterface

1 stars 0 forks source link

Add parameter for issue message placeholder replacements #42

Closed Khazuar closed 5 years ago

Khazuar commented 5 years ago

Except for the question on Slack, I approve of this. For reference the question was:

How does string|number allow for some message like "Das Wort Schuh von Position 0 bis 5 ist unerlaubt". In this sentence "Schuh", 0 and 5 would all be replacements.

You'd need to define your issue-message as "Das Wort {word} von Position {from} bis {to} ist unerlaubt" and provide the replacement { word: "Schuh", from: 0, to: 5 } to addIssue.

Korosensei42 commented 5 years ago

Everything is clear now. I approve.