Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@superset-ui/translation

Package Overview
Dependencies
Maintainers
9
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@superset-ui/translation - npm Package Compare versions

Comparing version 0.11.0 to 0.11.4

LICENSE

2

esm/Translator.js

@@ -1,1 +0,1 @@

function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}import UntypedJed from"jed";var DEFAULT_LANGUAGE_PACK={domain:"superset",locale_data:{superset:{"":{domain:"superset",lang:"en",plural_forms:"nplurals=1; plural=0"}}}},Translator=/*#__PURE__*/function(){function a(a){void 0===a&&(a={}),_defineProperty(this,"i18n",void 0);var b=a,c=b.languagePack,d=void 0===c?DEFAULT_LANGUAGE_PACK:c;this.i18n=new UntypedJed(d)}var b=a.prototype;return b.translate=function translate(a){for(var b,c=arguments.length,d=Array(1<c?c-1:0),e=1;e<c;e++)d[e-1]=arguments[e];return(b=this.i18n.translate(a)).fetch.apply(b,d)},b.translateWithNumber=function translateWithNumber(a,b,c){var d;void 0===c&&(c=0);for(var e=arguments.length,f=Array(3<e?e-3:0),g=3;g<e;g++)f[g-3]=arguments[g];return(d=this.i18n.translate(a).ifPlural(c,b)).fetch.apply(d,f)},a}();export{Translator as default};
function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}import UntypedJed from"jed";var DEFAULT_LANGUAGE_PACK={domain:"superset",locale_data:{superset:{"":{domain:"superset",lang:"en",plural_forms:"nplurals=1; plural=0"}}}},Translator=/*#__PURE__*/function(){function a(a){void 0===a&&(a={}),_defineProperty(this,"i18n",void 0);var b=a,c=b.languagePack,d=void 0===c?DEFAULT_LANGUAGE_PACK:c;this.i18n=new UntypedJed(d)}var b=a.prototype;return b.translate=function f(a){for(var b,c=arguments.length,d=Array(1<c?c-1:0),e=1;e<c;e++)d[e-1]=arguments[e];return(b=this.i18n.translate(a)).fetch.apply(b,d)},b.translateWithNumber=function h(a,b,c){var d;void 0===c&&(c=0);for(var e=arguments.length,f=Array(3<e?e-3:0),g=3;g<e;g++)f[g-3]=arguments[g];return(d=this.i18n.translate(a).ifPlural(c,b)).fetch.apply(d,f)},a}();export{Translator as default};

@@ -1,1 +0,1 @@

/* eslint no-console: 0 */import Translator from"./Translator";var singleton,isConfigured=!1;function configure(a){return singleton=new Translator(a),isConfigured=!0,singleton}function getInstance(){return isConfigured||(console.warn("You must call configure(...) before calling other methods"),!singleton&&(singleton=new Translator)),singleton}function t(a){for(var b,c=arguments.length,d=Array(1<c?c-1:0),e=1;e<c;e++)d[e-1]=arguments[e];return(b=getInstance()).translate.apply(b,[a].concat(d))}function tn(a,b){for(var c,d=arguments.length,e=Array(2<d?d-2:0),f=2;f<d;f++)e[f-2]=arguments[f];return(c=getInstance()).translateWithNumber.apply(c,[a,b].concat(e))}export{configure,t,tn};
/* eslint no-console: 0 */import Translator from"./Translator";var singleton,isConfigured=!1;function configure(a){return singleton=new Translator(a),isConfigured=!0,singleton}function getInstance(){return isConfigured||console.warn("You should call configure(...) before calling other methods"),"undefined"==typeof singleton&&(singleton=new Translator),singleton}function t(a){for(var b,c=arguments.length,d=Array(1<c?c-1:0),e=1;e<c;e++)d[e-1]=arguments[e];return(b=getInstance()).translate.apply(b,[a].concat(d))}function tn(a,b){for(var c,d=arguments.length,e=Array(2<d?d-2:0),f=2;f<d;f++)e[f-2]=arguments[f];return(c=getInstance()).translateWithNumber.apply(c,[a,b].concat(e))}export{configure,t,tn};

@@ -1,1 +0,1 @@

