Skip to content

Commit 4bdb7dd

Browse files
authored
fix: daterangepicker labels (#603)
1 parent b64ebc8 commit 4bdb7dd

2 files changed

Lines changed: 41 additions & 2 deletions

File tree

app/Providers/FilamentServiceProvider.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ protected function configureForms(): void
102102

103103
DateRangePicker::configureUsing(function (DateRangePicker $component) {
104104
$component
105-
->firstDayOfWeek(0) // Override weird default of Tuesday as the first day of the week
106105
->format(static::$defaultDateDisplayFormat)
107106
->autoApply();
108107
});
@@ -112,7 +111,6 @@ protected function configureFilters(): void
112111
{
113112
DateRangeFilter::configureUsing(function (DateRangeFilter $filter) {
114113
return $filter
115-
->firstDayOfWeek(0) // Override weird default of Tuesday as the first day of the week
116114
->format(static::$defaultDateDisplayFormat)
117115
->autoApply();
118116
});
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
return [
6+
'period' => ':label: Perioada :period',
7+
'su' => 'Dum',
8+
'mo' => 'Lun',
9+
'tu' => 'Mar',
10+
'we' => 'Mie',
11+
'th' => 'Joi',
12+
'fr' => 'Vin',
13+
'sa' => 'Sâm',
14+
'custom' => 'Personalizat',
15+
'apply' => 'Aplică',
16+
'cancel' => 'Anulează',
17+
'from' => 'De la',
18+
'to' => 'Până la',
19+
'january' => 'Ianuarie',
20+
'february' => 'Februarie',
21+
'march' => 'Martie',
22+
'april' => 'Aprilie',
23+
'may' => 'Mai',
24+
'june' => 'Iunie',
25+
'july' => 'Iulie',
26+
'august' => 'August',
27+
'september' => 'Septembrie',
28+
'october' => 'Octombrie',
29+
'november' => 'Noiembrie',
30+
'december' => 'Decembrie',
31+
'today' => 'Azi',
32+
'yesterday' => 'Ieri',
33+
'last_7_days' => 'Ultimele 7 zile',
34+
'last_30_days' => 'Ultimele 30 de zile',
35+
'this_month' => 'Luna aceasta',
36+
'last_month' => 'Luna trecută',
37+
'this_year' => 'Anul acesta',
38+
'last_year' => 'Anul trecut',
39+
'clear' => 'Șterge',
40+
'weekLabel' => 'S',
41+
];

0 commit comments

Comments
 (0)