Interface shortcuts and maintenance
Add default options
I18n instance can be created with no options
Bind translate
Binding the "translate" function allows for simpler shortcutting:
Consumer code
Before
const i18n = new I18n({...}); const t = i18n.translate.bind(i18n);After
const i18n = new I18n({...}); const t = i18n.translate; // OR const t = new I18n({...}).translate;