Skip to content

Commit 0fbbbf2

Browse files
author
Antoine B
authored
Use get methods to access application locale (#44521)
* Fix access config translation service provider * Fix access config translation service provider
1 parent 1066e39 commit 0fbbbf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Translation/TranslationServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ public function register()
2222
// When registering the translator component, we'll need to set the default
2323
// locale as well as the fallback locale. So, we'll grab the application
2424
// configuration so we can easily get both of these values from there.
25-
$locale = $app['config']['app.locale'];
25+
$locale = $app->getLocale();
2626

2727
$trans = new Translator($loader, $locale);
2828

29-
$trans->setFallback($app['config']['app.fallback_locale']);
29+
$trans->setFallback($app->getFallbackLocale());
3030

3131
return $trans;
3232
});

0 commit comments

Comments
 (0)