Skip to content

Commit d500d96

Browse files
authored
fix setLocale/getLocale methods
1 parent 0d5b7ba commit d500d96

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/src/Traits/Path.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ public function getCachedRoutesPath()
311311
*/
312312
public function getLocale()
313313
{
314-
return '';
314+
return $this->config['app.locale'];
315315
}
316316

317317
/**
@@ -376,7 +376,8 @@ public function routesAreCached()
376376
*/
377377
public function setLocale($locale)
378378
{
379-
//return $locale;
379+
$this->config['app.locale'] = $locale;
380+
$this['translator']->setLocale($locale);
380381
}
381382

382383
/**

0 commit comments

Comments
 (0)