Skip to content

Commit

Permalink
call setlocale
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Apr 8, 2020
1 parent 4ef5f96 commit 1c6a504
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Illuminate/Translation/Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ class Translator extends NamespacedItemResolver implements TranslatorContract
public function __construct(Loader $loader, $locale)
{
$this->loader = $loader;
$this->locale = $locale;

$this->setLocale($locale);
}

/**
Expand Down

0 comments on commit 1c6a504

Please sign in to comment.