Skip to content

Commit

Permalink
Merge pull request #9 from emtudo/patch-1
Browse files Browse the repository at this point in the history
Allow translate name of category
  • Loading branch information
alexbowers authored Nov 14, 2018
2 parents ea0360c + 9bd025f commit f9c2f32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NovaCategorise.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static function availableResourcesGrouped(Request $request)
return $resource::$displayInNavigation;
})->groupBy(function ($resource) {
if (property_exists($resource, 'category')) {
return ucwords($resource::$category);
return __(ucwords($resource::$category));
}

return __('Other');
Expand Down

0 comments on commit f9c2f32

Please sign in to comment.