The Formatter extends the Text.Formatter with the possibility to replace the key by a translation.
You can create an instance via the monster namespace new Monster.I18n.Formatter()
.
<script type="module">
import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
new Monster.I18n.Formatter()
</script>
Alternatively, you can also integrate this function individually.
<script type="module">
import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/i18n/formatter.js';
new Formatter()
</script>