remove duplicate i18nInit — it’s in BasePlugin

This commit is contained in:
Artur Paikin 2021-07-30 11:37:11 +01:00
parent 0f32a5c397
commit 93fb080926

View file

@ -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}`,