UNPKG

locize

Version:

This package adds the incontext editor to your i18next setup.

26 lines (22 loc) 870 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var validAttributes = ['placeholder', 'title', 'alt']; var ignoreElements = ['SCRIPT']; var colors = { highlight: '#1976d2', warning: '#e67a00', gray: '#ccc' }; var getIframeUrl = function getIframeUrl() { var _prc$env; var p; if (typeof process !== 'undefined') p = process; if (!p && typeof window !== 'undefined') p = window.process; var prc = p || {}; var env = ((_prc$env = prc.env) === null || _prc$env === void 0 ? void 0 : _prc$env.locizeIncontext) || 'production'; return env === 'development' ? 'http://localhost:3003/' : env === 'staging' ? 'https://incontext-dev.locize.app' : 'https://incontext.locize.app'; }; exports.colors = colors; exports.getIframeUrl = getIframeUrl; exports.ignoreElements = ignoreElements; exports.validAttributes = validAttributes;