Topic: File upload - language codes
jespenhain pro premium asked 6 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 6 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
Damian Gemza staff answered 6 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
jespenhain pro premium answered 6 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.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- 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