Skip to content

Commit

Permalink
Fix issue preventing labels from being translated (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
milewski authored Oct 14, 2023
1 parent 9dd03cd commit ef9c615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Filepond.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ private function getLabels(): Collection
return collect(config('nova-filepond.labels', []))
->merge($this->meta[ 'labels' ] ?? [])
->mapWithKeys(fn (string $label, string $key) => [
sprintf('label%s', Str::title($key)) => Nova::__($label),
Str::of($key)->prepend('label_')->camel()->value() => Nova::__($label),
]);
}

Expand Down

0 comments on commit ef9c615

Please sign in to comment.