@galoymoney/client
Advanced tools
Comparing version 0.1.11 to 0.1.12
@@ -5,3 +5,3 @@ import i18n from "i18n-js"; | ||
export declare const translate: GaloyTranslate; | ||
export declare type GaloyTranslateUnknown = (scope: string, options?: i18n.TranslateOptions | undefined) => string; | ||
export declare type GaloyTranslateUnknown = (scope: string, options?: i18n.TranslateOptions | undefined) => string | Record<string, string | Record<string, any>>; | ||
export declare const translateUnknown: GaloyTranslateUnknown; | ||
@@ -8,0 +8,0 @@ export declare const setLocale: (langauge: string | undefined) => void; |
@@ -24,14 +24,2 @@ "use strict"; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
@@ -47,6 +35,6 @@ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
var es_1 = __importDefault(require("./es")); | ||
var es = __importStar(require("./es-m")); | ||
var en = __importStar(require("./en-m")); | ||
var es_m_1 = __importDefault(require("./es-m")); | ||
var en_m_1 = __importDefault(require("./en-m")); | ||
i18n_js_1.default.fallbacks = true; | ||
i18n_js_1.default.translations = { es: __assign(__assign({}, es), es_1.default), en: en }; | ||
i18n_js_1.default.translations = { es: __assign(__assign({}, es_m_1.default), es_1.default), en: en_m_1.default }; | ||
var translate = function (scope, options) { | ||
@@ -53,0 +41,0 @@ var translation = i18n_js_1.default.t(scope, __assign({ defaultValue: scope }, options)); |
{ | ||
"name": "@galoymoney/client", | ||
"main": "dist/index.js", | ||
"version": "0.1.11", | ||
"version": "0.1.12", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "repository": "https://github.com/galoymoney/galoy-client", |
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
346325
6316