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 2f0710d commit 9af543bCopy full SHA for 9af543b
Eloquent/Translate.php
@@ -25,9 +25,9 @@ class Translate implements JsonSerializable {
25
*/
26
public function __construct($string = '', $domain = '')
27
{
28
- $decode = is_string($string) ? json_decode($string, true) : $string;
+ $decode = is_string($string) ? json_decode($string, true) : $string;
29
$this->translations = $decode ? $decode : [
30
- config('app.fallback_locale') => $string
+ config('app.fallback_locale') => $string != '{}' ? $string : null
31
];
32
$this->locale = Translator::getLocale();
33
}
0 commit comments