From eee7516ab78aa3e0594a0918bbca93ee1d5afb53 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Fri, 10 Jan 2025 14:10:50 +0000 Subject: [PATCH] Group name should be translatable. --- src/Fieldtypes/UserGroups.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Fieldtypes/UserGroups.php b/src/Fieldtypes/UserGroups.php index 29204d5bc8..691e9ccc15 100644 --- a/src/Fieldtypes/UserGroups.php +++ b/src/Fieldtypes/UserGroups.php @@ -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(), ]; } @@ -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(); }