diff --git a/lang/en/messages.php b/lang/en/messages.php index f5be46a..06fce2e 100644 --- a/lang/en/messages.php +++ b/lang/en/messages.php @@ -3,5 +3,5 @@ return [ 'environment' => 'Environment:', 'branch' => 'Branch:', - 'release' => 'Latest Release:', + 'release' => 'Latest :Source Release:', ]; diff --git a/lang/en/internals.php b/lang/en/providers.php similarity index 100% rename from lang/en/internals.php rename to lang/en/providers.php diff --git a/lang/pt_BR/messages.php b/lang/pt_BR/messages.php index 6036499..f6c8b15 100644 --- a/lang/pt_BR/messages.php +++ b/lang/pt_BR/messages.php @@ -3,5 +3,5 @@ return [ 'environment' => 'Ambiente:', 'branch' => 'Branch:', - 'release' => 'Última Release:', + 'release' => 'Última Release do :Source:', ]; diff --git a/resources/views/components/envbar.blade.php b/resources/views/components/envbar.blade.php index 65b98cb..44b092b 100644 --- a/resources/views/components/envbar.blade.php +++ b/resources/views/components/envbar.blade.php @@ -29,7 +29,7 @@ @if ($environment['release'] !== null)
-

@lang('envbar::messages.release')

+

@lang('envbar::messages.release', ['source' => $environment['provider']])

{{ $environment['release'] }}
@endif diff --git a/src/Compilers/EnvBarComponentCompiler.php b/src/Compilers/EnvBarComponentCompiler.php index 79c282b..e5d26f1 100644 --- a/src/Compilers/EnvBarComponentCompiler.php +++ b/src/Compilers/EnvBarComponentCompiler.php @@ -43,6 +43,7 @@ public function __invoke(): array $variables['colors']['icons'] = Colors::icons(); $variables['environment'] = [ + 'provider' => config('envbar.provider'), 'branch' => app(GitProvider::class)->fetch(), 'release' => $this->provider(), 'environment' => app()->environment(), diff --git a/src/Providers/AbstractProvider.php b/src/Providers/AbstractProvider.php index d789840..813050e 100644 --- a/src/Providers/AbstractProvider.php +++ b/src/Providers/AbstractProvider.php @@ -42,7 +42,7 @@ public function validate(): void return; } - $title = __('envbar::internals.'.$provider, locale: 'en'); + $title = __('envbar::providers.'.$provider, locale: 'en'); foreach ($this->keys as $key) { if (blank($this->configuration->get($key))) {