Skip to content

Commit

Permalink
Translate the date columns
Browse files Browse the repository at this point in the history
  • Loading branch information
gergo85 committed Sep 7, 2023
1 parent 5dadb07 commit 3e0919e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/lang/en/filament-firewall.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
'table.column.prefix_size' => 'Prefix',
'table.column.blocked' => 'Blocked?',
'table.column.is_allow' => 'Allow / Deny',
'table.column.created_at' => 'Created at',
'table.column.updated_at' => 'Updated at',

'form.field.ip' => 'IP',
'form.field.prefix_size' => 'Prefix',
Expand Down
2 changes: 2 additions & 0 deletions resources/lang/hu/filament-firewall.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
'table.column.prefix_size' => 'Előtag',
'table.column.blocked' => 'Blokkolva?',
'table.column.is_allow' => 'Művelet',
'table.column.created_at' => 'Létrehozva',
'table.column.updated_at' => 'Módosítva',

'form.field.ip' => 'IP cím',
'form.field.prefix_size' => 'Előtag',
Expand Down
2 changes: 2 additions & 0 deletions src/Filament/Resources/FirewallIpResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ public static function table(Table $table): Table
->trueIcon('heroicon-o-x-circle')
->trueColor('danger'),
Tables\Columns\TextColumn::make('created_at')
->label(__('filament-firewall::filament-firewall.table.column.created_at'))
->sortable(),
Tables\Columns\TextColumn::make('updated_at')
->label(__('filament-firewall::filament-firewall.table.column.updated_at'))
->sortable(),
])
->filters([
Expand Down

0 comments on commit 3e0919e

Please sign in to comment.