We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d5b7ba commit d500d96Copy full SHA for d500d96
core/src/Traits/Path.php
@@ -311,7 +311,7 @@ public function getCachedRoutesPath()
311
*/
312
public function getLocale()
313
{
314
- return '';
+ return $this->config['app.locale'];
315
}
316
317
/**
@@ -376,7 +376,8 @@ public function routesAreCached()
376
377
public function setLocale($locale)
378
379
- //return $locale;
+ $this->config['app.locale'] = $locale;
380
+ $this['translator']->setLocale($locale);
381
382
383
0 commit comments