@tolgee/i18next
Advanced tools
Comparing version 4.7.2 to 4.7.3-rc.c880d75c.0
@@ -25,3 +25,3 @@ 'use strict'; | ||
/*! ***************************************************************************** | ||
/****************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
@@ -28,0 +28,0 @@ |
@@ -1,16 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@tolgee/core");function n(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,t.get?t:{enumerable:!0,get:function(){return e[r]}})}})),n.default=e,Object.freeze(n)} | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */var r=function(){return r=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},r.apply(this,arguments)};function t(e,n,r,t){return new(r||(r=Promise))((function(o,a){function i(e){try{l(t.next(e))}catch(e){a(e)}}function u(e){try{l(t.throw(e))}catch(e){a(e)}}function l(e){var n;e.done?o(e.value):(n=e.value,n instanceof r?n:new r((function(e){e(n)}))).then(i,u)}l((t=t.apply(e,n||[])).next())}))}function o(e,n){var r,t,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,t&&(o=2&a[0]?t.return:a[0]?t.throw||((o=t.return)&&o.call(t),0):t.next)&&!(o=o.call(t,a[1])).done)return o;switch(t=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,t=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=n.call(e,i)}catch(e){a=[6,e],t=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}function a(e,n,r){if(r||2===arguments.length)for(var t,o=0,a=n.length;o<a;o++)!t&&o in n||(t||(t=Array.prototype.slice.call(n,0,o)),t[o]=n[o]);return e.concat(t||Array.prototype.slice.call(n))}var i=function(e,n){e.onTranslationChange.subscribe((function(){e.getCachedTranslations().forEach((function(e,r){n.removeResourceBundle(r,"translation"),n.addResources(r,"translation",e)}))})),n.on("languageChanged",(function(n){n&&e.lang!==n&&e.changeLanguage(n)})),n.tolgee=e},u=function(e){return{type:"backend",name:"TolgeeBackend",init:function(){},read:function(n,r,a){return t(this,void 0,void 0,(function(){var r;return o(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,e.loadTranslations(n)];case 1:return r=t.sent(),a(null,r),[3,3];case 2:return t.sent(),a(!0),[3,3];case 3:return[2]}}))}))}}},l=function(e,n){var t,o,i;return i="string"==typeof n.postProcess?[n.postProcess,"tolgeeProcessor"]:Array.isArray(n.postProcess)?a(a([],function(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,o,a=r.call(e),i=[];try{for(;(void 0===n||n-- >0)&&!(t=a.next()).done;)i.push(t.value)}catch(e){o={error:e}}finally{try{t&&!t.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}(n.postProcess),!1),["tolgeeProcessor"],!1):["tolgeeProcessor"],r(r({},n),{postProcess:i,i18nFormat:r(r({},null==n?void 0:n.i18nFormat),{bindI18nStore:"added "+(null===(t=n.i18nFormat)||void 0===t?void 0:t.bindI18nStore)||""}),react:r(r({},null==n?void 0:n.react),{bindI18nStore:"added "+(null===(o=n.react)||void 0===o?void 0:o.bindI18nStore)||""})})};exports.tolgeeApply=i,exports.tolgeeBackend=u,exports.tolgeeOptions=l,exports.withTolgee=function(t,o){var a=e.Tolgee.init(r({wrapperMode:"invisible",enableLanguageDetection:!1,enableLanguageStore:!1,ui:"development"!==process.env.NODE_ENV?void 0:"undefined"!=typeof require?require("@tolgee/ui"):Promise.resolve().then((function(){return n(require("@tolgee/ui"))}))},o));t.use(u(a)),t.use(function(e){return{type:"postProcessor",name:"tolgeeProcessor",process:function(n,r,t){return e.wrap(r.join("."),void 0,t.defaultValue,n)}}}(a));var c=t.init;return t.init=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];i(a,t);var r={},o=void 0;"object"==typeof e[0]?(r=e[0],o=e[1]):o=e[0];var u=l(0,r),s=c(u,o),f=t.language||r.lng;return f&&(a.lang=f),a.run(),s},t}; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@tolgee/core");function n(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,t.get?t:{enumerable:!0,get:function(){return e[r]}})}})),n.default=e,Object.freeze(n)}var r=function(){return r=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},r.apply(this,arguments)};function t(e,n,r,t){return new(r||(r=Promise))((function(o,a){function i(e){try{l(t.next(e))}catch(e){a(e)}}function u(e){try{l(t.throw(e))}catch(e){a(e)}}function l(e){var n;e.done?o(e.value):(n=e.value,n instanceof r?n:new r((function(e){e(n)}))).then(i,u)}l((t=t.apply(e,n||[])).next())}))}function o(e,n){var r,t,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,t&&(o=2&a[0]?t.return:a[0]?t.throw||((o=t.return)&&o.call(t),0):t.next)&&!(o=o.call(t,a[1])).done)return o;switch(t=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,t=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=n.call(e,i)}catch(e){a=[6,e],t=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}function a(e,n,r){if(r||2===arguments.length)for(var t,o=0,a=n.length;o<a;o++)!t&&o in n||(t||(t=Array.prototype.slice.call(n,0,o)),t[o]=n[o]);return e.concat(t||Array.prototype.slice.call(n))}var i=function(e,n){e.onTranslationChange.subscribe((function(){e.getCachedTranslations().forEach((function(e,r){n.removeResourceBundle(r,"translation"),n.addResources(r,"translation",e)}))})),n.on("languageChanged",(function(n){n&&e.lang!==n&&e.changeLanguage(n)})),n.tolgee=e},u=function(e){return{type:"backend",name:"TolgeeBackend",init:function(){},read:function(n,r,a){return t(this,void 0,void 0,(function(){var r;return o(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,e.loadTranslations(n)];case 1:return r=t.sent(),a(null,r),[3,3];case 2:return t.sent(),a(!0),[3,3];case 3:return[2]}}))}))}}},l=function(e,n){var t,o,i;return i="string"==typeof n.postProcess?[n.postProcess,"tolgeeProcessor"]:Array.isArray(n.postProcess)?a(a([],function(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,o,a=r.call(e),i=[];try{for(;(void 0===n||n-- >0)&&!(t=a.next()).done;)i.push(t.value)}catch(e){o={error:e}}finally{try{t&&!t.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}(n.postProcess),!1),["tolgeeProcessor"],!1):["tolgeeProcessor"],r(r({},n),{postProcess:i,i18nFormat:r(r({},null==n?void 0:n.i18nFormat),{bindI18nStore:"added "+(null===(t=n.i18nFormat)||void 0===t?void 0:t.bindI18nStore)||""}),react:r(r({},null==n?void 0:n.react),{bindI18nStore:"added "+(null===(o=n.react)||void 0===o?void 0:o.bindI18nStore)||""})})};exports.tolgeeApply=i,exports.tolgeeBackend=u,exports.tolgeeOptions=l,exports.withTolgee=function(t,o){var a=e.Tolgee.init(r({wrapperMode:"invisible",enableLanguageDetection:!1,enableLanguageStore:!1,ui:"development"!==process.env.NODE_ENV?void 0:"undefined"!=typeof require?require("@tolgee/ui"):Promise.resolve().then((function(){return n(require("@tolgee/ui"))}))},o));t.use(u(a)),t.use(function(e){return{type:"postProcessor",name:"tolgeeProcessor",process:function(n,r,t){return e.wrap(r.join("."),void 0,t.defaultValue,n)}}}(a));var c=t.init;return t.init=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];i(a,t);var r={},o=void 0;"object"==typeof e[0]?(r=e[0],o=e[1]):o=e[0];var u=l(0,r),s=c(u,o),f=t.language||r.lng;return f&&(a.lang=f),a.run(),s},t}; | ||
//# sourceMappingURL=tolgee-i18next.cjs.min.js.map |
import { Tolgee } from '@tolgee/core'; | ||
/*! ***************************************************************************** | ||
/****************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
@@ -5,0 +5,0 @@ |
@@ -7,3 +7,3 @@ (function (global, factory) { | ||
/*! ***************************************************************************** | ||
/****************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
@@ -10,0 +10,0 @@ |
@@ -1,16 +0,2 @@ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@tolgee/core")):"function"==typeof define&&define.amd?define(["exports","@tolgee/core"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self)["@tolgee/i18next"]={},e["@tolgee/core"])}(this,(function(e,n){"use strict"; | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */var t=function(){return t=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},t.apply(this,arguments)};function r(e,n,t,r){return new(t||(t=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,l)}u((r=r.apply(e,n||[])).next())}))}function o(e,n){var t,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=n.call(e,a)}catch(e){i=[6,e],r=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}function i(e,n,t){if(t||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))}var a=function(e,n){e.onTranslationChange.subscribe((function(){e.getCachedTranslations().forEach((function(e,t){n.removeResourceBundle(t,"translation"),n.addResources(t,"translation",e)}))})),n.on("languageChanged",(function(n){n&&e.lang!==n&&e.changeLanguage(n)})),n.tolgee=e},l=function(e){return{type:"backend",name:"TolgeeBackend",init:function(){},read:function(n,t,i){return r(this,void 0,void 0,(function(){var t;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,e.loadTranslations(n)];case 1:return t=r.sent(),i(null,t),[3,3];case 2:return r.sent(),i(!0),[3,3];case 3:return[2]}}))}))}}},u="tolgeeProcessor",c=function(e,n){var r,o,a;return a="string"==typeof n.postProcess?[n.postProcess,u]:Array.isArray(n.postProcess)?i(i([],function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,o,i=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a}(n.postProcess),!1),[u],!1):[u],t(t({},n),{postProcess:a,i18nFormat:t(t({},null==n?void 0:n.i18nFormat),{bindI18nStore:"added "+(null===(r=n.i18nFormat)||void 0===r?void 0:r.bindI18nStore)||""}),react:t(t({},null==n?void 0:n.react),{bindI18nStore:"added "+(null===(o=n.react)||void 0===o?void 0:o.bindI18nStore)||""})})};e.tolgeeApply=a,e.tolgeeBackend=l,e.tolgeeOptions=c,e.withTolgee=function(e,r){var o=n.Tolgee.init(t({wrapperMode:"invisible",enableLanguageDetection:!1,enableLanguageStore:!1,ui:"development"!==process.env.NODE_ENV?void 0:"undefined"!=typeof require?require("@tolgee/ui"):import("@tolgee/ui")},r));e.use(l(o)),e.use(function(e){return{type:"postProcessor",name:"tolgeeProcessor",process:function(n,t,r){return e.wrap(t.join("."),void 0,r.defaultValue,n)}}}(o));var i=e.init;return e.init=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];a(o,e);var r={},l=void 0;"object"==typeof n[0]?(r=n[0],l=n[1]):l=n[0];var u=c(0,r),s=i(u,l),f=e.language||r.lng;return f&&(o.lang=f),o.run(),s},e},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@tolgee/core")):"function"==typeof define&&define.amd?define(["exports","@tolgee/core"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self)["@tolgee/i18next"]={},e["@tolgee/core"])}(this,(function(e,n){"use strict";var t=function(){return t=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},t.apply(this,arguments)};function r(e,n,t,r){return new(t||(t=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,l)}u((r=r.apply(e,n||[])).next())}))}function o(e,n){var t,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=n.call(e,a)}catch(e){i=[6,e],r=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}function i(e,n,t){if(t||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))}var a=function(e,n){e.onTranslationChange.subscribe((function(){e.getCachedTranslations().forEach((function(e,t){n.removeResourceBundle(t,"translation"),n.addResources(t,"translation",e)}))})),n.on("languageChanged",(function(n){n&&e.lang!==n&&e.changeLanguage(n)})),n.tolgee=e},l=function(e){return{type:"backend",name:"TolgeeBackend",init:function(){},read:function(n,t,i){return r(this,void 0,void 0,(function(){var t;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,e.loadTranslations(n)];case 1:return t=r.sent(),i(null,t),[3,3];case 2:return r.sent(),i(!0),[3,3];case 3:return[2]}}))}))}}},u="tolgeeProcessor",c=function(e,n){var r,o,a;return a="string"==typeof n.postProcess?[n.postProcess,u]:Array.isArray(n.postProcess)?i(i([],function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,o,i=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a}(n.postProcess),!1),[u],!1):[u],t(t({},n),{postProcess:a,i18nFormat:t(t({},null==n?void 0:n.i18nFormat),{bindI18nStore:"added "+(null===(r=n.i18nFormat)||void 0===r?void 0:r.bindI18nStore)||""}),react:t(t({},null==n?void 0:n.react),{bindI18nStore:"added "+(null===(o=n.react)||void 0===o?void 0:o.bindI18nStore)||""})})};e.tolgeeApply=a,e.tolgeeBackend=l,e.tolgeeOptions=c,e.withTolgee=function(e,r){var o=n.Tolgee.init(t({wrapperMode:"invisible",enableLanguageDetection:!1,enableLanguageStore:!1,ui:"development"!==process.env.NODE_ENV?void 0:"undefined"!=typeof require?require("@tolgee/ui"):import("@tolgee/ui")},r));e.use(l(o)),e.use(function(e){return{type:"postProcessor",name:"tolgeeProcessor",process:function(n,t,r){return e.wrap(t.join("."),void 0,r.defaultValue,n)}}}(o));var i=e.init;return e.init=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];a(o,e);var r={},l=void 0;"object"==typeof n[0]?(r=n[0],l=n[1]):l=n[0];var u=c(0,r),s=i(u,l),f=e.language||r.lng;return f&&(o.lang=f),o.run(),s},e},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=tolgee-i18next.umd.min.js.map |
@@ -19,2 +19,4 @@ import { Tolgee } from '@tolgee/core'; | ||
transWrapTextNodes?: string; | ||
keyPrefix?: string; | ||
unescape?(str: string): string; | ||
}; | ||
@@ -36,7 +38,8 @@ debug?: boolean; | ||
saveMissing?: boolean; | ||
saveMissingPlurals?: boolean; | ||
updateMissing?: boolean; | ||
saveMissingTo?: "all" | "fallback" | "current"; | ||
saveMissingTo?: "fallback" | "all" | "current"; | ||
missingKeyNoValueFallbackToKey?: boolean; | ||
missingKeyHandler?: false | ((lngs: readonly string[], ns: string, key: string, fallbackValue: string, updateMissing: boolean, options: any) => void); | ||
parseMissingKeyHandler?(key: string): any; | ||
parseMissingKeyHandler?(key: string, defaultValue?: string): any; | ||
appendNamespaceToMissingKey?: boolean; | ||
@@ -49,2 +52,3 @@ missingInterpolationHandler?: (text: string, value: any, options: InitOptions) => any; | ||
returnObjects?: boolean; | ||
returnDetails?: boolean; | ||
returnedObjectHandler?(key: string, value: string, options: any): void; | ||
@@ -65,7 +69,7 @@ joinArrays?: string | false; | ||
enableByQS?: string | false; | ||
toggleKeyModifier?: "altKey" | "ctrlKey" | "metaKey" | "shiftKey"; | ||
toggleKeyModifier?: "ctrlKey" | "metaKey" | "altKey" | "shiftKey"; | ||
toggleKeyCode?: number; | ||
lngOverrideQS?: string; | ||
lngOverride?: string; | ||
mode?: "window" | "iframe"; | ||
mode?: "iframe" | "window"; | ||
iframeContainerStyle?: string; | ||
@@ -85,5 +89,6 @@ iframeStyle?: string; | ||
ignoreJSONStructure?: boolean; | ||
maxParallelReads?: number; | ||
backend?: object; | ||
detection?: object; | ||
backend?: object; | ||
cache?: object; | ||
}; |
{ | ||
"name": "@tolgee/i18next", | ||
"version": "4.7.2", | ||
"version": "4.7.3-rc.c880d75c.0", | ||
"description": "Tolgee i18n integration.", | ||
@@ -42,9 +42,9 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@rollup/plugin-typescript": "8.3.0", | ||
"@rollup/plugin-typescript": "8.3.3", | ||
"@testing-library/dom": "^8.7.1", | ||
"@testing-library/jest-dom": "^5.11.4", | ||
"@types/intl-messageformat": "^3.0.0", | ||
"@types/jest": "^27.0.2", | ||
"@types/node": "^17.0.8", | ||
"concurrently": "6.4.0", | ||
"@types/jest": "^28.1.6", | ||
"@types/node": "^18.6.1", | ||
"concurrently": "7.3.0", | ||
"i18next": "^21.5.4", | ||
@@ -60,5 +60,5 @@ "jest": "^27.2.4", | ||
"typedoc-plugin-markdown": "3.11.7", | ||
"typescript": "4.4.4" | ||
"typescript": "4.7.4" | ||
}, | ||
"gitHead": "12ccff7336da87314feac6cdff5ea19c08fe15d7", | ||
"gitHead": "b2fe465202b06b75b7c03ef9ed7f779a921d7dbc", | ||
"publishConfig": { | ||
@@ -75,5 +75,5 @@ "access": "public" | ||
"dependencies": { | ||
"@tolgee/core": "^4.7.2", | ||
"@tolgee/ui": "^4.7.2" | ||
"@tolgee/core": "^4.7.3-rc.c880d75c.0", | ||
"@tolgee/ui": "^4.7.3-rc.c880d75c.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
155856
766
3
1