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

@boost/translate

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@boost/translate - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

12

CHANGELOG.md

@@ -6,2 +6,14 @@ # Change Log

### 1.1.1 - 2019-09-09
#### 📦 Dependencies
- Update minor and patch versions. ([500bec6](https://github.com/milesj/boost/tree/master/packages/log/commit/500bec6))
**Note:** Version bump only for package @boost/translate
## 1.1.0 - 2019-08-03

@@ -8,0 +20,0 @@

21

lib/createTranslator.js
"use strict";
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -63,5 +52,9 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

}, handleError);
function msg(key, params, _a = {}) {
var { interpolation, locale: lng } = _a, options = __rest(_a, ["interpolation", "locale"]);
return translator.t(key, Object.assign({ interpolation: Object.assign({ escapeValue: false }, interpolation) }, options, { lng, replace: params }));
function msg(key, params, { interpolation, locale: lng, ...options } = {}) {
return translator.t(key, {
interpolation: { escapeValue: false, ...interpolation },
...options,
lng,
replace: params,
});
}

@@ -68,0 +61,0 @@ msg.dir = translator.dir();

@@ -19,4 +19,4 @@ import i18next from 'i18next';

create(): void;
read(locale: Locale, namespace: string, callback: (error: Error | null, resources: i18next.ResourceLanguage) => void): i18next.ResourceKey;
read(locale: Locale, namespace: string, callback: (error: Error | null, resources: i18next.Resource) => void): i18next.ResourceKey;
}
//# sourceMappingURL=FileBackend.d.ts.map
{
"name": "@boost/translate",
"version": "1.1.0",
"version": "1.1.1",
"description": "Package and application level translations made easy.",

@@ -26,6 +26,6 @@ "keywords": [

"@boost/internal": "^1.0.0",
"i18next": "^17.0.7",
"i18next": "^17.0.13",
"os-locale": "^4.0.0"
},
"gitHead": "df95147bce94ffa5bdddd011edf3d4261255f094"
"gitHead": "fa924fa2326f225774f05ec918c3877507a52c82"
}

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