Topic: File upload - language codes

jespenhain premium asked 5 years ago


**Expected behavior** Its possible to manually change the text of the component (for other languages)\*_Actual behavior_\*File upload text is only in english**Resources (screenshots, code snippets etc.)**The text i would like to replace is "remove" and "drag and drop or click to remove" and "Drag and drop or click to replace". So just all phrases, which are build in.

you can see it on your page: https://mdbootstrap.com/plugins/angular/file-upload/


Damian Gemza staff answered 5 years ago


Dear @jespenhain

Unfortunately, for now, there's no such possibility. I'll add this to our features list, and we'll implement such inputs in the nearest future.

Till now, please use the below workaround - change mdb-file-upload internal paragraph dynamically:

ngAfterViewInit() {
    const paragraph = this.el.nativeElement.querySelector('.upload-message').lastElementChild;
    paragraph.textContent = 'Text changed';
  }

Best Regards,

Damian


jespenhain premium answered 5 years ago


Dear @Damian Gemza,

you can see it here: https://mdbootstrap.com/plugins/angular/file-upload/ i would like to replace all english words like"remove", "drag and drop or click to remove", "Drag and drop or click to replace"

tanks a lot.


Damian Gemza staff answered 5 years ago


Dear @jespenhain

Could you please specify which text exactly you want to change?

Please provide me with some code or screenshots.

Best Regards,

Damian



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Premium
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: 7.5.1
  • Device: All
  • Browser: All (latest Version)
  • OS: All
  • Provided sample code: No
  • Provided link: Yes