© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•15mo ago•
9 replies
Paweł Wawrzyniak

Translate the modal

I want to translate the message 'Please fill out this field`

use Filament\Tables\Actions\Action;
use Filament\Forms\Components\Textarea;
      
Action::make(name: 'action')
            ->label(label: __(key: 'filament/user.label'))
            ->form(form: [
                Textarea::make(name: 'field')
                    ->label(label: __(key: 'filament/user.description'))
                    ->maxLength(length: 10_000)
                    ->required(),
            ])
            ->validationMessages(messages: [
                'required' => __(key: 'filament/user.description_required'),
            ])
            ->successNotificationTitle(title: __(key: 'filament/user.notifications.success'))
use Filament\Tables\Actions\Action;
use Filament\Forms\Components\Textarea;
      
Action::make(name: 'action')
            ->label(label: __(key: 'filament/user.label'))
            ->form(form: [
                Textarea::make(name: 'field')
                    ->label(label: __(key: 'filament/user.description'))
                    ->maxLength(length: 10_000)
                    ->required(),
            ])
            ->validationMessages(messages: [
                'required' => __(key: 'filament/user.description_required'),
            ])
            ->successNotificationTitle(title: __(key: 'filament/user.notifications.success'))


where can I find this translation in Textarea in Modal
I tried to find translations after publishing translations https://filamentphp.com/docs/3.x/panels/installation#publishing-translations, but I can not find matched value for this.
image.png
Solution
->extraInputAttributes([
    'oninvalid' => 'this.setCustomValidity(\'Custom title\')',
    'oninput' => 'this.setCustomValidity(\'\')',
])
->extraInputAttributes([
    'oninvalid' => 'this.setCustomValidity(\'Custom title\')',
    'oninput' => 'this.setCustomValidity(\'\')',
])
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Customize / translate CreateAction modal title
FilamentFFilament / ❓┊help
3y ago
Quick way to translate modal "Cancel" button?
FilamentFFilament / ❓┊help
2y ago
Livewire Component on ModalContent close modal
FilamentFFilament / ❓┊help
2y ago
translate notifications
FilamentFFilament / ❓┊help
2y ago