Skip to content

Update record title translation in AuditsRelationManager#60

Open
zvizvi wants to merge 1 commit intoTappNetwork:4.xfrom
zvizvi:patch-2
Open

Update record title translation in AuditsRelationManager#60
zvizvi wants to merge 1 commit intoTappNetwork:4.xfrom
zvizvi:patch-2

Conversation

@zvizvi
Copy link

@zvizvi zvizvi commented Jan 9, 2026

Details

Details of the feature / fix this PR addresses


Note

Improves localization of the audits table record title.

  • In AuditsRelationManager, table()->recordTitle now uses trans('filament-auditing::filament-auditing.table.heading') instead of the hardcoded 'Audit'

Written by Cursor Bugbot for commit a375d30. This will update automatically on new commits. Configure here.


return $table
->recordTitle(fn (Model $record): string => 'Audit')
->recordTitle(fn(Model $record): string => trans('filament-auditing::filament-auditing.table.heading'))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Record title incorrectly uses plural translation key

Low Severity

The recordTitle callback now uses trans('filament-auditing::filament-auditing.table.heading') which returns "Audits" (plural), but recordTitle is used for individual record references in modals and action confirmations. The original singular "Audit" was semantically correct. Using the plural form will produce grammatically incorrect UI text like "View Audits" when viewing a single record. The table.heading key is appropriate for getTitle() (table header) but not for individual record titles.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant