diff --git a/config/translation-manager.php b/config/translation-manager.php index 405a58b..ba53310 100644 --- a/config/translation-manager.php +++ b/config/translation-manager.php @@ -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 diff --git a/src/Resources/LanguageLineResource.php b/src/Resources/LanguageLineResource.php index b29b735..33f9974 100644 --- a/src/Resources/LanguageLineResource.php +++ b/src/Resources/LanguageLineResource.php @@ -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')) {