npm i18n 0.12.0
0.12.0 - Feature Release

latest releases: 0.15.1, 0.15.0, 0.14.2...
4 years ago

Added

  • backward compatible default to singleton with const i18n = require('i18n')
  • create an instance of i18n by const i18n = new I18n()

Example:

/**
 * require I18n with capital I as constructor
 */
const { I18n } = require("i18n");

/**
 * create a new instance with it's configuration
 */
const i18n = new I18n({
    locales:['en', 'de'],
    directory: __dirname + '/locales'
});

Don't miss a new i18n release

NewReleases is sending notifications on new releases.