Skip to content

Commit

Permalink
Group name should be translatable.
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Jan 10, 2025
1 parent bcd529b commit eee7516
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Fieldtypes/UserGroups.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ protected function toItemArray($id, $site = null)
{
if ($group = UserGroup::find($id)) {
return [
'title' => $group->title(),
'title' => __($group->title()),
'id' => $group->handle(),
];
}
Expand All @@ -30,7 +30,7 @@ public function getIndexItems($request)
return UserGroup::all()->sortBy('title')->map(function ($group) {
return [
'id' => $group->handle(),
'title' => $group->title(),
'title' => __($group->title()),
];
})->values();
}
Expand Down

0 comments on commit eee7516

Please sign in to comment.