Z3d0X / filament-logger

Extensible activity logger for filament that works out-of-the-box.
MIT License
287 stars 42 forks source link

Update ActivityResource.php #9

Closed invaders-xx closed 2 years ago

invaders-xx commented 2 years ago

Makes labels translated in table and form

Z3d0X commented 2 years ago

Hey thanks for this, however I think instead of just doing __('User') it would be better to scope the translations to the package language file.

  __('filament-logger::filament-logger.resource.labels.user')

Language file is already being used to customize navigation label https://github.com/Z3d0X/filament-logger/blob/main/src/Resources/ActivityResource.php#L249-L252