UNPKG

translate-maker

Version:

Lightweight translation module. Internationalize your great project.

26 lines (19 loc) 596 B
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = getInstance; var _Translate = _interopRequireDefault(require("./Translate")); let 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