Skip to content

Conversation

@CodeWithDennis
Copy link
Owner

This pull request introduces a new method to the AppServiceProvider to automatically enable label translation for several Filament UI components. The goal is to ensure that labels for fields, filters, placeholders, columns, and entries are translated consistently throughout the application.

Enhancements for translatable UI components:

  • Added a translatableComponents method to AppServiceProvider that configures Filament components (Field, BaseFilter, Placeholder, Column, Entry) to automatically translate their labels by calling translateLabel() during configuration.
  • Registered the new translatableComponents method in the boot lifecycle of the service provider to ensure the translation logic is applied at application startup.

Dependency and import updates:

  • Added necessary use statements for Filament component classes and traits at the top of AppServiceProvider.php to support the new translation configuration.

@CodeWithDennis CodeWithDennis merged commit 74c11f0 into 5.x Jan 27, 2026
6 checks passed
@CodeWithDennis CodeWithDennis deleted the feature/add-translatable-components-back branch January 27, 2026 17:36
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.

2 participants