F
Filament2mo ago
Erlich

I need to localize Relation Manager tab

Hello guys. I need to change tab text of relation manager
No description
Solution:
```php protected static ?string $title = 'xxx'; // or ...
Jump to solution
4 Replies
Lara Zeus
Lara Zeus2mo ago
you can add to the relation class
public static function getNavigationLabel(): string
{
return __('...');
}
public static function getNavigationLabel(): string
{
return __('...');
}
Erlich
ErlichOP2mo ago
Hi friend. This code not working
No description
No description
Solution
dissto
dissto2mo ago
protected static ?string $title = 'xxx';

// or

public static function getTitle(Model $ownerRecord, string $pageClass): string
{
return __('xxx');
}
protected static ?string $title = 'xxx';

// or

public static function getTitle(Model $ownerRecord, string $pageClass): string
{
return __('xxx');
}
Erlich
ErlichOP2mo ago
it worked. Thank you very much
No description
No description
Want results from more Discord servers?
Add your server