@boost/translate
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -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 @@ |
@@ -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) { |
{ | ||
"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" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
24452
278
0
Updated@boost/common@^2.2.1
Updatedi18next@^19.7.0