F
Filament8mo ago
Eddy

Translating FileUpload component

Hi everyone, Is there a way to change the text in the Filament\Forms\Components\FileUpload component? In my case specifically I would like to be able to translate the "Drag & Drop your files or Browse" text to Spanish, but I can't seem to find something like ->label() or ->text() that works here. Thanks a lot in advance for the help!
No description
3 Replies
Sjoerd24
Sjoerd248mo ago
You have to change the laravel local language settings. Then this language (and all language in filament) will change (if your language is available)
Eddy
EddyOP8mo ago
Thank you for the answer @Sjoerd24! Interestingly, I had the locale set to es_PE, which I believe worked for most automatic translations but not this one. Changing it to es makes it work indeed, although I'm afraid it will now translate other strings using the Spain variant of Spanish instead of the Peruvian one. But this is something I'll need to investigate further and is out of the scope of this issue. Thank you!
Sjoerd24
Sjoerd248mo ago
You’re welcome, glad it helped!
Want results from more Discord servers?
Add your server