From 1c6a50424c5558782a55769a226ab834484282e1 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 8 Apr 2020 11:30:25 -0500 Subject: [PATCH] call setlocale --- src/Illuminate/Translation/Translator.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Illuminate/Translation/Translator.php b/src/Illuminate/Translation/Translator.php index cc34905d832b..ff1c75be4243 100755 --- a/src/Illuminate/Translation/Translator.php +++ b/src/Illuminate/Translation/Translator.php @@ -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); } /**