Skip to content

Commit 8cb3435

Browse files
authored
fix route translation key
1 parent 77f37fe commit 8cb3435

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Providers/Provider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function getIterator()
8686

8787
protected function translate($id)
8888
{
89-
return app('translator')->has($key = 'navigation.' . $id . '.title')
89+
return app('translator')->has($key = 'navigation::routes.' . $id)
9090
? trans($key)
9191
: $this->titleCase($id);
9292
}
@@ -97,4 +97,4 @@ protected function titleCase($title)
9797

9898
return StringHumanizer::humanize($title);
9999
}
100-
}
100+
}

0 commit comments

Comments
 (0)