© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
10 replies
Soundmit

translate notifications

i send notification to user with this code
Notification::make()
                    ->title(__('repair.status_change'))
                    ->body(__('repair.status_change_body_customer', [
                        'originalStatus' => str($repair->getOriginal('repair_status')->getLabel()),
                        'newStatus' => str($repair->repair_status->getLabel()),
                        'item'  => $repair->brand->name.' '.$repair->item->name,
                        'link' => '<a class="underline" href="/customer/my-repairs/">'.__('repair.open_for_more_details').'</a>'
                    ]))
                    ->sendToDatabase($repair->customer->user);
Notification::make()
                    ->title(__('repair.status_change'))
                    ->body(__('repair.status_change_body_customer', [
                        'originalStatus' => str($repair->getOriginal('repair_status')->getLabel()),
                        'newStatus' => str($repair->repair_status->getLabel()),
                        'item'  => $repair->brand->name.' '.$repair->item->name,
                        'link' => '<a class="underline" href="/customer/my-repairs/">'.__('repair.open_for_more_details').'</a>'
                    ]))
                    ->sendToDatabase($repair->customer->user);

app language is italian
user language is english, his ui is all translated in english but notification are sent in italian...

if admin UI is set to english, notification are sent in english

any suggestion?
thanks
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Translate Database Notifications?
FilamentFFilament / ❓┊help
2y ago
Sortable Translate
FilamentFFilament / ❓┊help
3y ago
navigationGroups translate
FilamentFFilament / ❓┊help
3y ago
Translate filament
FilamentFFilament / ❓┊help
3y ago