"use strict";var _jed=_interopRequireDefault(require("jed"));exports.__esModule=!0,exports.default=void 0;function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var DEFAULT_LANGUAGE_PACK={domain:"superset",locale_data:{superset:{"":{domain:"superset",lang:"en",plural_forms:"nplurals=1; plural=0"}}}},Translator=/*#__PURE__*/function(){function a(a){void 0===a&&(a={}),_defineProperty(this,"i18n",void 0);var b=a,c=b.languagePack,d=void 0===c?DEFAULT_LANGUAGE_PACK:c;this.i18n=new _jed.default(d)}var b=a.prototype;return b.translate=function translate(a){for(var b,c=arguments.length,d=Array(1<c?c-1:0),e=1;e<c;e++)d[e-1]=arguments[e];return(b=this.i18n.translate(a)).fetch.apply(b,d)},b.translateWithNumber=function translateWithNumber(a,b,c){var d;void 0===c&&(c=0);for(var e=arguments.length,f=Array(3<e?e-3:0),g=3;g<e;g++)f[g-3]=arguments[g];return(d=this.i18n.translate(a).ifPlural(c,b)).fetch.apply(d,f)},a}();exports.default=Translator;
"use strict";var _jed=_interopRequireDefault(require("jed"));exports.__esModule=!0,exports.default=void 0;function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var DEFAULT_LANGUAGE_PACK={domain:"superset",locale_data:{superset:{"":{domain:"superset",lang:"en",plural_forms:"nplurals=1; plural=0"}}}},Translator=/*#__PURE__*/function(){function a(a){void 0===a&&(a={}),_defineProperty(this,"i18n",void 0);var b=a,c=b.languagePack,d=void 0===c?DEFAULT_LANGUAGE_PACK:c;this.i18n=new _jed.default(d)}var b=a.prototype;return b.translate=function f(a){for(var b,c=arguments.length,d=Array(1<c?c-1:0),e=1;e<c;e++)d[e-1]=arguments[e];return(b=this.i18n.translate(a)).fetch.apply(b,d)},b.translateWithNumber=function h(a,b,c){var d;void 0===c&&(c=0);for(var e=arguments.length,f=Array(3<e?e-3:0),g=3;g<e;g++)f[g-3]=arguments[g];return(d=this.i18n.translate(a).ifPlural(c,b)).fetch.apply(d,f)},a}();exports.default=Translator;

@@ -1,1 +0,1 @@

"use strict";var _Translator=_interopRequireDefault(require("./Translator"));exports.__esModule=!0,exports.configure=configure,exports.t=t,exports.tn=tn;function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}/* eslint no-console: 0 */var singleton,isConfigured=!1;function configure(a){return singleton=new _Translator.default(a),isConfigured=!0,singleton}function getInstance(){return isConfigured||(console.warn("You must call configure(...) before calling other methods"),!singleton&&(singleton=new _Translator.default)),singleton}function t(a){for(var b,c=arguments.length,d=Array(1<c?c-1:0),e=1;e<c;e++)d[e-1]=arguments[e];return(b=getInstance()).translate.apply(b,[a].concat(d))}function tn(a,b){for(var c,d=arguments.length,e=Array(2<d?d-2:0),f=2;f<d;f++)e[f-2]=arguments[f];return(c=getInstance()).translateWithNumber.apply(c,[a,b].concat(e))}
"use strict";var _Translator=_interopRequireDefault(require("./Translator"));exports.__esModule=!0,exports.configure=configure,exports.t=t,exports.tn=tn;function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}/* eslint no-console: 0 */var singleton,isConfigured=!1;function configure(a){return singleton=new _Translator.default(a),isConfigured=!0,singleton}function getInstance(){return isConfigured||console.warn("You should call configure(...) before calling other methods"),"undefined"==typeof singleton&&(singleton=new _Translator.default),singleton}function t(a){for(var b,c=arguments.length,d=Array(1<c?c-1:0),e=1;e<c;e++)d[e-1]=arguments[e];return(b=getInstance()).translate.apply(b,[a].concat(d))}function tn(a,b){for(var c,d=arguments.length,e=Array(2<d?d-2:0),f=2;f<d;f++)e[f-2]=arguments[f];return(c=getInstance()).translateWithNumber.apply(c,[a,b].concat(e))}
{
"name": "@superset-ui/translation",
"version": "0.11.0",
"version": "0.11.4",
"description": "Superset UI translation",

@@ -36,3 +36,4 @@ "sideEffects": false,

"access": "public"
}
},
"gitHead": "b8a62bc6ef42a4b17192854b042c7301eb2ece20"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc