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 1066e39 commit 0fbbbf2Copy full SHA for 0fbbbf2
src/Illuminate/Translation/TranslationServiceProvider.php
@@ -22,11 +22,11 @@ public function register()
22
// When registering the translator component, we'll need to set the default
23
// locale as well as the fallback locale. So, we'll grab the application
24
// configuration so we can easily get both of these values from there.
25
- $locale = $app['config']['app.locale'];
+ $locale = $app->getLocale();
26
27
$trans = new Translator($loader, $locale);
28
29
- $trans->setFallback($app['config']['app.fallback_locale']);
+ $trans->setFallback($app->getFallbackLocale());
30
31
return $trans;
32
});
0 commit comments