@uppy/webcam
Advanced tools
Comparing version 0.27.4 to 0.28.0
@@ -89,8 +89,6 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
_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); | ||
_this.i18nArray = _this.translator.translateArray.bind(_this.translator); | ||
@@ -97,0 +95,0 @@ _this.install = _this.install.bind(_this); |
{ | ||
"name": "@uppy/webcam", | ||
"description": "Uppy plugin that takes photos or records videos using the device's camera.", | ||
"version": "0.27.4", | ||
"version": "0.28.0", | ||
"license": "MIT", | ||
@@ -30,12 +30,12 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@uppy/utils": "0.27.1", | ||
"@uppy/utils": "0.28.0", | ||
"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" | ||
} |
@@ -75,8 +75,6 @@ const { h } = require('preact') | ||
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) | ||
this.i18nArray = this.translator.translateArray.bind(this.translator) | ||
@@ -83,0 +81,0 @@ this.install = this.install.bind(this) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
57435
1189
+ 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