fix tr
This commit is contained in:
@@ -40,7 +40,7 @@ function tr(string $text, string $locale = 'tk'): string
|
||||
$text = json_decode($text);
|
||||
|
||||
if ($text) {
|
||||
$text->{$locale} ?? '';
|
||||
return $text->{$locale} ?? '';
|
||||
}
|
||||
|
||||
return '';
|
||||
|
||||
Reference in New Issue
Block a user