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

@superset-ui/translation

Package Overview
Dependencies
Maintainers
12
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.13.3 to 0.13.9

3

esm/Translator.js

@@ -31,3 +31,4 @@ "use strict";

languagePack = DEFAULT_LANGUAGE_PACK
} = config;
} = config; // eslint-disable-next-line @typescript-eslint/no-unsafe-call
this.i18n = new _jed.default(languagePack);

@@ -34,0 +35,0 @@ }

@@ -38,4 +38,4 @@ "use strict";

function tn(singular, plural, ...args) {
return getInstance().translateWithNumber(singular, plural, ...args);
function tn(singular, plural, num, ...args) {
return getInstance().translateWithNumber(singular, plural, num, ...args);
}

@@ -5,3 +5,3 @@ import { TranslatorConfig } from './types';

ifPlural(value: number, plural: string): Jed;
fetch(...args: any[]): string;
fetch(...args: unknown[]): string;
}

@@ -11,6 +11,6 @@ export default class Translator {

constructor(config?: TranslatorConfig);
translate(input: string, ...args: any[]): string;
translateWithNumber(singular: string, plural: string, num?: number, ...args: any[]): string;
translate(input: string, ...args: unknown[]): string;
translateWithNumber(singular: string, plural: string, num?: number, ...args: unknown[]): string;
}
export {};
//# sourceMappingURL=Translator.d.ts.map

@@ -31,3 +31,4 @@ "use strict";

languagePack = DEFAULT_LANGUAGE_PACK
} = config;
} = config; // eslint-disable-next-line @typescript-eslint/no-unsafe-call
this.i18n = new _jed.default(languagePack);

@@ -34,0 +35,0 @@ }

import Translator from './Translator';
import { TranslatorConfig } from './types';
declare function configure(config?: TranslatorConfig): Translator;
declare function t(input: string, ...args: any[]): string;
declare function tn(singular: string, plural: string, ...args: any[]): string;
declare function t(input: string, ...args: unknown[]): string;
declare function tn(singular: string, plural: string, num?: number, ...args: unknown[]): string;
export { configure, t, tn };
//# sourceMappingURL=TranslatorSingleton.d.ts.map

@@ -38,4 +38,4 @@ "use strict";

function tn(singular, plural, ...args) {
return getInstance().translateWithNumber(singular, plural, ...args);
function tn(singular, plural, num, ...args) {
return getInstance().translateWithNumber(singular, plural, num, ...args);
}
{
"name": "@superset-ui/translation",
"version": "0.13.3",
"version": "0.13.9",
"description": "Superset UI translation",

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

},
"gitHead": "f72e2d6e13333b55b5d6f1e2d7d5ccaec3868da6"
"gitHead": "de298d406006024521554c645d9691c550d2b1d4"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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