How to make translatable the $modelLabel and $pluralModelLabel?

This does not work: protected static ?string $modelLabel = __('Post');
2 Replies
Dan Harrin
Dan Harrin2y ago
please read the docs on "model label"
Falk Maria Zeitsprung
public static function getModelLabel(): string
{
return __('filament/resources/customer.label');
}
public static function getModelLabel(): string
{
return __('filament/resources/customer.label');
}
Thanks!!!!
Want results from more Discord servers?
Add your server