mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-22 17:58:05 +00:00
remove duplicate i18nInit — it’s in BasePlugin
This commit is contained in:
parent
0f32a5c397
commit
93fb080926
1 changed files with 0 additions and 12 deletions
|
|
@ -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}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue