Skip to content

Commit 9e55f6e

Browse files
committed
Initial Migration - Localisation Changes
1 parent 07e8dbc commit 9e55f6e

28 files changed

+157
-95
lines changed

docs/filters/available-methods.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ Example blade:
339339
type="button"
340340
class="flex-shrink-0 ml-0.5 h-4 w-4 rounded-full inline-flex items-center justify-center text-indigo-400 hover:bg-indigo-200 hover:text-indigo-500 focus:outline-none focus:bg-indigo-500 focus:text-white"
341341
>
342-
<span class="sr-only">@lang('Remove filter option')</span>
342+
<span class="sr-only">{{ __('livewire-tables::core.remove_filter_option') }}</span>
343343
<svg class="h-2 w-2" stroke="currentColor" fill="none" viewBox="0 0 8 8">
344344
<path stroke-linecap="round" stroke-width="1.5" d="M1 1l6 6m0-6L1 7" />
345345
</svg>

resources/lang/en/bulk-actions.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
return [
4+
"bulk_actions" => "Bulk Actions",
5+
"bulk_actions_confirm" => "Are you sure?",
6+
"deselect_all" => "Deselect All",
7+
"rows_do_you_want_to_select_all" => "rows, do you want to select all",
8+
"select_all" => "Select All",
9+
"select_all_on_page" => "Select All On Page",
10+
"you_are_currently_selecting_all" => "You are currently selecting all",
11+
"you_have_selected" => "You have selected",
12+
];

resources/lang/en/core.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
return [
4+
"all" => "All",
5+
"all_columns" => "All Columns",
6+
"applied_filters" => "Applied Filters",
7+
"applied_sorting" => "Applied Sorting",
8+
"clear" => "Clear",
9+
"columns" => "Columns",
10+
"debugging_values" => "Debugging Values",
11+
"filters" => "Filters",
12+
"loading" => "Loading",
13+
"min" => "Min",
14+
"max" => "Max",
15+
"no" => "No",
16+
"no_internet_connection" => "You are not connected to the internet.",
17+
"no_items_found" => "No items found. Try to broaden your search.",
18+
'notapplicable' => 'N/A',
19+
"remove_filter_option" => "Remove filter option",
20+
"remove_search_option" => "Remove search option",
21+
"remove_sort_option" => "Remove sort option",
22+
"search" => "Search",
23+
"yes" => "Yes",
24+
];

resources/lang/en/pagination.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
return [
4+
"no" => "No",
5+
"of" => "of",
6+
"results" => "results",
7+
"row" => "row",
8+
"rows" => "rows",
9+
"rows_do_you_want_to_select_all" => "rows, do you want to select all",
10+
"showing" => "Showing",
11+
"to" => "to",
12+
];

resources/lang/en/reorder.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
return [
4+
'cancel' => 'Cancel',
5+
"done_reordering" => "Done Reordering",
6+
"reorder" => "Reorder",
7+
'save' => 'Save',
8+
];

resources/views/components/pagination.blade.php

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,30 @@
1212
@if ($this->paginationIsEnabled() && $this->isPaginationMethod('standard') && $this->getRows->lastPage() > 1)
1313
<p class="paged-pagination-results text-sm text-gray-700 leading-5 dark:text-white">
1414
@if($this->showPaginationDetails())
15-
<span>@lang('Showing')</span>
15+
<span>{{ __('livewire-tables::pagination.showing') }}</span>
1616
<span class="font-medium">{{ $this->getRows->firstItem() }}</span>
17-
<span>@lang('to')</span>
17+
<span>{{ __('livewire-tables::pagination.to') }}</span>
1818
<span class="font-medium">{{ $this->getRows->lastItem() }}</span>
19-
<span>@lang('of')</span>
20-
<span class="font-medium"><span x-text="paginationTotalItemCount"></span></span>
21-
<span>@lang('results')</span>
19+
<span>{{ __('livewire-tables::pagination.of') }}</span>
20+
<span class="font-medium" x-text="paginationTotalItemCount"></span>
21+
<span>{{ __('livewire-tables::pagination.results') }}</span>
2222
@endif
2323
</p>
2424
@elseif ($this->paginationIsEnabled() && $this->isPaginationMethod('simple'))
2525
<p class="paged-pagination-results text-sm text-gray-700 leading-5 dark:text-white">
2626
@if($this->showPaginationDetails())
27-
<span>@lang('Showing')</span>
27+
<span>{{ __('livewire-tables::pagination.showing') }}</span>
2828
<span class="font-medium">{{ $this->getRows->firstItem() }}</span>
29-
<span>@lang('to')</span>
29+
<span>{{ __('livewire-tables::pagination.to') }}</span>
3030
<span class="font-medium">{{ $this->getRows->lastItem() }}</span>
3131
@endif
3232
</p>
3333
@elseif ($this->paginationIsEnabled() && $this->isPaginationMethod('cursor'))
3434
@else
3535
<p class="total-pagination-results text-sm text-gray-700 leading-5 dark:text-white">
36-
@lang('Showing')
37-
<span class="font-medium">{{ $this->getRows->count() }}</span>
38-
@lang('results')
36+
<span>{{ __('livewire-tables::pagination.showing') }}</span>
37+
<span class="font-medium">{{ $this->getRows->count() }}</span>
38+
<span>{{ __('livewire-tables::pagination.results') }}</span>
3939
</p>
4040
@endif
4141
</div>
@@ -57,13 +57,13 @@
5757

