Skip to content
Snippets Groups Projects
Select Git revision
  • bedf1c393ea05b06365406931a4b47f0680a1c44
  • master default protected
  • 0.1.1
  • 0.1.0
4 results

overview.template

Blame
  • formatter.mjs 379 B
    import {Formatter} from '@schukai/monster/source/i18n/formatter.mjs';
    import {Translations} from '@schukai/monster/source/i18n/translations.mjs';
    
    const translations = new Translations('en')
        .assignTranslations({
            thekey: "${animal} has eaten the ${food}!"
        });
    
    new Formatter({}, translations).format("thekey:animal=dog::food=cake")
    // ↦ dog has eaten the cake!