label field type relationship #521
Replies: 2 comments
-
Hello @AndresGarota You should be able to translate it the same way you are translating If you change it to: Cheers |
Beta Was this translation helpful? Give feedback.
0 replies
-
Due to no activity, I will close this issue, but please feel free to re-open or create a new one if needed. Cheers. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
i have a question, when i use field relationship, i can translate label of pivot fields, but i can't translate primary fields, i attach an image for explain this problem.
in the image how could i translate "group" label?
this is my code:
[ // relationship
'name' => 'groups', // the method on your model that defines the relationship
'type' => "relationship",
'label' => __("group"),
'placeholder' => __("select_one_or_more"), // placeholder for the select2 input
'wrapper' => ['class' => 'form-group col-12 col-md-4 order-4',],
'subfields'=>
[
[
'name' => 'role',
'type' => 'select_from_array',
'label' => __('agent_job'),
'options' => RoleType::getAllRoles(),
],
],
],
thanks
Beta Was this translation helpful? Give feedback.
All reactions