@superset-ui/translation
Advanced tools
Comparing version 0.13.3 to 0.13.9
@@ -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
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
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
21746