From 9bd025f6176f7903c0a9130f9aeb27581561ef4c Mon Sep 17 00:00:00 2001 From: Leandro Henrique Reis Date: Sun, 7 Oct 2018 17:00:37 -0300 Subject: [PATCH] Allow translate name of category --- src/NovaCategorise.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NovaCategorise.php b/src/NovaCategorise.php index d29fd8f..65114ad 100644 --- a/src/NovaCategorise.php +++ b/src/NovaCategorise.php @@ -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');