diff --git a/src/Illuminate/Translation/TranslationServiceProvider.php b/src/Illuminate/Translation/TranslationServiceProvider.php index 7455b52afdd1..2305535e67df 100755 --- a/src/Illuminate/Translation/TranslationServiceProvider.php +++ b/src/Illuminate/Translation/TranslationServiceProvider.php @@ -22,11 +22,11 @@ public function register() // When registering the translator component, we'll need to set the default // locale as well as the fallback locale. So, we'll grab the application // configuration so we can easily get both of these values from there. - $locale = $app['config']['app.locale']; + $locale = $app->getLocale(); $trans = new Translator($loader, $locale); - $trans->setFallback($app['config']['app.fallback_locale']); + $trans->setFallback($app->getFallbackLocale()); return $trans; });