Translate RelationManager Title

Hello there I can't transalte the title of a RelationManager in "CategoriesRelationManager" I tried : 1. public static function getPluralModelLabel(): string { return ('fields.categories'); }
2. public static ?string $pluralModelLabel = "Categorias"; 3. $table->recordTitle(fn (): string => "Categorias") 4. $table->recordTitle(fn (): string =>
('fields.categories')) But " public static function getModelLabel(): string { return __('fields.category'); } " is working correctly. thanks for your help
No description
Solution:
return $table
->heading('Categorias')
...
return $table
->heading('Categorias')
...
...
Jump to solution
5 Replies
Solution
LeandroFerreira
return $table
->heading('Categorias')
...
return $table
->heading('Categorias')
...
Juan Duarte Molina
As simple as that! Great! muito obrigado, Leandro!
Sjoerd24
Sjoerd242y ago
thanks that also solved a problem I was having! Do you know by any change how you change the names of the relationships? (translate it)?
No description
Sjoerd24
Sjoerd242y ago
thanks that worked!

Did you find this page helpful?