From 1ce26408003fee8a5b9eabcd385e57416b52670b Mon Sep 17 00:00:00 2001 From: Marcos Marcolin Date: Tue, 2 Jan 2024 14:55:10 -0300 Subject: [PATCH 1/2] fix: adjust the conversion to Brazilian Portuguese (pt_BR). --- README.md | 8 +++++++- resources/lang/{pt_br => pt_BR}/filament-logger.php | 1 - 2 files changed, 7 insertions(+), 2 deletions(-) rename resources/lang/{pt_br => pt_BR}/filament-logger.php (99%) diff --git a/README.md b/README.md index c89a9b6..5057500 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,13 @@ class AuthServiceProvider extends ServiceProvider ``` > If you are using [Shield](https://filamentphp.com/plugins/shield) just register the ActivityPolicy generated by it +## Translations +Publish the translations using: + +```bash +php artisan vendor:publish --tag="filament-logger-translations" +``` + ## Activity Model resolution The main `Activity` class being used by the Filament Resource instance will be resolved by Spatie's service provider, which loads the model defined by the configuration key found at `activitylog.activity_model` in `config/activitylog.php`. @@ -81,7 +88,6 @@ The main `Activity` class being used by the Filament Resource instance will be r logger-detail-1 logger-detail-2 - ## Changelog Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently. diff --git a/resources/lang/pt_br/filament-logger.php b/resources/lang/pt_BR/filament-logger.php similarity index 99% rename from resources/lang/pt_br/filament-logger.php rename to resources/lang/pt_BR/filament-logger.php index 7d0023e..c59e4a8 100644 --- a/resources/lang/pt_br/filament-logger.php +++ b/resources/lang/pt_BR/filament-logger.php @@ -21,5 +21,4 @@ 'resource.label.event' => 'Evento', 'resource.label.logged_at' => 'Registrado em', 'resource.label.properties' => 'Propriedades', - ]; From e4900c65352c7e1cfd418f2a0d935fb375704c61 Mon Sep 17 00:00:00 2001 From: Marcos Marcolin Date: Tue, 2 Jan 2024 15:16:05 -0300 Subject: [PATCH 2/2] fix: add missing translations. --- resources/lang/pt_BR/filament-logger.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/lang/pt_BR/filament-logger.php b/resources/lang/pt_BR/filament-logger.php index c59e4a8..3083918 100644 --- a/resources/lang/pt_BR/filament-logger.php +++ b/resources/lang/pt_BR/filament-logger.php @@ -21,4 +21,6 @@ 'resource.label.event' => 'Evento', 'resource.label.logged_at' => 'Registrado em', 'resource.label.properties' => 'Propriedades', + 'resource.label.old_value' => 'Valor antigo', + 'resource.label.new_value' => 'Novo valor', ];