Skip to content

Commit

Permalink
Merge pull request #22 from zvizvi/patch-1
Browse files Browse the repository at this point in the history
Use translatable labels
  • Loading branch information
stephenjude authored Nov 16, 2024
2 parents e4f1ded + 12d7702 commit 7483c86
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions stubs/App/Filament/Pages/CreateTeam.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
]);
}

Expand Down
2 changes: 1 addition & 1 deletion stubs/App/Filament/Pages/EditTeam.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class EditTeam extends EditTenantProfile

public static function getLabel(): string
{
return 'Team Settings';
return __('Team Settings');
}

protected function getViewData(): array
Expand Down
2 changes: 1 addition & 1 deletion stubs/App/Providers/Filament/AppPanelProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 7483c86

Please sign in to comment.