Troubles changing title name of a RelationshipManager to a __('lang') tag

I'm trying to put a ('lang.string') to a title in a RelationshipManager. When passing it by modelLabel or pluralModelLabel (now in $table builder), It doesn't translate. The thing is that title is static so putting the ('lang.sting') won't work. ¿Any ideas?
Solution:
```php public static function getTitle(Model $ownerRecord, string $pageClass): string { return __('abc'); }...
Jump to solution
2 Replies
Solution
Alvaro Leon
Alvaro Leon14mo ago
public static function getTitle(Model $ownerRecord, string $pageClass): string
{
return __('abc');
}
public static function getTitle(Model $ownerRecord, string $pageClass): string
{
return __('abc');
}
Thank you @Vp
Want results from more Discord servers?
Add your server