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 2.1.0 to 2.1.1

12

CHANGELOG.md

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

### 2.1.1 - 2020-09-15
#### 📦 Dependencies
- **[i18next]** Update to v19.7. ([596cac3](https://github.com/milesj/boost/commit/596cac3))
**Note:** Version bump only for package @boost/translate
## 2.1.0 - 2020-08-17

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

15

lib/index.js

@@ -5,9 +5,12 @@ 'use strict';

function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var i18next = _interopDefault(require('i18next'));
var i18next = require('i18next');
var common = require('@boost/common');
var internal = require('@boost/internal');
var osLocale = _interopDefault(require('os-locale'));
var osLocale = require('os-locale');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var i18next__default = /*#__PURE__*/_interopDefaultLegacy(i18next);
var osLocale__default = /*#__PURE__*/_interopDefaultLegacy(osLocale);
const errors = {

@@ -60,3 +63,3 @@ LOCALE_REQUIRED: 'A locale must be defined if auto-detection is disabled.',

detectFromOS() {
const locale = osLocale.sync().replace(/_/gu, '-');
const locale = osLocale__default['default'].sync().replace(/_/gu, '-');
debug('Locale "%s" detected from operating system', locale);

@@ -163,3 +166,3 @@ return locale;

debug('New translator created: %s namespace(s)', namespaces.join(', '));
const translator = i18next.createInstance().use(new FileBackend());
const translator = i18next__default['default'].createInstance().use(new FileBackend());

@@ -166,0 +169,0 @@ if (autoDetect) {

8

package.json
{
"name": "@boost/translate",
"version": "2.1.0",
"version": "2.1.1",
"release": "1594765247526",

@@ -25,5 +25,5 @@ "description": "Package and application level translations made easy.",

"dependencies": {
"@boost/common": "^2.2.0",
"@boost/common": "^2.2.1",
"@boost/internal": "^2.1.0",
"i18next": "^19.5.6",
"i18next": "^19.7.0",
"os-locale": "^5.0.0"

@@ -35,3 +35,3 @@ },

},
"gitHead": "7982950ce80d97d1815234ee0d66b5dc4ac3a843"
"gitHead": "cb8ff01f674543255334eb8c3d9a85c1b6dbc790"
}
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