From 93fb08092632a050710df03294e59bc4ae077bb3 Mon Sep 17 00:00:00 2001 From: Artur Paikin Date: Fri, 30 Jul 2021 11:37:11 +0100 Subject: [PATCH] =?UTF-8?q?remove=20duplicate=20i18nInit=20=E2=80=94=20it?= =?UTF-8?q?=E2=80=99s=20in=20BasePlugin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/@uppy/transloadit/src/index.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/packages/@uppy/transloadit/src/index.js b/packages/@uppy/transloadit/src/index.js index 17a6368a6..8531e8675 100644 --- a/packages/@uppy/transloadit/src/index.js +++ b/packages/@uppy/transloadit/src/index.js @@ -82,18 +82,6 @@ module.exports = class Transloadit extends BasePlugin { this.completedFiles = Object.create(null) } - setOptions (newOpts) { - super.setOptions(newOpts) - this.i18nInit() - } - - i18nInit () { - this.translator = new Translator([this.defaultLocale, this.uppy.locale, this.opts.locale]) - this.i18n = this.translator.translate.bind(this.translator) - this.i18nArray = this.translator.translateArray.bind(this.translator) - this.setPluginState() // so that UI re-renders and we see the updated locale - } - #getClientVersion () { const list = [ `uppy-core:${this.uppy.constructor.VERSION}`,