This commit is contained in:
Mekan1206
2026-05-04 16:34:33 +05:00
parent a6cf6410b2
commit 24b85763e5
2 changed files with 2 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ function tr(string $text, string $locale = 'tk'): string
$text = json_decode($text);
if ($text) {
$text->{$locale} ?? '';
return $text->{$locale} ?? '';
}
return '';

View File

@@ -150,7 +150,7 @@ class FilterController extends Controller
->map(fn ($category) => [
'id' => $category->id,
'parent_id' => $category->parent_id,
'name' => $category->name,
'name' => tr($category->name),
]);
}