@uppy/drag-drop
Advanced tools
Comparing version 0.27.4 to 0.28.0
@@ -58,7 +58,4 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
_this.locale = _extends({}, defaultLocale, _this.opts.locale); | ||
_this.locale.strings = _extends({}, defaultLocale.strings, _this.opts.locale.strings); | ||
// i18n | ||
_this.translator = new Translator({ locale: _this.locale }); | ||
_this.translator = new Translator([defaultLocale, _this.uppy.locale, _this.opts.locale]); | ||
_this.i18n = _this.translator.translate.bind(_this.translator); | ||
@@ -65,0 +62,0 @@ _this.i18nArray = _this.translator.translateArray.bind(_this.translator); |
{ | ||
"name": "@uppy/drag-drop", | ||
"description": "Droppable zone UI for Uppy. Drag and drop files into it to upload.", | ||
"version": "0.27.4", | ||
"version": "0.28.0", | ||
"license": "MIT", | ||
@@ -29,3 +29,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@uppy/utils": "0.27.1", | ||
"@uppy/utils": "0.28.0", | ||
"drag-drop": "2.13.3", | ||
@@ -35,8 +35,8 @@ "preact": "^8.2.9" | ||
"devDependencies": { | ||
"@uppy/core": "0.27.3" | ||
"@uppy/core": "0.28.0" | ||
}, | ||
"peerDependencies": { | ||
"@uppy/core": "^0.27.0" | ||
"@uppy/core": "^0.28.0" | ||
}, | ||
"gitHead": "113d6f09bbe248ca156af87054244cd9e6ee9d8b" | ||
"gitHead": "47a68a6148a41c7b8a1e10e78b6cd6794a53f7e5" | ||
} |
@@ -41,7 +41,4 @@ const { Plugin } = require('@uppy/core') | ||
this.locale = Object.assign({}, defaultLocale, this.opts.locale) | ||
this.locale.strings = Object.assign({}, defaultLocale.strings, this.opts.locale.strings) | ||
// i18n | ||
this.translator = new Translator({locale: this.locale}) | ||
this.translator = new Translator([ defaultLocale, this.uppy.locale, this.opts.locale ]) | ||
this.i18n = this.translator.translate.bind(this.translator) | ||
@@ -48,0 +45,0 @@ this.i18nArray = this.translator.translateArray.bind(this.translator) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
30381
559
+ Added@uppy/core@0.28.0(transitive)
+ Added@uppy/utils@0.28.0(transitive)
- Removed@uppy/core@0.27.3(transitive)
- Removed@uppy/utils@0.27.1(transitive)
Updated@uppy/utils@0.28.0