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 84180a2 commit 8625aaaCopy full SHA for 8625aaa
TranslatorTrait.php
@@ -35,7 +35,7 @@ public function setLocale($locale)
35
*/
36
public function getLocale()
37
{
38
- return $this->locale ?: \Locale::getDefault();
+ return $this->locale ?: (class_exists(\Locale::class) ? \Locale::getDefault() : 'en');
39
}
40
41
/**
0 commit comments