Skip to content

Commit

Permalink
Allow translate name of category
Browse files Browse the repository at this point in the history
  • Loading branch information
emtudo authored Oct 7, 2018
1 parent d9a3219 commit 9bd025f
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 9bd025f

Please sign in to comment.