Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use translatable labels #23

Merged
merged 2 commits into from
Nov 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading