For those you will have to use a Sheet Worker and some javascript to create an attribute, then use the attribute in the roll. For example, <script type="text/worker">
on("sheet:opened", function(eventInfo){
setAttrs({
bonusmacro: "?{" + getTranslationByKey("ask-bonus") +"|0}"
});
});
</script> Then, in the HTML, <span style="display: none" data-i18n="ask-bonus">What is your bonus?</span>
<button type='roll' value='[[d20 + @{bonusmacro}]]' ></button> The "span" in the example isn't necessary to run, but without it, "i18nOutput" will not include it in the default translation file, so that key will have to be added manually.