From 3e0919ee246a0ac1fe0199839c036a8bdd89dfc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szab=C3=B3=20Gerg=C5=91?= Date: Thu, 7 Sep 2023 15:12:02 +0200 Subject: [PATCH] Translate the date columns --- resources/lang/en/filament-firewall.php | 2 ++ resources/lang/hu/filament-firewall.php | 2 ++ src/Filament/Resources/FirewallIpResource.php | 2 ++ 3 files changed, 6 insertions(+) diff --git a/resources/lang/en/filament-firewall.php b/resources/lang/en/filament-firewall.php index cab17d2..d64e4ec 100644 --- a/resources/lang/en/filament-firewall.php +++ b/resources/lang/en/filament-firewall.php @@ -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', diff --git a/resources/lang/hu/filament-firewall.php b/resources/lang/hu/filament-firewall.php index 7a981ba..bdcdff1 100644 --- a/resources/lang/hu/filament-firewall.php +++ b/resources/lang/hu/filament-firewall.php @@ -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', diff --git a/src/Filament/Resources/FirewallIpResource.php b/src/Filament/Resources/FirewallIpResource.php index fd91b19..b186c8d 100644 --- a/src/Filament/Resources/FirewallIpResource.php +++ b/src/Filament/Resources/FirewallIpResource.php @@ -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([