F
Filament3mo 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 Zeus3mo ago
you can add to the relation class
public static function getNavigationLabel(): string
{
return __('...');
}
public static function getNavigationLabel(): string
{
return __('...');
}
Erlich
ErlichOP3mo ago
Hi friend. This code not working
No description
No description
Solution
dissto
dissto3mo 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
ErlichOP3mo ago
it worked. Thank you very much
No description
No description
Want results from more Discord servers?
Add your server