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.5 to 0.11.9

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 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};
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};

@@ -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 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;
"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;
{
"name": "@superset-ui/translation",
"version": "0.11.5",
"version": "0.11.9",
"description": "Superset UI translation",

@@ -29,3 +29,3 @@ "sideEffects": false,

"devDependencies": {
"jest-mock-console": "^0.4.0"
"jest-mock-console": "^1.0.0"
},

@@ -38,3 +38,3 @@ "dependencies": {

},
"gitHead": "c25a55ff4b484c139c4623d1ed2925acfb5a1d7f"
"gitHead": "e1b45d00ef457ebabac0454a68dbcb666019e698"
}
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