Skip to content

Commit

Permalink
show provider source
Browse files Browse the repository at this point in the history
  • Loading branch information
devajmeireles committed Sep 17, 2024
1 parent 22d4d27 commit 0fed669
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lang/en/messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
return [
'environment' => 'Environment:',
'branch' => 'Branch:',
'release' => 'Latest Release:',
'release' => 'Latest <b>:Source</b> Release:',
];
File renamed without changes.
2 changes: 1 addition & 1 deletion lang/pt_BR/messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
return [
'environment' => 'Ambiente:',
'branch' => 'Branch:',
'release' => 'Última Release:',
'release' => 'Última Release do <b>:Source:</b>',
];
2 changes: 1 addition & 1 deletion resources/views/components/envbar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
@if ($environment['release'] !== null)
<div class="eb-inline-flex eb-items-center eb-gap-1">
<x-envbar::icons.tag @class($colors['icons']) />
<p>@lang('envbar::messages.release')</p>
<p>@lang('envbar::messages.release', ['source' => $environment['provider']])</p>
<x-envbar::badge :size="$configuration['size']">{{ $environment['release'] }}</x-envbar::badge>
</div>
@endif
Expand Down
1 change: 1 addition & 0 deletions src/Compilers/EnvBarComponentCompiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion src/Providers/AbstractProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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))) {
Expand Down

0 comments on commit 0fed669

Please sign in to comment.