Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit b5e4ad6

Browse files
committed
typo
1 parent 52baf7c commit b5e4ad6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Traits/RoutesTrait.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,10 @@ trait RoutesTrait
1313
{
1414
protected $allRoutes = [];
1515
protected $localeCodes;
16-
protected $crntLocale;
1716
protected $listFileFound = true;
1817

1918
public function createRoutes()
2019
{
21-
$this->crntLocale = app()->getLocale();
22-
2320
Route::group([
2421
'prefix' => LaravelLocalization::setLocale(),
2522
'middleware' => [
@@ -70,9 +67,9 @@ protected function pageComp($page)
7067
$breadCrump = $page->getAncestors();
7168

7269
// route data
73-
$url = $page->getTranslationWithoutFallback('url', $this->crntLocale);
70+
$url = $page->getTranslationWithoutFallback('url', app()->getLocale());
7471
$action = $page->action;
75-
$prefix = $page->getTranslationWithoutFallback('prefix', $this->crntLocale);
72+
$prefix = $page->getTranslationWithoutFallback('prefix', app()->getLocale());
7673
$routeName = $page->route_name;
7774

7875
// middlewares

0 commit comments

Comments
 (0)