Skip to content

Commit

Permalink
add translation files and german translation (stechstudio#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
josefbehr authored Feb 17, 2023
1 parent d48bf9f commit 2529eec
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 2 deletions.
5 changes: 5 additions & 0 deletions lang/de/action.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

return [
'label' => 'Imitieren',
];
6 changes: 6 additions & 0 deletions lang/de/banner.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

return [
'impersonating' => 'Imitiere Benutzer',
'leave' => 'Verlassen',
];
5 changes: 5 additions & 0 deletions lang/en/action.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

return [
'label' => 'Impersonate',
];
6 changes: 6 additions & 0 deletions lang/en/banner.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

return [
'impersonating' => 'Impersonating user',
'leave' => 'Leave',
];
4 changes: 2 additions & 2 deletions resources/views/components/banner.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@

<div id="impersonate-banner">
<div>
{{ __('Impersonating user') }} <strong>{{ $display }}</strong>
{{ __('filament-impersonate::banner.impersonating') }} <strong>{{ $display }}</strong>
</div>

<a href="{{ route('filament-impersonate.leave') }}">{{ __('Leave') }}</a>
<a href="{{ route('filament-impersonate.leave') }}">{{ __('filament-impersonate::banner.leave') }}</a>
</div>
@endIf
2 changes: 2 additions & 0 deletions src/FilamentImpersonateServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ public function boot()
$this->loadViewsFrom(__DIR__.'/../resources/views', 'impersonate');

$this->loadRoutesFrom(__DIR__.'/../routes/web.php');

$this->loadTranslationsFrom(__DIR__.'/../lang', 'filament-impersonate');
}
}

0 comments on commit 2529eec

Please sign in to comment.