Skip to content

Commit d51eb14

Browse files
committed
Added translation strings for all the hardcoded texts
1 parent 5a63091 commit d51eb14

File tree

7 files changed

+17
-18
lines changed

7 files changed

+17
-18
lines changed

resources/views/components/editable.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{{-- components.editable
22
33
Render an editable input field --}}
4+
@props(['model', 'field' => ''])
45

56
<div x-data="{
67
field: '{{ $field }}',

resources/views/components/toolbar/sorting.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
<a href="#!"
2424
wire:click.prevent="sort('{{ $column }}')"
2525
title="{{ __('Sort by') }} {{ $title }} {{ __($sortOrder == 'asc' ? 'descending' : 'ascending') }}"
26-
class="group flex items-center px-4 py-2 hover:bg-gray-100 hover:text-gray-900 text-sm gap-3">
26+
class="group flex items-center px-4 py-2 hover:bg-gray-100 hover:text-gray-900 text-sm gap-3"
27+
>
2728
@if ($sortBy === $column)
28-
<i data-feather="arrow-{{ $sortOrder === 'asc' ? 'up' : 'down' }}"
29-
class="text-gray-900 h-4 w-4"></i>
29+
<i data-feather="arrow-{{ $sortOrder === 'asc' ? 'up' : 'down' }}" class="text-gray-900 h-4 w-4"></i>
3030
@else
3131
<i class="text-gray-900 h-4 w-4"></i>
3232
@endif

resources/views/grid-view/grid-view.blade.php

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
</div>
2323
@endif
2424
<x-lv-dynamic-component
25-
:view="$cardComponent"
26-
:data="array_merge($this->card($item), [
27-
'withBackground' => $withBackground,
28-
'model' => $item,
29-
'actions' => $actionsByRow,
30-
'hasDefaultAction' => $this->hasDefaultAction,
31-
'selected' => in_array($item->getKey(), $selected)
32-
])"
25+
:view="$cardComponent"
26+
:data="array_merge($this->card($item), [
27+
'withBackground' => $withBackground,
28+
'model' => $item,
29+
'actions' => $actionsByRow,
30+
'hasDefaultAction' => $this->hasDefaultAction,
31+
'selected' => in_array($item->getKey(), $selected)
32+
])"
3333
/>
3434
</div>
3535
@endforeach
@@ -39,6 +39,4 @@
3939
<div class="mt-8">
4040
{{ $items->links() }}
4141
</div>
42-
43-
@include('laravel-views::components.confirmation-message')
4442
</x-lv-layout>

resources/views/list-view/list-view.blade.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,4 @@
2323
<div class="mt-8 px-4">
2424
{{ $items->links() }}
2525
</div>
26-
27-
@include('laravel-views::components.confirmation-message')
2826
</x-lv-layout>

resources/views/table-view/table-view.blade.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,5 @@
3434
<div class="p-4">
3535
{{ $items->links() }}
3636
</div>
37-
38-
@include('laravel-views::components.confirmation-message')
3937
</x-lv-layout>
4038

resources/views/view/layout.blade.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@
33
<x-lv-alerts-handler />
44

55
{{ $slot }}
6+
7+
{{-- Confirmation message alert --}}
8+
<x-lv-confirmation-message />
69
</div>

src/LaravelViews.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ public function components()
3232
'modal' => 'modal',
3333
'form.checkbox' => 'checkbox',
3434
'form.input' => 'input',
35-
'tooltip' => 'tooltip'
35+
'tooltip' => 'tooltip',
36+
'confirmation-message' => 'confirmation-message'
3637
];
3738
}
3839

0 commit comments

Comments
 (0)