Skip to content

Commit

Permalink
-modify page titles for language
Browse files Browse the repository at this point in the history
	modified:   stubs/app/Filament/Pages/Companies/Create.php
	modified:   stubs/app/Filament/Pages/Companies/Show.php
	modified:   stubs/app/Filament/Pages/User/ApiTokens.php
	modified:   stubs/app/Filament/Pages/User/Profile.php
  • Loading branch information
andrewdwallo committed Jan 11, 2023
1 parent 36154dc commit eb96f9d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
7 changes: 5 additions & 2 deletions stubs/app/Filament/Pages/Companies/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@

class Create extends Page
{
protected static ?string $title = 'Create Company';

protected static ?string $slug = 'create';

protected static ?string $navigationIcon = 'heroicon-o-document-text';

protected static string $view = 'filament.pages.companies.create';

protected static bool $shouldRegisterNavigation = false;

protected function getTitle(): string
{
return __('filament-companies::default.pages.titles.create_company');
}
}
7 changes: 5 additions & 2 deletions stubs/app/Filament/Pages/Companies/Show.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

class Show extends Page
{
protected static ?string $title = 'Company Settings';

protected static ?string $slug = 'show';

protected static ?string $navigationIcon = 'heroicon-o-document-text';
Expand All @@ -16,6 +14,11 @@ class Show extends Page

protected static bool $shouldRegisterNavigation = false;

protected function getTitle(): string
{
return __('filament-companies::default.pages.titles.company_settings');
}

protected function getViewData(): array
{
return [
Expand Down
7 changes: 5 additions & 2 deletions stubs/app/Filament/Pages/User/ApiTokens.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@

class ApiTokens extends Page
{
protected static ?string $title = 'API Tokens';

protected static ?string $slug = 'api-tokens';

protected static ?string $navigationIcon = 'heroicon-o-document-text';

protected static string $view = 'filament.pages.user.api-tokens';

protected static bool $shouldRegisterNavigation = false;

protected function getTitle(): string
{
return __('filament-companies::default.pages.titles.api_tokens');
}
}
5 changes: 5 additions & 0 deletions stubs/app/Filament/Pages/User/Profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,9 @@ class Profile extends Page
protected static string $view = 'filament.pages.user.profile';

protected static bool $shouldRegisterNavigation = false;

protected function getTitle(): string
{
return __('filament-companies::default.pages.titles.profile');
}
}

0 comments on commit eb96f9d

Please sign in to comment.