Skip to content

Commit 0ba725d

Browse files
Update price filter translations and labels
1 parent faa217f commit 0ba725d

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

resources/lang/en/price-filter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
// translations for CodeWithDennis/FilamentPriceFilter
43
return [
5-
//
4+
'from' => 'from',
5+
'to' => 'to',
66
];

resources/lang/nl/price-filter.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
return [
4+
'from' => 'van',
5+
'to' => 'tot',
6+
];

src/Filament/Tables/Filters/PriceFilter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@ protected function setUp(): void
100100
$this->form(function () {
101101
return [
102102
TextInput::make('from')
103-
->label(__($this->getLabel() . ' from'))
103+
->label($this->getLabel() . ' ' . __('filament-price-filter::price-filter.from'))
104104
->prefix($this->getCurrencySymbol($this->getCurrency()))
105105
->minValue($this->getMin())
106106
->maxValue($this->getMax())
107107
->numeric(),
108108
TextInput::make('to')
109-
->label(__($this->getLabel() . ' to'))
109+
->label($this->getLabel() . ' ' . __('filament-price-filter::price-filter.to'))
110110
->prefix($this->getCurrencySymbol($this->getCurrency()))
111111
->minValue($this->getMin())
112112
->maxValue($this->getMax())

0 commit comments

Comments
 (0)