diff --git a/stubs/App/Filament/Pages/CreateTeam.php b/stubs/App/Filament/Pages/CreateTeam.php index e7251ad..be9ecfe 100644 --- a/stubs/App/Filament/Pages/CreateTeam.php +++ b/stubs/App/Filament/Pages/CreateTeam.php @@ -11,14 +11,15 @@ class CreateTeam extends RegisterTenant { public static function getLabel(): string { - return 'Create Team'; + return __('Create Team'); } public function form(Form $form): Form { return $form ->schema([ - TextInput::make('name'), + TextInput::make('name') + ->translateLabel(), ]); } diff --git a/stubs/App/Filament/Pages/EditTeam.php b/stubs/App/Filament/Pages/EditTeam.php index ac5b374..d499db7 100644 --- a/stubs/App/Filament/Pages/EditTeam.php +++ b/stubs/App/Filament/Pages/EditTeam.php @@ -13,7 +13,7 @@ class EditTeam extends EditTenantProfile public static function getLabel(): string { - return 'Team Settings'; + return __('Team Settings'); } protected function getViewData(): array diff --git a/stubs/App/Providers/Filament/AppPanelProvider.php b/stubs/App/Providers/Filament/AppPanelProvider.php index 98b44ac..1b816ca 100644 --- a/stubs/App/Providers/Filament/AppPanelProvider.php +++ b/stubs/App/Providers/Filament/AppPanelProvider.php @@ -100,7 +100,7 @@ public function panel(Panel $panel): Panel ->tenantProfile(EditTeam::class) ->userMenuItems([ MenuItem::make() - ->label('Team Settings') + ->label(__('Team Settings')) ->icon('heroicon-o-cog-6-tooth') ->url(fn () => $this->shouldRegisterMenuItem() ? url(EditTeam::getUrl())