Skip to content

Commit

Permalink
Merge pull request #5 from buddhaCode/translatePlaceholder
Browse files Browse the repository at this point in the history
make select placeholder translatable
  • Loading branch information
andreia authored Jul 31, 2024
2 parents 9f1f4ba + c35fccc commit 6210b88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions resources/lang/en/filament-value-range-filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

return [

'range.placeholder' => 'Select condition',
'range.options.equal' => 'is equal to',
'range.options.between' => 'is between',
'range.options.greater_than' => 'is greater than',
Expand Down
2 changes: 1 addition & 1 deletion src/Filters/ValueRangeFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ protected function setUp(): void
->schema([
Forms\Components\Select::make('range_condition')
->hiddenLabel()
->placeholder('Select condition')
->placeholder(__('filament-value-range-filter::filament-value-range-filter.range.placeholder'))
->live()
->options([
'equal' => __('filament-value-range-filter::filament-value-range-filter.range.options.equal'),
Expand Down

0 comments on commit 6210b88

Please sign in to comment.