diff --git a/app/Data/ItemsCollection.php b/app/Data/ItemsCollection.php index d339982..6bbc9da 100644 --- a/app/Data/ItemsCollection.php +++ b/app/Data/ItemsCollection.php @@ -45,6 +45,7 @@ class ItemsCollection return [ '_id' => $item['_id'], '_name' => $item['_name'], + 'locale' => $this->locale[$item['_id']] ?? '' ]; })->values(); } @@ -59,7 +60,6 @@ class ItemsCollection $item = $this->items[$id] ?? throw new ItemNotFoundException('Item not found'); return [ 'item' => $item, - 'locale' => $this->locale[$id] ?? '' ]; } }