i18n-node v0.12.0 Release Notes

Release Date: 2020-08-16 // over 3 years ago
  • ➕ Added

    • 0️⃣ backward compatible default to singleton with const i18n = require('i18n')
    • create an instance if 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'});