UNPKG

translate-maker

Version:

Lightweight translation module. Internationalize your great project.

24 lines (17 loc) 558 B
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports.default = getInstance; var _Translate = _interopRequireDefault(require("./Translate")); var instance = null; function getInstance(options) { if (instance) { return instance; } if (!options) { throw new Error('You need to initialize singleton instance first. Call getInstance with options.'); } instance = new _Translate.default(options); return instance; } //# sourceMappingURL=getInstance.js.map