5858
<div class="col-12 col-md-6 text-center text-md-right text-muted">
5959
@if($this->showPaginationDetails())
60-
<span>@lang('Showing')</span>
61-
<strong>{{ $this->getRows->count() ? $this->getRows->firstItem() : 0 }}</strong>
62-
<span>@lang('to')</span>
63-
<strong>{{ $this->getRows->count() ? $this->getRows->lastItem() : 0 }}</strong>
64-
<span>@lang('of')</span>
65-
<strong><span x-text="paginationTotalItemCount"></span></strong>
66-
<span>@lang('results')</span>
60+
<span>{{ __('livewire-tables::pagination.showing') }}</span>
61+
<span class="fw-bold">{{ $this->getRows->count() ? $this->getRows->firstItem() : 0 }}</span>
62+
<span>{{ __('livewire-tables::pagination.to') }}</span>
63+
<span class="fw-bold">{{ $this->getRows->count() ? $this->getRows->lastItem() : 0 }}</span>
64+
<span>{{ __('livewire-tables::pagination.of') }}</span>
65+
<span class="fw-bold" x-text="paginationTotalItemCount"></span>
66+
<span>{{ __('livewire-tables::pagination.results') }}</span>
6767
@endif
6868
</div>
6969
</div>
@@ -75,10 +75,10 @@
7575

