Skip to content

Commit d93e285

Browse files
authored
Minor Localisation Tweaks
1 parent a6a6b05 commit d93e285

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
@aware(['isTailwind','isBootstrap','isBootstrap4','isBootstrap5'])
2+
@if ($isTailwind)
3+
<button
4+
wire:click.prevent="setFilterDefaults"
5+
@class([
6+
"focus:outline-none active:outline-none"
7+
])>
8+
<span @class([
9+
"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",
10+
"bg-gray-100 text-gray-800 dark:bg-gray-200 dark:text-gray-900"
11+
])>
12+
{{ __('livewire-tables::core.Clear') }}
13+
</span>
14+
</button>
15+
@else
16+
<a
17+
href="#"
18+
wire:click.prevent="setFilterDefaults"
19+
@class([
20+
'badge badge-pill badge-light' => $isBootstrap4,
21+
'badge rounded-pill bg-light text-dark text-decoration-none' => $isBootstrap5,
22+
])>
23+
{{ __('livewire-tables::core.Clear') }}
24+
</a>
25+
@endif

resources/views/components/tools/filter-pills/buttons/reset-filter.blade.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"text-indigo-400 hover:bg-indigo-200 hover:text-indigo-500 focus:bg-indigo-500 focus:text-white",
1010
])
1111
>
12-
<span class="sr-only">@lang('livewire-tables::Remove filter option')</span>
12+
<span class="sr-only">{{ __('livewire-tables::core.Remove filter option') }}</span>
1313
<x-heroicon-m-x-mark class="h-full" />
1414
</button>
1515
@else
@@ -23,9 +23,8 @@
2323
<span @class([
2424
'sr-only' => $isBootstrap4,
2525
'visually-hidden' => $isBootstrap5,
26-
])>
27-
@lang('livewire-tables::Remove filter option')
28-
</span>
26+
])>{{ __('livewire-tables::core.Remove filter option') }}
27+
</span>
2928
<x-heroicon-m-x-mark class="laravel-livewire-tables-btn-tiny" />
3029
</a>
3130
@endif

0 commit comments

Comments
 (0)