Relation Managers Tab Translations
Hi there. Any idea how i can get those tab translated?

11 Replies
Just add
->label()
I'm interested also!
with
__('key here')
label for what?
how did you defined them?
// protected static ?string $title = __('tabs.trips');
this returns error because I use translation here, and it accepts strings only
in which file are defining these tabs?
this is a relation manager
I got it .. 1- import use Illuminate\Database\Eloquent\Model;
2- protected static ?string $title = 'xxx';
3- public static function getTitle(Model $ownerRecord, string $pageClass): string
{
return __('tabs.trips');
}
for me $title (not $label) did the trick... thank you.
try to override the
public static function getTitle()
function to use a translationI did, thanks a lot!