7676
<div class="col-12 col-md-6 text-center text-md-right text-muted">
7777
@if($this->showPaginationDetails())
78-
<span>@lang('Showing')</span>
79-
<strong>{{ $this->getRows->count() ? $this->getRows->firstItem() : 0 }}</strong>
80-
<span>@lang('to')</span>
81-
<strong>{{ $this->getRows->count() ? $this->getRows->lastItem() : 0 }}</strong>
78+
<span>{{ __('livewire-tables::pagination.showing') }}</span>
79+
<span class="fw-bold">{{ $this->getRows->count() ? $this->getRows->firstItem() : 0 }}</span>
80+
<span>{{ __('livewire-tables::pagination.to') }}</span>
81+
<span class="fw-bold">{{ $this->getRows->count() ? $this->getRows->lastItem() : 0 }}</span>
8282
@endif
8383
</div>
8484
</div>
@@ -91,9 +91,9 @@
9191
@else
9292
<div class="row mt-3">
9393
<div class="col-12 text-muted">
94-
@lang('Showing')
95-
<strong>{{ $this->getRows->count() }}</strong>
96-
@lang('results')
94+
<span>{{ __('livewire-tables::pagination.showing') }}</span>
95+
<span class="fw-bold">{{ $this->getRows->count() }}</span>
96+
<span>{{ __('livewire-tables::pagination.results') }}</span>
9797
</div>
9898
</div>
9999
@endif
@@ -109,13 +109,13 @@
109109
</div>
110110
<div class="col-12 col-md-6 text-center text-md-end text-muted">
111111
@if($this->showPaginationDetails())
112-
<span>@lang('Showing')</span>
113-
<strong>{{ $this->getRows->count() ? $this->getRows->firstItem() : 0 }}</strong>
114-
<span>@lang('to')</span>
115-
<strong>{{ $this->getRows->count() ? $this->getRows->lastItem() : 0 }}</strong>
116-
<span>@lang('of')</span>
117-
<strong><span x-text="paginationTotalItemCount"></span></strong>
118-
<span>@lang('results')</span>
112+
<span>{{ __('livewire-tables::pagination.showing') }}</span>
113+
<span class="fw-bold">{{ $this->getRows->count() ? $this->getRows->firstItem() : 0 }}</span>
114+
<span>{{ __('livewire-tables::pagination.to') }}</span>
115+
<span class="fw-bold">{{ $this->getRows->count() ? $this->getRows->lastItem() : 0 }}</span>
116+
<span>{{ __('livewire-tables::pagination.of') }}</span>
117+
<span class="fw-bold" x-text="paginationTotalItemCount"></span>
118+
<span>{{ __('livewire-tables::pagination.results') }}</span>
119119
@endif
120120
</div>
121121
</div>
@@ -126,10 +126,10 @@
126126
</div>
127127
<div class="col-12 col-md-6 text-center text-md-end text-muted">
128128
@if($this->showPaginationDetails())
129-
<span>@lang('Showing')</span>
130-
<strong>{{ $this->getRows->count() ? $this->getRows->firstItem() : 0 }}</strong>
131-
<span>@lang('to')</span>
132-
<strong>{{ $this->getRows->count() ? $this->getRows->lastItem() : 0 }}</strong>
129+
<span>{{ __('livewire-tables::pagination.showing') }}</span>
130+
<span class="fw-bold">{{ $this->getRows->count() ? $this->getRows->firstItem() : 0 }}</span>
131+
<span>{{ __('livewire-tables::pagination.to') }}</span>
132+
<span class="fw-bold">{{ $this->getRows->count() ? $this->getRows->lastItem() : 0 }}</span>
133133
@endif
134134
</div>
135135
</div>
@@ -142,9 +142,9 @@
142142
@else
143143
<div class="row mt-3">
144144
<div class="col-12 text-muted">
145-
@lang('Showing')
146-
<strong>{{ $this->getRows->count() }}</strong>
147-
@lang('results')
145+
<span>{{ __('livewire-tables::pagination.showing') }}</span>
146+
<span class="fw-bold">{{ $this->getRows->count() }}</span>
147+
<span>{{ __('livewire-tables::pagination.results') }}</span>
148148
</div>
149149
</div>
150150
@endif

resources/views/components/table/tr/bulk-actions.blade.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ class="bg-indigo-50 dark:bg-gray-900 dark:text-white"
1717
<template x-if="selectedItems.length == paginationTotalItemCount || selectAllStatus">
1818
<div wire:key="{{ $tableName }}-all-selected">
1919
<span>
20-
@lang('You are currently selecting all')
20+
{{ __('livewire-tables::bulk-actions.you_are_currently_selecting_all') }}
2121
@if(!$simplePagination) <strong><span x-text="paginationTotalItemCount"></span></strong> @endif
22-
@lang('rows').
22+
{{ __('livewire-tables::pagination.rows') }}.
2323
</span>
2424

2525
<button
@@ -28,17 +28,17 @@ class="bg-indigo-50 dark:bg-gray-900 dark:text-white"
2828
type="button"
2929
class="ml-1 text-blue-600 underline text-gray-700 text-sm leading-5 font-medium focus:outline-none focus:text-gray-800 focus:underline transition duration-150 ease-in-out dark:text-white dark:hover:text-gray-400"
3030
>
31-
@lang('Deselect All')
31+
{{ __('livewire-tables::bulk-actions.deselect_all') }}
3232
</button>
3333
</div>
3434
</template>
3535

3636
<template x-if="selectedItems.length !== paginationTotalItemCount && !selectAllStatus">
3737
<div wire:key="{{ $tableName }}-some-selected">
3838
<span>
39-
@lang('You have selected')
39+
{{ __('livewire-tables::bulk-actions.you_have_selected') }}
4040
<strong><span x-text="selectedItems.length"></span></strong>
41-
@lang('rows, do you want to select all')
41+
{{ __('livewire-tables::bulk-actions.rows_do_you_want_to_select_all') }}
4242
@if(!$simplePagination) <strong><span x-text="paginationTotalItemCount"></span></strong> @endif
4343
</span>
4444

