locize
Version:
This package adds the incontext editor to your i18next setup.
24 lines (17 loc) • 922 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
var process = require('./process.js');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
var _excluded = ["implementation"];
function startStandalone() {
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var implementation = options.implementation,
rest = _objectWithoutProperties__default["default"](options, _excluded);
process.start(implementation, Object.keys(rest).length > 0 ? rest : undefined);
}
if (typeof window !== 'undefined') {
window.locizeStartStandalone = startStandalone;
}
exports.startStandalone = startStandalone;