© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
Dody

How to translate the custom page tile

I have a custom page with title
protected static ?string $title = 'Broadcast';

How to localize it because the following code is error
protected static ?string $title = __('Broadcast');

Thank you
Solution
remove $title and use getTitle
public function getTitle(): string|Htmlable
    {
        return __('Broadcast');
    }
public function getTitle(): string|Htmlable
    {
        return __('Broadcast');
    }
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How to translate login page
FilamentFFilament / ❓┊help
17mo ago
How to use the custom page?
FilamentFFilament / ❓┊help
2y ago
How to custom page form
FilamentFFilament / ❓┊help
3y ago
how to create custom page
FilamentFFilament / ❓┊help
3y ago