@@ -48,7 +48,7 @@ class="ml-1 text-blue-600 underline text-gray-700 text-sm leading-5 font-medium
4848
type="button"
4949
class="ml-1 text-blue-600 underline text-gray-700 text-sm leading-5 font-medium focus:outline-none focus:text-gray-800 focus:underline transition duration-150 ease-in-out dark:text-white dark:hover:text-gray-400"
5050
>
51-
@lang('Select All On Page')
51+
{{ __('livewire-tables::bulk-actions.select_all_on_page') }}
5252
</button>&nbsp;
5353

5454
<button
@@ -57,7 +57,7 @@ class="ml-1 text-blue-600 underline text-gray-700 text-sm leading-5 font-medium
5757
type="button"
5858
class="ml-1 text-blue-600 underline text-gray-700 text-sm leading-5 font-medium focus:outline-none focus:text-gray-800 focus:underline transition duration-150 ease-in-out dark:text-white dark:hover:text-gray-400"
5959
>
60-
@lang('Select All')
60+
{{ __('livewire-tables::bulk-actions.select_all') }}
6161
</button>
6262

6363
<button
@@ -66,7 +66,7 @@ class="ml-1 text-blue-600 underline text-gray-700 text-sm leading-5 font-medium
6666
type="button"
6767
class="ml-1 text-blue-600 underline text-gray-700 text-sm leading-5 font-medium focus:outline-none focus:text-gray-800 focus:underline transition duration-150 ease-in-out dark:text-white dark:hover:text-gray-400"
6868
>
69-
@lang('Deselect All')
69+
{{ __('livewire-tables::bulk-actions.deselect_all') }}
7070
</button>
7171
</div>
7272
</template>
@@ -81,9 +81,9 @@ class="ml-1 text-blue-600 underline text-gray-700 text-sm leading-5 font-medium
8181
<template x-if="selectedItems.length == paginationTotalItemCount || selectAllStatus">
8282
<div wire:key="{{ $tableName }}-all-selected">
8383
<span>
84-
@lang('You are currently selecting all')
84+
{{ __('livewire-tables::bulk-actions.you_are_currently_selecting_all') }}
8585
@if(!$simplePagination) <strong><span x-text="paginationTotalItemCount"></span></strong> @endif
86-
@lang('rows').
86+
{{ __('livewire-tables::pagination.rows') }}.
8787
</span>
8888

8989
<button
@@ -92,17 +92,17 @@ class="ml-1 text-blue-600 underline text-gray-700 text-sm leading-5 font-medium
9292
type="button"
9393
class="btn btn-primary btn-sm"
9494
>
95-
@lang('Deselect All')
95+
{{ __('livewire-tables::bulk-actions.deselect_all') }}
9696
</button>
9797
</div>
9898
</template>
9999

100100
<template x-if="selectedItems.length !== paginationTotalItemCount && !selectAllStatus">
101101
<div wire:key="{{ $tableName }}-some-selected">
102102
<span>
103-
@lang('You have selected')
103+
{{ __('livewire-tables::bulk-actions.you_have_selected') }}
104104
<strong><span x-text="selectedItems.length"></span></strong>
105-
@lang('rows, do you want to select all')
105+
{{ __('livewire-tables::bulk-actions.rows_do_you_want_to_select_all') }}
106106
@if(!$simplePagination) <strong><span x-text="paginationTotalItemCount"></span></strong> @endif
107107
</span>
108108

@@ -112,7 +112,7 @@ class="btn btn-primary btn-sm"
112112
type="button"
113113
class="btn btn-primary btn-sm"
114114
>
115-
@lang('Select All On Page')
115+
{{ __('livewire-tables::bulk-actions.select_all_on_page') }}
116116
</button>&nbsp;
117117

118118
<button
@@ -121,7 +121,7 @@ class="btn btn-primary btn-sm"
121121
type="button"
122122
class="btn btn-primary btn-sm"
123123
>
124-
@lang('Select All')
124+
{{ __('livewire-tables::bulk-actions.select_all') }}
125125
</button>
126126

127127
<button
@@ -130,7 +130,7 @@ class="btn btn-primary btn-sm"
130130
type="button"
131131
class="btn btn-primary btn-sm"
132132
>
133-
@lang('Deselect All')
133+
{{ __('livewire-tables::bulk-actions.deselect_all') }}
134134
</button>
135135
</div>
136136
</template>

0 commit comments

Comments
 (0)