The fetch provider retrieves a JSON file from the given URL and returns a translation object.
You can create the object via the monster namespace new Monster.I18n.Provider.Fetch()
.
<script type="module">
import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
new Monster.I18n.Providers.Fetch()
</script>
Alternatively, you can also integrate this function individually.
<script type="module">
import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/i18n/providers/fetch.js';
new Fetch()
</script>