text-localizer
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -14,5 +14,9 @@ "use strict"; | ||
const parseTranslations = (param) => __awaiter(void 0, void 0, void 0, function* () { | ||
var _a, _b; | ||
if (typeof param == 'function') { | ||
const functionParam = param; | ||
return (yield functionParam()); | ||
const result = yield functionParam(); | ||
if ((_a = result) === null || _a === void 0 ? void 0 : _a['default']) | ||
return (_b = result) === null || _b === void 0 ? void 0 : _b['default']; | ||
return result; | ||
} | ||
@@ -19,0 +23,0 @@ let translations = (yield param); |
{ | ||
"name": "text-localizer", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"main": "lib/index.js", | ||
@@ -60,4 +60,3 @@ "types": "lib/index.d.ts", | ||
"release-it": "^14.11.6" | ||
}, | ||
"gitHead": "9834af647c4dc0753e2f757ed109c94e52d27a0f" | ||
} | ||
} |
@@ -18,3 +18,3 @@ <h1 align="center"> | ||
us: import('./l10n/us.json'), | ||
uk: import('./l10n/uk'), | ||
gb: import('./l10n/gb'), | ||
it: fetchItTranslations, | ||
@@ -24,3 +24,3 @@ }); | ||
await localizer.setOptions({ | ||
language: 'uk', | ||
language: 'gb', | ||
}); | ||
@@ -27,0 +27,0 @@ |
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
30549
537