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:Jump to solution
```php
public static function getTitle(Model $ownerRecord, string $pageClass): string
{
return __('abc');
}...
2 Replies
Solution
Thank you @Vp