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

@superset-ui/translation

Package Overview
Dependencies
Maintainers
7
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.9.3 to 0.9.5

esm/types.js

2

esm/index.js

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

export{configure,t,tn}from"./TranslatorSingleton";export{TranslatorConfig,LanguagePack}from"./Translator";
export{configure,t,tn}from"./TranslatorSingleton";export*from"./types";

@@ -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";import{LanguagePack}from"./jed";var DEFAULT_LANGUAGE_PACK={domain:"superset",locale_data:{superset:{"":{domain:"superset",lang:"en",plural_forms:"nplurals=1; plural=0"}}}};export{LanguagePack};var 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 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};
export { configure, t, tn } from './TranslatorSingleton';
export { TranslatorConfig, LanguagePack } from './Translator';
export * from './types';

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

"use strict";var _TranslatorSingleton=require("./TranslatorSingleton");var _Translator=require("./Translator");exports.__esModule=!0,exports.LanguagePack=exports.TranslatorConfig=exports.tn=exports.t=exports.configure=void 0;exports.configure=_TranslatorSingleton.configure,exports.t=_TranslatorSingleton.t,exports.tn=_TranslatorSingleton.tn;exports.TranslatorConfig=_Translator.TranslatorConfig,exports.LanguagePack=_Translator.LanguagePack;
"use strict";var _exportNames={configure:!0,t:!0,tn:!0};var _TranslatorSingleton=require("./TranslatorSingleton");var _types=require("./types");exports.__esModule=!0;exports.tn=exports.t=exports.configure=void 0;exports.configure=_TranslatorSingleton.configure,exports.t=_TranslatorSingleton.t,exports.tn=_TranslatorSingleton.tn;Object.keys(_types).forEach(function(a){"default"===a||"__esModule"===a||Object.prototype.hasOwnProperty.call(_exportNames,a)||(exports[a]=_types[a])});

@@ -1,5 +0,6 @@

import { Jed, LanguagePack } from './jed';
export { LanguagePack };
export interface TranslatorConfig {
languagePack?: LanguagePack;
import { TranslatorConfig } from './types';
interface Jed {
translate(input: string): Jed;
ifPlural(value: number, plural: string): Jed;
fetch(...args: any[]): string;
}

@@ -12,1 +13,2 @@ export default class Translator {

}
export {};

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

"use strict";exports.__esModule=!0,exports.default=void 0;var _jed=_interopRequireDefault(require("jed")),_jed2=require("./jed");exports.LanguagePack=_jed2.LanguagePack;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 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,2 +0,3 @@

import Translator, { TranslatorConfig } from './Translator';
import Translator from './Translator';
import { TranslatorConfig } from './types';
declare function configure(config?: TranslatorConfig): Translator;

@@ -3,0 +4,0 @@ declare function t(input: string, ...args: any[]): string;

{
"name": "@superset-ui/translation",
"version": "0.9.3",
"version": "0.9.5",
"description": "Superset UI translation",

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

},
"gitHead": "ad9d288d7a1f2a6714ebd8cc332428b5b94c868e"
"gitHead": "91768b5515b3a70f2d86b5abb98dfba82ecc529b"
}
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