Add localization support for Pages in Filament admin panel: Introduced language files for English and Turkish, added translation methods for page titles and notifications in Create, Edit, and List pages, enhancing user experience and accessibility.

This commit is contained in:
Ümit Tunç
2025-09-27 14:52:55 -03:00
parent 3520861dab
commit 26401cdb91
6 changed files with 154 additions and 4 deletions
@@ -22,6 +22,21 @@ class PageResource extends Resource
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedDocumentText;
public static function getNavigationLabel(): string
{
return __('pages.navigation_label');
}
public static function getModelLabel(): string
{
return __('pages.model_label');
}
public static function getPluralModelLabel(): string
{
return __('pages.plural_model_label');
}
public static function form(Schema $schema): Schema
{
return PageForm::configure($schema);