Skip to content

Commit

Permalink
Merge pull request #28 from Skullbock/4.x
Browse files Browse the repository at this point in the history
Add Navigation icon customization
  • Loading branch information
Jehizkia authored Dec 20, 2023
2 parents a9e02df + 8a57caa commit 12d53e2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config/translation-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,18 @@

'navigation_group' => null,

/*
|--------------------------------------------------------------------------
| Navigation Icon
|--------------------------------------------------------------------------
|
| The navigation icon to use. Set `false` to disable the icon
| or specify a custom icon
|
*/

'navigation_icon' => 'heroicon-o-globe-alt',

/*
|--------------------------------------------------------------------------
| Quick-Translate Navigation Registration
Expand Down
9 changes: 9 additions & 0 deletions src/Resources/LanguageLineResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,15 @@ public static function getNavigationLabel(): string
return __('translation-manager::translations.translation-navigation-label');
}

public static function getNavigationIcon(): ?string
{
if (config('translation-manager.navigation_icon') === false) {
return null;
}

return config('translation-manager.navigation_icon', static::$navigationIcon);
}

public static function getNavigationGroup(): ?string
{
if (config('translation-manager.navigation_group_translation_key')) {
Expand Down

0 comments on commit 12d53e2

Please sign in to comment.