From 9bc04011f0d3ad3b5c80045fdcce53131e8420ff Mon Sep 17 00:00:00 2001 From: Joe <104938042+lrljoe@users.noreply.github.com> Date: Thu, 21 Nov 2024 21:16:49 +0000 Subject: [PATCH] Development to Master (v3.5.4) (#2073) ## [v3.5.4] - 2024-11-21 ### Bug Fixes - Allow JSON and PHP type localisations by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2071 - Allow lazy loading of tables by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2072 ### Testing - RemoveConfigFileFromCoverage by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2080 - Test for ViewComponentColumn - Cannot return non-array attributes by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2078 - BooleanFilter - Add Tests for Null in IsEmpty and Validate by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2077 - Add Attributes Check For ViewComponentColumn by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2076 - Add ViewComponentColumn label test by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2075 - Add ColorColumnTests by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2074 --- CHANGELOG.md | 17 +- config/livewire-tables.php | 5 + docs/filters/available-methods.md | 2 +- phpstan.neon | 1 - resources/lang/json/ar.json | 62 ++++++ resources/lang/json/ca.json | 62 ++++++ resources/lang/json/da.json | 62 ++++++ resources/lang/json/de.json | 62 ++++++ resources/lang/json/en.json | 72 +++++++ resources/lang/json/es.json | 64 ++++++ resources/lang/json/fr.json | 62 ++++++ resources/lang/json/id.json | 63 ++++++ resources/lang/json/it.json | 63 ++++++ resources/lang/json/ms.json | 62 ++++++ resources/lang/json/nl.json | 66 ++++++ resources/lang/json/pl.json | 66 ++++++ resources/lang/json/pt.json | 64 ++++++ resources/lang/json/pt_BR.json | 66 ++++++ resources/lang/json/ru.json | 62 ++++++ resources/lang/json/th.json | 66 ++++++ resources/lang/json/tk.json | 62 ++++++ resources/lang/json/tr.json | 62 ++++++ resources/lang/json/tw.json | 66 ++++++ resources/lang/json/uk.json | 68 ++++++ resources/lang/{ => php}/ar/core.php | 0 resources/lang/{ => php}/ca/core.php | 0 resources/lang/{ => php}/da/core.php | 0 resources/lang/{ => php}/de/core.php | 0 resources/lang/{ => php}/en/core.php | 0 resources/lang/{ => php}/es/core.php | 0 resources/lang/{ => php}/fr/core.php | 0 resources/lang/{ => php}/id/core.php | 0 resources/lang/{ => php}/it/core.php | 0 resources/lang/{ => php}/ms/core.php | 0 resources/lang/{ => php}/nb/core.php | 0 resources/lang/{ => php}/nl/core.php | 0 resources/lang/{ => php}/pl/core.php | 0 resources/lang/{ => php}/pt/core.php | 0 resources/lang/{ => php}/pt_BR/core.php | 0 resources/lang/{ => php}/ru/core.php | 0 resources/lang/{ => php}/sq/core.php | 0 resources/lang/{ => php}/sv/core.php | 0 resources/lang/{ => php}/th/core.php | 0 resources/lang/{ => php}/tk/core.php | 0 resources/lang/{ => php}/tr/core.php | 0 resources/lang/{ => php}/tw/core.php | 0 resources/lang/{ => php}/uk/core.php | 0 .../views/components/pagination.blade.php | 48 ++--- .../table/tr/bulk-actions.blade.php | 32 +-- .../components/tools/filter-pills.blade.php | 2 +- .../filter-pills/buttons/reset-all.blade.php | 4 +- .../buttons/reset-filter.blade.php | 4 +- .../tools/filters/boolean.blade.php | 2 +- .../tools/filters/multi-select.blade.php | 4 +- .../components/tools/sorting-pills.blade.php | 18 +- .../toolbar/items/bulk-actions.blade.php | 2 +- .../toolbar/items/column-select.blade.php | 10 +- .../toolbar/items/filter-button.blade.php | 2 +- .../toolbar/items/filter-popover.blade.php | 4 +- .../items/pagination-dropdown.blade.php | 2 +- .../toolbar/items/reorder-buttons.blade.php | 6 +- resources/views/datatable.blade.php | 204 +++++++++--------- resources/views/includes/debug.blade.php | 2 +- resources/views/includes/offline.blade.php | 4 +- src/DataTransferObjects/FilterGenericData.php | 1 + src/LaravelLivewireTablesServiceProvider.php | 21 +- src/Traits/Core/HasLocalisations.php | 23 ++ src/Traits/HasAllTraits.php | 3 +- src/Traits/Helpers/BulkActionsHelpers.php | 2 +- src/Traits/Helpers/ComponentHelpers.php | 2 +- .../Helpers/LoadingPlaceholderHelpers.php | 2 +- src/Traits/Helpers/SearchHelpers.php | 2 +- src/Views/Action.php | 5 +- src/Views/Columns/BooleanColumn.php | 4 +- src/Views/Columns/ButtonGroupColumn.php | 4 +- src/Views/Columns/ColorColumn.php | 4 +- src/Views/Columns/IconColumn.php | 4 +- src/Views/Columns/ImageColumn.php | 4 +- src/Views/Columns/LinkColumn.php | 4 +- src/Views/Columns/WireLinkColumn.php | 4 +- src/Views/Filters/DateRangeFilter.php | 4 +- src/Views/Filters/NumberRangeFilter.php | 2 +- src/Views/Traits/Columns/HasColumnView.php | 24 +++ src/Views/Traits/Columns/IsSortable.php | 4 +- .../Configuration/FilterConfiguration.php | 2 + src/Views/Traits/Core/HasView.php | 1 - src/Views/Traits/IsColumn.php | 10 +- src/Views/Traits/IsFilter.php | 6 +- tests/Localisations/BaseLocalisationCase.php | 6 +- tests/TestCase.php | 2 + .../Configuration/SearchConfigurationTest.php | 2 +- .../Traits/Helpers/ComponentHelpersTest.php | 2 +- tests/Unit/Views/Columns/ColorColumnTest.php | 28 +++ .../Views/Columns/ViewComponentColumnTest.php | 15 ++ .../Unit/Views/Filters/BooleanFilterTest.php | 22 ++ .../Traits/Helpers/FilterHelpersTest.php | 3 + 96 files changed, 1654 insertions(+), 225 deletions(-) create mode 100644 resources/lang/json/ar.json create mode 100644 resources/lang/json/ca.json create mode 100644 resources/lang/json/da.json create mode 100644 resources/lang/json/de.json create mode 100644 resources/lang/json/en.json create mode 100644 resources/lang/json/es.json create mode 100644 resources/lang/json/fr.json create mode 100644 resources/lang/json/id.json create mode 100644 resources/lang/json/it.json create mode 100644 resources/lang/json/ms.json create mode 100644 resources/lang/json/nl.json create mode 100644 resources/lang/json/pl.json create mode 100644 resources/lang/json/pt.json create mode 100644 resources/lang/json/pt_BR.json create mode 100644 resources/lang/json/ru.json create mode 100644 resources/lang/json/th.json create mode 100644 resources/lang/json/tk.json create mode 100644 resources/lang/json/tr.json create mode 100644 resources/lang/json/tw.json create mode 100644 resources/lang/json/uk.json rename resources/lang/{ => php}/ar/core.php (100%) rename resources/lang/{ => php}/ca/core.php (100%) rename resources/lang/{ => php}/da/core.php (100%) rename resources/lang/{ => php}/de/core.php (100%) rename resources/lang/{ => php}/en/core.php (100%) rename resources/lang/{ => php}/es/core.php (100%) rename resources/lang/{ => php}/fr/core.php (100%) rename resources/lang/{ => php}/id/core.php (100%) rename resources/lang/{ => php}/it/core.php (100%) rename resources/lang/{ => php}/ms/core.php (100%) rename resources/lang/{ => php}/nb/core.php (100%) rename resources/lang/{ => php}/nl/core.php (100%) rename resources/lang/{ => php}/pl/core.php (100%) rename resources/lang/{ => php}/pt/core.php (100%) rename resources/lang/{ => php}/pt_BR/core.php (100%) rename resources/lang/{ => php}/ru/core.php (100%) rename resources/lang/{ => php}/sq/core.php (100%) rename resources/lang/{ => php}/sv/core.php (100%) rename resources/lang/{ => php}/th/core.php (100%) rename resources/lang/{ => php}/tk/core.php (100%) rename resources/lang/{ => php}/tr/core.php (100%) rename resources/lang/{ => php}/tw/core.php (100%) rename resources/lang/{ => php}/uk/core.php (100%) create mode 100644 src/Traits/Core/HasLocalisations.php create mode 100644 src/Views/Traits/Columns/HasColumnView.php diff --git a/CHANGELOG.md b/CHANGELOG.md index d90207bc7..260144d43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,13 +2,26 @@ All notable changes to `laravel-livewire-tables` will be documented in this file +## [v3.5.4] - 2024-11-21 +### Bug Fixes +- Allow JSON and PHP type localisations by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2071 +- Allow lazy loading of tables by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2072 + +### Testing +- RemoveConfigFileFromCoverage by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2080 +- Test for ViewComponentColumn - Cannot return non-array attributes by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2078 +- BooleanFilter - Add Tests for Null in IsEmpty and Validate by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2077 +- Add Attributes Check For ViewComponentColumn by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2076 +- Add ViewComponentColumn label test by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2075 +- Add ColorColumnTests by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2074 + ## [v3.5.3] - 2024-11-18 -## Bug Fixes +### Bug Fixes - FixSetDefaultPerPage by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2067 - Fix BooleanColumn unexpected truthy behaviour by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2066 - Adjustment for DateRangeFilter by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2064 -## Testing +### Testing - Adjust SessionStorageHelpersTest by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2065 - Add updatedSelectedColumns test for Event by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2060 - Add test for FilterApplied Event being dispatched by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2059 diff --git a/config/livewire-tables.php b/config/livewire-tables.php index 7c2e20983..dad9ea43c 100644 --- a/config/livewire-tables.php +++ b/config/livewire-tables.php @@ -30,6 +30,11 @@ */ 'enable_blade_directives' => false, + /** + * Use JSON Translations instead of PHP Array + */ + 'use_json_translations' => false, + /** * Customise Script & Styles Paths */ diff --git a/docs/filters/available-methods.md b/docs/filters/available-methods.md index d67f38037..5246704e9 100644 --- a/docs/filters/available-methods.md +++ b/docs/filters/available-methods.md @@ -339,7 +339,7 @@ Example blade: type="button" 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" > - @lang('livewire-tables::core.Remove filter option') + @lang($this->getLocalisationPath.'Remove filter option') diff --git a/phpstan.neon b/phpstan.neon index 494125a83..6861405e1 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -4,7 +4,6 @@ includes: parameters: paths: - - config - database - src level: 6 diff --git a/resources/lang/json/ar.json b/resources/lang/json/ar.json new file mode 100644 index 000000000..8ed603244 --- /dev/null +++ b/resources/lang/json/ar.json @@ -0,0 +1,62 @@ +{ + "livewire-tables::All": "الجميع", + "livewire-tables::All Columns": "كافة الأعمدة", + "livewire-tables::Applied Filters": "المرشحات التطبيقية", + "livewire-tables::Applied Sorting": "الفرز التطبيقي", + "livewire-tables::Bulk Actions": "إجراءات جملة", + "livewire-tables::Clear": "واضح", + "livewire-tables::Columns": "الأعمدة", + "livewire-tables::Debugging Values": "قيم التصحيح", + "livewire-tables::Deselect All": "الغاء تحديد الكل", + "livewire-tables::Done Reordering": "تمت إعادة الترتيب", + "livewire-tables::Filters": "المرشحات", + "livewire-tables::not_applicable": "N/A", + "livewire-tables::No": "لا", + "livewire-tables::No items found. Try to broaden your search.": "لم يتم العثور على العناصر. حاول توسيع نطاق البحث.", + "livewire-tables::of": "ل", + "livewire-tables::Remove filter option": "إزالة خيار التصفية", + "livewire-tables::Remove sort option": "إزالة خيار الفرز", + "livewire-tables::Reorder": "إعادة ترتيب", + "livewire-tables::results": "نتائج", + "livewire-tables::row": "صف", + "livewire-tables::rows": "صفوف", + "livewire-tables::rows, do you want to select all": "الصفوف ، هل تريد تحديد الكل", + "livewire-tables::Search": "يبحث", + "livewire-tables::Select All": "اختر الكل", + "livewire-tables::Showing": "عرض", + "livewire-tables::to": "ل", + "livewire-tables::Yes": "نعم", + "livewire-tables::You are currently selecting all": "أنت الآن تختار الكل", + "livewire-tables::You are not connected to the internet.": "أنت غير متصل بالإنترنت.", + "livewire-tables::You have selected": "قمت بتحديدها", + "All": "الجميع", + "All Columns": "كافة الأعمدة", + "Applied Filters": "المرشحات التطبيقية", + "Applied Sorting": "الفرز التطبيقي", + "Bulk Actions": "إجراءات جملة", + "Clear": "واضح", + "Columns": "الأعمدة", + "Debugging Values": "قيم التصحيح", + "Deselect All": "الغاء تحديد الكل", + "Done Reordering": "تمت إعادة الترتيب", + "Filters": "المرشحات", + "not_applicable": "N/A", + "No": "لا", + "No items found. Try to broaden your search.": "لم يتم العثور على العناصر. حاول توسيع نطاق البحث.", + "of": "ل", + "Remove filter option": "إزالة خيار التصفية", + "Remove sort option": "إزالة خيار الفرز", + "Reorder": "إعادة ترتيب", + "results": "نتائج", + "row": "صف", + "rows": "صفوف", + "rows, do you want to select all": "الصفوف ، هل تريد تحديد الكل", + "Search": "يبحث", + "Select All": "اختر الكل", + "Showing": "عرض", + "to": "ل", + "Yes": "نعم", + "You are currently selecting all": "أنت الآن تختار الكل", + "You are not connected to the internet.": "أنت غير متصل بالإنترنت.", + "You have selected": "قمت بتحديدها" +} \ No newline at end of file diff --git a/resources/lang/json/ca.json b/resources/lang/json/ca.json new file mode 100644 index 000000000..532ff38b3 --- /dev/null +++ b/resources/lang/json/ca.json @@ -0,0 +1,62 @@ +{ + "livewire-tables::All": "Tot", + "livewire-tables::All Columns": "Totes les columnes", + "livewire-tables::Applied Filters": "Filtres Aplicats", + "livewire-tables::Applied Sorting": "Ordenació Aplicada", + "livewire-tables::Bulk Actions": "Accions Massives", + "livewire-tables::Clear": "Esborra", + "livewire-tables::Columns": "Columnes", + "livewire-tables::Debugging Values": "Valors de depuració", + "livewire-tables::Deselect All": "Deselecciona tot", + "livewire-tables::Done Reordering": "Reordenació finalitzada", + "livewire-tables::Filters": "Filtres", + "livewire-tables::not_applicable": "N/A", + "livewire-tables::No": "No", + "livewire-tables::No items found. Try to broaden your search.": "No s'han trobat elements. Intenti ampliar la cerca.", + "livewire-tables::of": "de", + "livewire-tables::Remove filter option": "Elimina opció de filtre", + "livewire-tables::Remove sort option": "Elimina opció d'ordenació", + "livewire-tables::Reorder": "Reordena", + "livewire-tables::results": "resultats", + "livewire-tables::row": "fila", + "livewire-tables::rows": "files", + "livewire-tables::rows, do you want to select all": "files, vol seleccionar totes", + "livewire-tables::to": "a", + "livewire-tables::Search": "Cerca", + "livewire-tables::Select All": "Selecciona tot", + "livewire-tables::Showing": "Mostrant", + "livewire-tables::Yes": "Sí", + "livewire-tables::You are currently selecting all": "Actualment està seleccionant tot", + "livewire-tables::You are not connected to the internet.": "No està conectat a Internet.", + "livewire-tables::You have selected": "Ha seleccionat", + "All": "Tot", + "All Columns": "Totes les columnes", + "Applied Filters": "Filtres Aplicats", + "Applied Sorting": "Ordenació Aplicada", + "Bulk Actions": "Accions Massives", + "Clear": "Esborra", + "Columns": "Columnes", + "Debugging Values": "Valors de depuració", + "Deselect All": "Deselecciona tot", + "Done Reordering": "Reordenació finalitzada", + "Filters": "Filtres", + "not_applicable": "N/A", + "No": "No", + "No items found. Try to broaden your search.": "No s'han trobat elements. Intenti ampliar la cerca.", + "of": "de", + "Remove filter option": "Elimina opció de filtre", + "Remove sort option": "Elimina opció d'ordenació", + "Reorder": "Reordena", + "results": "resultats", + "row": "fila", + "rows": "files", + "rows, do you want to select all": "files, vol seleccionar totes", + "to": "a", + "Search": "Cerca", + "Select All": "Selecciona tot", + "Showing": "Mostrant", + "Yes": "Sí", + "You are currently selecting all": "Actualment està seleccionant tot", + "You are not connected to the internet.": "No està conectat a Internet.", + "You have selected": "Ha seleccionat" +} \ No newline at end of file diff --git a/resources/lang/json/da.json b/resources/lang/json/da.json new file mode 100644 index 000000000..0ce769f43 --- /dev/null +++ b/resources/lang/json/da.json @@ -0,0 +1,62 @@ +{ + "livewire-tables::All": "Alle", + "livewire-tables::All Columns": "Alle kolonner", + "livewire-tables::Applied Filters": "Anvendte filtre", + "livewire-tables::Applied Sorting": "Anvendt sortering", + "livewire-tables::Bulk Actions": "Massehandlinger", + "livewire-tables::Clear": "Ryd", + "livewire-tables::Columns": "Kolonner", + "livewire-tables::Debugging Values": "Debugging-værdier", + "livewire-tables::Deselect All": "Fravælg alle", + "livewire-tables::Done Reordering": "Færdig med omorganisering", + "livewire-tables::Filters": "Filtre", + "livewire-tables::not_applicable": "N/A", + "livewire-tables::No": "Nej", + "livewire-tables::No items found. Try to broaden your search.": "Ingen elementer fundet. Prøv at udvide din søgning.", + "livewire-tables::of": "af", + "livewire-tables::Remove filter option": "Fjern filtermulighed", + "livewire-tables::Remove sort option": "Fjern sorteringsmulighed", + "livewire-tables::Reorder": "Omorganisér", + "livewire-tables::results": "resultater", + "livewire-tables::row": "række", + "livewire-tables::rows": "rækker", + "livewire-tables::rows, do you want to select all": "rækker, vil du vælge alle", + "livewire-tables::Search": "Søg", + "livewire-tables::Select All": "Vælg alle", + "livewire-tables::Showing": "Viser", + "livewire-tables::to": "til", + "livewire-tables::Yes": "Ja", + "livewire-tables::You are currently selecting all": "Du vælger i øjeblikket alle", + "livewire-tables::You are not connected to the internet.": "Du er ikke forbundet til internettet.", + "livewire-tables::You have selected": "Du har valgt", + "All": "Alle", + "All Columns": "Alle kolonner", + "Applied Filters": "Anvendte filtre", + "Applied Sorting": "Anvendt sortering", + "Bulk Actions": "Massehandlinger", + "Clear": "Ryd", + "Columns": "Kolonner", + "Debugging Values": "Debugging-værdier", + "Deselect All": "Fravælg alle", + "Done Reordering": "Færdig med omorganisering", + "Filters": "Filtre", + "not_applicable": "N/A", + "No": "Nej", + "No items found. Try to broaden your search.": "Ingen elementer fundet. Prøv at udvide din søgning.", + "of": "af", + "Remove filter option": "Fjern filtermulighed", + "Remove sort option": "Fjern sorteringsmulighed", + "Reorder": "Omorganisér", + "results": "resultater", + "row": "række", + "rows": "rækker", + "rows, do you want to select all": "rækker, vil du vælge alle", + "Search": "Søg", + "Select All": "Vælg alle", + "Showing": "Viser", + "to": "til", + "Yes": "Ja", + "You are currently selecting all": "Du vælger i øjeblikket alle", + "You are not connected to the internet.": "Du er ikke forbundet til internettet.", + "You have selected": "Du har valgt" +} diff --git a/resources/lang/json/de.json b/resources/lang/json/de.json new file mode 100644 index 000000000..2ddfa94cc --- /dev/null +++ b/resources/lang/json/de.json @@ -0,0 +1,62 @@ +{ + "livewire-tables::All": "Alle", + "livewire-tables::All Columns": "Alle Spalten", + "livewire-tables::Applied Filters": "Angewendete Filter", + "livewire-tables::Applied Sorting": "Angewendete Sortierung", + "livewire-tables::Bulk Actions": "Aktionen", + "livewire-tables::Clear": "Zurücksetzen", + "livewire-tables::Columns": "Spalten", + "livewire-tables::Debugging Values": "Werte debuggen", + "livewire-tables::Deselect All": "Alle abwählen", + "livewire-tables::Done Reordering": "Sortieren abgeschlossen", + "livewire-tables::Filters": "Filter", + "livewire-tables::not_applicable": "N/A", + "livewire-tables::No": "Nein", + "livewire-tables::No items found. Try to broaden your search.": "Es gibt keine Ergebnisse/Einträge. Versuche die Suche zu erweitern.", + "livewire-tables::of": "von", + "livewire-tables::Remove filter option": "Entferne Filterauswahl", + "livewire-tables::Remove sort option": "Entferne Sortierauswahl", + "livewire-tables::Reorder": "erneut Sortieren", + "livewire-tables::results": "Ergebnisse", + "livewire-tables::row": "Zeile", + "livewire-tables::rows": "Zeilen", + "livewire-tables::rows, do you want to select all": "Zeilen, sollen alle ausgewählt werden", + "livewire-tables::Search": "Suche", + "livewire-tables::Select All": "Alle auswählen", + "livewire-tables::Showing": "Anzeigen", + "livewire-tables::to": "nach", + "livewire-tables::Yes": "Ja", + "livewire-tables::You are currently selecting all": "Es sind schon alle ausgewählt", + "livewire-tables::You are not connected to the internet.": "Es liegt keine Verbindung zum Internet vor.", + "livewire-tables::You have selected": "Es sind ausgewählt", + "All": "Alle", + "All Columns": "Alle Spalten", + "Applied Filters": "Angewendete Filter", + "Applied Sorting": "Angewendete Sortierung", + "Bulk Actions": "Aktionen", + "Clear": "Zurücksetzen", + "Columns": "Spalten", + "Debugging Values": "Werte debuggen", + "Deselect All": "Alle abwählen", + "Done Reordering": "Sortieren abgeschlossen", + "Filters": "Filter", + "not_applicable": "N/A", + "No": "Nein", + "No items found. Try to broaden your search.": "Es gibt keine Ergebnisse/Einträge. Versuche die Suche zu erweitern.", + "of": "von", + "Remove filter option": "Entferne Filterauswahl", + "Remove sort option": "Entferne Sortierauswahl", + "Reorder": "erneut Sortieren", + "results": "Ergebnisse", + "row": "Zeile", + "rows": "Zeilen", + "rows, do you want to select all": "Zeilen, sollen alle ausgewählt werden", + "Search": "Suche", + "Select All": "Alle auswählen", + "Showing": "Anzeigen", + "to": "nach", + "Yes": "Ja", + "You are currently selecting all": "Es sind schon alle ausgewählt", + "You are not connected to the internet.": "Es liegt keine Verbindung zum Internet vor.", + "You have selected": "Es sind ausgewählt" +} \ No newline at end of file diff --git a/resources/lang/json/en.json b/resources/lang/json/en.json new file mode 100644 index 000000000..1579cbbe2 --- /dev/null +++ b/resources/lang/json/en.json @@ -0,0 +1,72 @@ +{ + "livewire-tables::All": "All", + "livewire-tables::All Columns": "All Columns", + "livewire-tables::Applied Filters": "Applied Filters", + "livewire-tables::Applied Sorting": "Applied Sorting", + "livewire-tables::Bulk Actions": "Bulk Actions", + "livewire-tables::Bulk Actions Confirm": "Are you sure?", + "livewire-tables::Clear": "Clear", + "livewire-tables::Columns": "Columns", + "livewire-tables::Debugging Values": "Debugging Values", + "livewire-tables::Deselect All": "Deselect All", + "livewire-tables::Done Reordering": "Done Reordering", + "livewire-tables::Filters": "Filters", + "livewire-tables::loading": "Loading", + "livewire-tables::max": "Max", + "livewire-tables::min": "Min", + "livewire-tables::not_applicable": "N/A", + "livewire-tables::No": "No", + "livewire-tables::No items found. Try to broaden your search.": "No items found. Try to broaden your search.", + "livewire-tables::of": "of", + "livewire-tables::Remove filter option": "Remove filter option", + "livewire-tables::Remove sort option": "Remove sort option", + "livewire-tables::Reorder": "Reorder", + "livewire-tables::results": "results", + "livewire-tables::row": "row", + "livewire-tables::rows": "rows", + "livewire-tables::rows, do you want to select all": "rows, do you want to select all", + "livewire-tables::Search": "Search", + "livewire-tables::Select All": "Select All", + "livewire-tables::Select All On Page": "Select All On Page", + "livewire-tables::Showing": "Showing", + "livewire-tables::to": "to", + "livewire-tables::Yes": "Yes", + "livewire-tables::You are currently selecting all": "You are currently selecting all", + "livewire-tables::You are not connected to the internet.": "You are not connected to the internet.", + "livewire-tables::You have selected": "You have selected", + "All": "All", + "All Columns": "All Columns", + "Applied Filters": "Applied Filters", + "Applied Sorting": "Applied Sorting", + "Bulk Actions": "Bulk Actions", + "Bulk Actions Confirm": "Are you sure?", + "Clear": "Clear", + "Columns": "Columns", + "Debugging Values": "Debugging Values", + "Deselect All": "Deselect All", + "Done Reordering": "Done Reordering", + "Filters": "Filters", + "loading": "Loading", + "max": "Max", + "min": "Min", + "not_applicable": "N/A", + "No": "No", + "No items found. Try to broaden your search.": "No items found. Try to broaden your search.", + "of": "of", + "Remove filter option": "Remove filter option", + "Remove sort option": "Remove sort option", + "Reorder": "Reorder", + "results": "results", + "row": "row", + "rows": "rows", + "rows, do you want to select all": "rows, do you want to select all", + "Search": "Search", + "Select All": "Select All", + "Select All On Page": "Select All On Page", + "Showing": "Showing", + "to": "to", + "Yes": "Yes", + "You are currently selecting all": "You are currently selecting all", + "You are not connected to the internet.": "You are not connected to the internet.", + "You have selected": "You have selected" +} diff --git a/resources/lang/json/es.json b/resources/lang/json/es.json new file mode 100644 index 000000000..b03b2e25f --- /dev/null +++ b/resources/lang/json/es.json @@ -0,0 +1,64 @@ +{ + "livewire-tables::All": "Todo", + "livewire-tables::All Columns": "Todas las columnas", + "livewire-tables::Applied Filters": "Filtros Aplicados", + "livewire-tables::Applied Sorting": "Ordenamiento Aplicado", + "livewire-tables::Bulk Actions": "Acciones Masivas", + "livewire-tables::Clear": "Borrar", + "livewire-tables::Columns": "Columnas", + "livewire-tables::Debugging Values": "Valores de depuración", + "livewire-tables::Deselect All": "Deseleccionar todo", + "livewire-tables::Done Reordering": "Reordenación finalizada", + "livewire-tables::Filters": "Filtros", + "livewire-tables::not_applicable": "N/A", + "livewire-tables::No": "No", + "livewire-tables::No items found. Try to broaden your search.": "No se encontraron elementos. Intente ampliar la búsqueda.", + "livewire-tables::of": "de", + "livewire-tables::Remove filter option": "Remover opción de filtro", + "livewire-tables::Remove sort option": "Remover opción de ordenamineto", + "livewire-tables::Reorder": "Reordenar", + "livewire-tables::results": "resultados", + "livewire-tables::row": "fila", + "livewire-tables::rows": "filas", + "livewire-tables::rows, do you want to select all": "filas, desea seleccionar todas", + "livewire-tables::Search": "Buscar", + "livewire-tables::Select All": "Seleccionar todo", + "livewire-tables::Select All On Page": "Seleccionar todo en la página", + "livewire-tables::Showing": "Mostrando", + "livewire-tables::to": "a", + "livewire-tables::Yes": "Sí", + "livewire-tables::You are currently selecting all": "Actualmente está seleccionando todo", + "livewire-tables::You are not connected to the internet.": "No está conectado a Internet.", + "livewire-tables::You have selected": "Ha seleccionado", + "All": "Todo", + "All Columns": "Todas las columnas", + "Applied Filters": "Filtros Aplicados", + "Applied Sorting": "Ordenamiento Aplicado", + "Bulk Actions": "Acciones Masivas", + "Clear": "Borrar", + "Columns": "Columnas", + "Debugging Values": "Valores de depuración", + "Deselect All": "Deseleccionar todo", + "Done Reordering": "Reordenación finalizada", + "Filters": "Filtros", + "not_applicable": "N/A", + "No": "No", + "No items found. Try to broaden your search.": "No se encontraron elementos. Intente ampliar la búsqueda.", + "of": "de", + "Remove filter option": "Remover opción de filtro", + "Remove sort option": "Remover opción de ordenamineto", + "Reorder": "Reordenar", + "results": "resultados", + "row": "fila", + "rows": "filas", + "rows, do you want to select all": "filas, desea seleccionar todas", + "Search": "Buscar", + "Select All": "Seleccionar todo", + "Select All On Page": "Seleccionar todo en la página", + "Showing": "Mostrando", + "to": "a", + "Yes": "Sí", + "You are currently selecting all": "Actualmente está seleccionando todo", + "You are not connected to the internet.": "No está conectado a Internet.", + "You have selected": "Ha seleccionado" +} \ No newline at end of file diff --git a/resources/lang/json/fr.json b/resources/lang/json/fr.json new file mode 100644 index 000000000..89323dc4a --- /dev/null +++ b/resources/lang/json/fr.json @@ -0,0 +1,62 @@ +{ + "livewire-tables::All": "Tous", + "livewire-tables::All Columns": "Toutes les colonnes", + "livewire-tables::Applied Filters": "Filtres appliqués", + "livewire-tables::Applied Sorting": "Tris appliqués", + "livewire-tables::Bulk Actions": "Actions en masse", + "livewire-tables::Clear": "Effacer", + "livewire-tables::Columns": "Colonnes", + "livewire-tables::Debugging Values": "Valeurs de débogage", + "livewire-tables::Deselect All": "Tout désélectionner ", + "livewire-tables::Done Reordering": "Réordonnancement terminé", + "livewire-tables::Filters": "Filtres", + "livewire-tables::not_applicable": "N/A", + "livewire-tables::No": "Non", + "livewire-tables::No items found. Try to broaden your search.": "Aucun élément trouvé. Essayez d'élargir votre recherche.", + "livewire-tables::of": "sur", + "livewire-tables::Remove filter option": "Supprimer l'option de filtrage", + "livewire-tables::Remove sort option": "Supprimer l'option de tri", + "livewire-tables::Reorder": "Réordonner", + "livewire-tables::results": "résultats", + "livewire-tables::row": "ligne", + "livewire-tables::rows": "lignes", + "livewire-tables::rows, do you want to select all": "lignes, voulez-vous tout sélectionner ?", + "livewire-tables::Search": "Rechercher", + "livewire-tables::Select All": "Tout sélectionner", + "livewire-tables::Showing": "Montrant", + "livewire-tables::to": "à", + "livewire-tables::Yes": "Oui", + "livewire-tables::You are currently selecting all": "Vous êtes en train de sélectionner ", + "livewire-tables::You are not connected to the internet.": "Vous n'êtes pas connecté à l'Internet.", + "livewire-tables::You have selected": "Vous avez sélectionné", + "All": "Tous", + "All Columns": "Toutes les colonnes", + "Applied Filters": "Filtres appliqués", + "Applied Sorting": "Tris appliqués", + "Bulk Actions": "Actions en masse", + "Clear": "Effacer", + "Columns": "Colonnes", + "Debugging Values": "Valeurs de débogage", + "Deselect All": "Tout désélectionner ", + "Done Reordering": "Réordonnancement terminé", + "Filters": "Filtres", + "not_applicable": "N/A", + "No": "Non", + "No items found. Try to broaden your search.": "Aucun élément trouvé. Essayez d'élargir votre recherche.", + "of": "sur", + "Remove filter option": "Supprimer l'option de filtrage", + "Remove sort option": "Supprimer l'option de tri", + "Reorder": "Réordonner", + "results": "résultats", + "row": "ligne", + "rows": "lignes", + "rows, do you want to select all": "lignes, voulez-vous tout sélectionner ?", + "Search": "Rechercher", + "Select All": "Tout sélectionner", + "Showing": "Montrant", + "to": "à", + "Yes": "Oui", + "You are currently selecting all": "Vous êtes en train de sélectionner ", + "You are not connected to the internet.": "Vous n'êtes pas connecté à l'Internet.", + "You have selected": "Vous avez sélectionné" +} \ No newline at end of file diff --git a/resources/lang/json/id.json b/resources/lang/json/id.json new file mode 100644 index 000000000..06a9f38cf --- /dev/null +++ b/resources/lang/json/id.json @@ -0,0 +1,63 @@ +{ + "livewire-tables::All": "Semua", + "livewire-tables::All Columns": "Semua Kolom", + "livewire-tables::Applied Filters": "Filter Diterapkan", + "livewire-tables::Applied Sorting": "Penyortiran Diterapkan", + "livewire-tables::Bulk Actions": "Aksi", + "livewire-tables::Clear": "Bersihkan", + "livewire-tables::Columns": "Kolom", + "livewire-tables::Debugging Values": "Nilai Debug", + "livewire-tables::Deselect All": "Batalkan Semua Pilihan", + "livewire-tables::Done Reordering": "Selesai Mengurutkan Ulang", + "livewire-tables::Filters": "Filter", + "livewire-tables::not_applicable": "N/A", + "livewire-tables::No": "Tidak", + "livewire-tables::No items found. Try to broaden your search.": "Tidak ada data yang ditemukan. Cobalah untuk memperluas pencarian Anda.", + "livewire-tables::of": "dari", + "livewire-tables::Remove filter option": "Hapus opsi filter", + "livewire-tables::Remove sort option": "Hapus opsi pengurutan", + "livewire-tables::Reorder": "Urutkan ulang", + "livewire-tables::results": "hasil", + "livewire-tables::row": "baris", + "livewire-tables::rows": "baris", + "livewire-tables::rows, do you want to select all": "baris, apakah Anda ingin memilih semua?", + "livewire-tables::Search": "Cari", + "livewire-tables::Select All": "Pilih Semua", + "livewire-tables::Showing": "Menampilkan", + "livewire-tables::to": "ke", + "livewire-tables::Yes": "Ya", + "livewire-tables::You are currently selecting all": "Anda sedang memilih semua", + "livewire-tables::You are not connected to the internet.": "Anda sedang tidak terhubung ke internet.", + "livewire-tables::You have selected": "Anda telah memilih", + "All": "Semua", + "All Columns": "Semua Kolom", + "Applied Filters": "Filter Diterapkan", + "Applied Sorting": "Penyortiran Diterapkan", + "Bulk Actions": "Aksi", + "Clear": "Bersihkan", + "Columns": "Kolom", + "Debugging Values": "Nilai Debug", + "Deselect All": "Batalkan Semua Pilihan", + "Done Reordering": "Selesai Mengurutkan Ulang", + "Filters": "Filter", + "not_applicable": "N/A", + "No": "Tidak", + "No items found. Try to broaden your search.": "Tidak ada data yang ditemukan. Cobalah untuk memperluas pencarian Anda.", + "of": "dari", + "Remove filter option": "Hapus opsi filter", + "Remove sort option": "Hapus opsi pengurutan", + "Reorder": "Urutkan ulang", + "results": "hasil", + "row": "baris", + "rows": "baris", + "rows, do you want to select all": "baris, apakah Anda ingin memilih semua?", + "Search": "Cari", + "Select All": "Pilih Semua", + "Showing": "Menampilkan", + "to": "ke", + "Yes": "Ya", + "You are currently selecting all": "Anda sedang memilih semua", + "You are not connected to the internet.": "Anda sedang tidak terhubung ke internet.", + "You have selected": "Anda telah memilih" + +} \ No newline at end of file diff --git a/resources/lang/json/it.json b/resources/lang/json/it.json new file mode 100644 index 000000000..a1c50fb21 --- /dev/null +++ b/resources/lang/json/it.json @@ -0,0 +1,63 @@ +{ + "livewire-tables::All": "Tutti", + "livewire-tables::All Columns": "Tutte le colonne", + "livewire-tables::Applied Filters": "Filtri Applicati", + "livewire-tables::Applied Sorting": "Ordinamento Applicato", + "livewire-tables::Bulk Actions": "Azioni di Gruppo", + "livewire-tables::Clear": "Pulisci", + "livewire-tables::Columns": "Colonne", + "livewire-tables::Debugging Values": "Valori di debug", + "livewire-tables::Deselect All": "Deseleziona tutto", + "livewire-tables::Done Reordering": "Ordinamento Terminato", + "livewire-tables::Filters": "Filtri", + "livewire-tables::not_applicable": "N/A", + "livewire-tables::No": "No", + "livewire-tables::No items found. Try to broaden your search.": "Nessun risultato trovato. Prova ad ampliare la tua ricerca.", + "livewire-tables::of": "di", + "livewire-tables::Remove filter option": "Rimuovi filtro", + "livewire-tables::Remove sort option": "Rimuovi ordinamento", + "livewire-tables::Reorder": "Riordina", + "livewire-tables::results": "risultati", + "livewire-tables::row": "righe", + "livewire-tables::rows": "righe", + "livewire-tables::rows, do you want to select all": "righe, vuoi selezionarle tutte", + "livewire-tables::Search": "Cerca", + "livewire-tables::Select All": "Seleziona Tutto", + "livewire-tables::Showing": "Visualizzati", + "livewire-tables::to": "a", + "livewire-tables::Yes": "SÌ", + "livewire-tables::You are currently selecting all": "Stai selezionando tutto", + "livewire-tables::You are not connected to the internet.": "Non sei connesso a internet", + "livewire-tables::You have selected": "Hai selezionato", + "All": "Tutti", + "All Columns": "Tutte le colonne", + "Applied Filters": "Filtri Applicati", + "Applied Sorting": "Ordinamento Applicato", + "Bulk Actions": "Azioni di Gruppo", + "Clear": "Pulisci", + "Columns": "Colonne", + "Debugging Values": "Valori di debug", + "Deselect All": "Deseleziona tutto", + "Done Reordering": "Ordinamento Terminato", + "Filters": "Filtri", + "not_applicable": "N/A", + "No": "No", + "No items found. Try to broaden your search.": "Nessun risultato trovato. Prova ad ampliare la tua ricerca.", + "of": "di", + "Remove filter option": "Rimuovi filtro", + "Remove sort option": "Rimuovi ordinamento", + "Reorder": "Riordina", + "results": "risultati", + "row": "righe", + "rows": "righe", + "rows, do you want to select all": "righe, vuoi selezionarle tutte", + "Search": "Cerca", + "Select All": "Seleziona Tutto", + "Showing": "Visualizzati", + "to": "a", + "Yes": "SÌ", + "You are currently selecting all": "Stai selezionando tutto", + "You are not connected to the internet.": "Non sei connesso a internet", + "You have selected": "Hai selezionato" + +} \ No newline at end of file diff --git a/resources/lang/json/ms.json b/resources/lang/json/ms.json new file mode 100644 index 000000000..e7e725fa7 --- /dev/null +++ b/resources/lang/json/ms.json @@ -0,0 +1,62 @@ +{ + "livewire-tables::All": "Semua", + "livewire-tables::All Columns": "Semua Lajur", + "livewire-tables::Applied Filters": "Tapisan Digunakan", + "livewire-tables::Applied Sorting": "Susunan Digunakan", + "livewire-tables::Bulk Actions": "Tindakan Pukal", + "livewire-tables::Clear": "Kosongkan", + "livewire-tables::Columns": "Kolum", + "livewire-tables::Debugging Values": "Menyahpepijat Nilai", + "livewire-tables::Deselect All": "Nyahpilih semua", + "livewire-tables::Done Reordering": "Selesai Menyusun Semula", + "livewire-tables::Filters": "Tapisan", + "livewire-tables::not_applicable": "N/A", + "livewire-tables::No": "Tidak", + "livewire-tables::No items found. Try to broaden your search.": "Tiada data ditemui. Sila perluaskan carian anda", + "livewire-tables::of": "daripada", + "livewire-tables::Remove filter option": "Keluarkan pilihan tapisan", + "livewire-tables::Remove sort option": "Keluarkan pilihan sususan", + "livewire-tables::Reorder": "menyusun semula", + "livewire-tables::results": "keputusan", + "livewire-tables::row": "barisan", + "livewire-tables::rows": "barisan", + "livewire-tables::rows, do you want to select all": "barisan, adakah anda mahu pilih semua?", + "livewire-tables::Search": "Carian", + "livewire-tables::Select All": "Pilih Semua", + "livewire-tables::Showing": "Menunjukkan", + "livewire-tables::to": "ke", + "livewire-tables::Yes": "ya", + "livewire-tables::You are currently selecting all": "Anda sedang memilih semua", + "livewire-tables::You are not connected to the internet.": "Anda tidak disambungkan ke internet.", + "livewire-tables::You have selected": "Anda telah memilih", + "All": "Semua", + "All Columns": "Semua Lajur", + "Applied Filters": "Tapisan Digunakan", + "Applied Sorting": "Susunan Digunakan", + "Bulk Actions": "Tindakan Pukal", + "Clear": "Kosongkan", + "Columns": "Kolum", + "Debugging Values": "Menyahpepijat Nilai", + "Deselect All": "Nyahpilih semua", + "Done Reordering": "Selesai Menyusun Semula", + "Filters": "Tapisan", + "not_applicable": "N/A", + "No": "Tidak", + "No items found. Try to broaden your search.": "Tiada data ditemui. Sila perluaskan carian anda", + "of": "daripada", + "Remove filter option": "Keluarkan pilihan tapisan", + "Remove sort option": "Keluarkan pilihan sususan", + "Reorder": "menyusun semula", + "results": "keputusan", + "row": "barisan", + "rows": "barisan", + "rows, do you want to select all": "barisan, adakah anda mahu pilih semua?", + "Search": "Carian", + "Select All": "Pilih Semua", + "Showing": "Menunjukkan", + "to": "ke", + "Yes": "ya", + "You are currently selecting all": "Anda sedang memilih semua", + "You are not connected to the internet.": "Anda tidak disambungkan ke internet.", + "You have selected": "Anda telah memilih" +} \ No newline at end of file diff --git a/resources/lang/json/nl.json b/resources/lang/json/nl.json new file mode 100644 index 000000000..a6223018c --- /dev/null +++ b/resources/lang/json/nl.json @@ -0,0 +1,66 @@ +{ + "livewire-tables::All": "Alle", + "livewire-tables::All Columns": "Alle kolommen", + "livewire-tables::Applied Filters": "Toegepaste filters", + "livewire-tables::Applied Sorting": "Toegepaste sortering", + "livewire-tables::Bulk Actions": "Bulkacties", + "livewire-tables::Bulk Actions Confirm": "Weet u het zeker?", + "livewire-tables::Clear": "Wissen", + "livewire-tables::Columns": "Kolommen", + "livewire-tables::Debugging Values": "Debugging waarden", + "livewire-tables::Deselect All": "Alles deselecteren", + "livewire-tables::Done Reordering": "Hersortering voltooid", + "livewire-tables::Filters": "Filters", + "livewire-tables::not_applicable": "N/A", + "livewire-tables::No": "Nee", + "livewire-tables::No items found. Try to broaden your search.": "Er zijn geen items gevonden. Probeer uw zoekopdracht te verfijnen.", + "livewire-tables::of": "van", + "livewire-tables::Remove filter option": "Filteroptie verwijderen", + "livewire-tables::Remove sort option": "Sorteeroptie verwijderen", + "livewire-tables::Reorder": "Hersorteren", + "livewire-tables::results": "resultaten", + "livewire-tables::row": "rij", + "livewire-tables::rows": "rijen", + "livewire-tables::rows, do you want to select all": "rijen, wilt u alles selecteren", + "livewire-tables::Search": "Zoeken", + "livewire-tables::Select All": "Alles selecteren", + "livewire-tables::Showing": "Toont", + "livewire-tables::to": "tot", + "livewire-tables::Yes": "Ja", + "livewire-tables::You are currently selecting all": "Huidig heeft u alles geselecteerd", + "livewire-tables::You are not connected to the internet.": "U bent niet verbonden met het internet.", + "livewire-tables::You have selected": "U selecteerde", + "livewire-tables::Select All On Page": "Alles op deze pagina selecteren", + "All": "Alle", + "All Columns": "Alle kolommen", + "Applied Filters": "Toegepaste filters", + "Applied Sorting": "Toegepaste sortering", + "Bulk Actions": "Bulkacties", + "Bulk Actions Confirm": "Weet u het zeker?", + "Clear": "Wissen", + "Columns": "Kolommen", + "Debugging Values": "Debugging waarden", + "Deselect All": "Alles deselecteren", + "Done Reordering": "Hersortering voltooid", + "Filters": "Filters", + "not_applicable": "N/A", + "No": "Nee", + "No items found. Try to broaden your search.": "Er zijn geen items gevonden. Probeer uw zoekopdracht te verfijnen.", + "of": "van", + "Remove filter option": "Filteroptie verwijderen", + "Remove sort option": "Sorteeroptie verwijderen", + "Reorder": "Hersorteren", + "results": "resultaten", + "row": "rij", + "rows": "rijen", + "rows, do you want to select all": "rijen, wilt u alles selecteren", + "Search": "Zoeken", + "Select All": "Alles selecteren", + "Showing": "Toont", + "to": "tot", + "Yes": "Ja", + "You are currently selecting all": "Huidig heeft u alles geselecteerd", + "You are not connected to the internet.": "U bent niet verbonden met het internet.", + "You have selected": "U selecteerde", + "Select All On Page": "Alles op deze pagina selecteren" +} diff --git a/resources/lang/json/pl.json b/resources/lang/json/pl.json new file mode 100644 index 000000000..12469dc82 --- /dev/null +++ b/resources/lang/json/pl.json @@ -0,0 +1,66 @@ +{ + "livewire-tables::All": "Wszystko", + "livewire-tables::All Columns": "Wszystkie kolumny", + "livewire-tables::Applied Filters": "Użyte filtry", + "livewire-tables::Applied Sorting": "Użyte sortowanie", + "livewire-tables::Bulk Actions": "Akcje zbiorowe", + "livewire-tables::Bulk Actions Confirm": "Czy zastosować ?", + "livewire-tables::Clear": "Wyczyść", + "livewire-tables::Columns": "Kolumny", + "livewire-tables::Debugging Values": "Wartości debugowania", + "livewire-tables::Deselect All": "Odznacz wszystko", + "livewire-tables::Done Reordering": "Done Reordering", + "livewire-tables::Filters": "Filtry", + "livewire-tables::not_applicable": "N/A", + "livewire-tables::No": "Nie", + "livewire-tables::No items found. Try to broaden your search.": "Brak rezultatów do wyświetlenia.", + "livewire-tables::of": "z", + "livewire-tables::Remove filter option": "Usuń opcję filtra", + "livewire-tables::Remove sort option": "Usuń opcję sortowania", + "livewire-tables::Reorder": "Zmień kolejność", + "livewire-tables::results": "wyniki", + "livewire-tables::row": "wiersz", + "livewire-tables::rows": "wiersze", + "livewire-tables::rows, do you want to select all": "czy chcesz zaznaczyć wszystkie wiersze", + "livewire-tables::Search": "Szukaj", + "livewire-tables::Select All": "Zaznacz wszystko", + "livewire-tables::Select All On Page": "Zaznacz wszystko na stronie", + "livewire-tables::Showing": "Pokazywanie", + "livewire-tables::to": "do", + "livewire-tables::Yes": "Tak", + "livewire-tables::You are currently selecting all": "Aktualnie masz wszystko zaznaczone", + "livewire-tables::You are not connected to the internet.": "Brak połączenia z internetem.", + "livewire-tables::You have selected": "Masz wybrane", + "All": "Wszystko", + "All Columns": "Wszystkie kolumny", + "Applied Filters": "Użyte filtry", + "Applied Sorting": "Użyte sortowanie", + "Bulk Actions": "Akcje zbiorowe", + "Bulk Actions Confirm": "Czy zastosować ?", + "Clear": "Wyczyść", + "Columns": "Kolumny", + "Debugging Values": "Wartości debugowania", + "Deselect All": "Odznacz wszystko", + "Done Reordering": "Done Reordering", + "Filters": "Filtry", + "not_applicable": "N/A", + "No": "Nie", + "No items found. Try to broaden your search.": "Brak rezultatów do wyświetlenia.", + "of": "z", + "Remove filter option": "Usuń opcję filtra", + "Remove sort option": "Usuń opcję sortowania", + "Reorder": "Zmień kolejność", + "results": "wyniki", + "row": "wiersz", + "rows": "wiersze", + "rows, do you want to select all": "czy chcesz zaznaczyć wszystkie wiersze", + "Search": "Szukaj", + "Select All": "Zaznacz wszystko", + "Select All On Page": "Zaznacz wszystko na stronie", + "Showing": "Pokazywanie", + "to": "do", + "Yes": "Tak", + "You are currently selecting all": "Aktualnie masz wszystko zaznaczone", + "You are not connected to the internet.": "Brak połączenia z internetem.", + "You have selected": "Masz wybrane" +} \ No newline at end of file diff --git a/resources/lang/json/pt.json b/resources/lang/json/pt.json new file mode 100644 index 000000000..f38578da1 --- /dev/null +++ b/resources/lang/json/pt.json @@ -0,0 +1,64 @@ +{ + "livewire-tables::All": "Tudo", + "livewire-tables::All Columns": "Todas as colunas", + "livewire-tables::Applied Filters": "Filtros Aplicados", + "livewire-tables::Applied Sorting": "Ordenação Aplicada", + "livewire-tables::Bulk Actions": "Ações Massivas", + "livewire-tables::Clear": "Limpar", + "livewire-tables::Columns": "Colunas", + "livewire-tables::Debugging Values": "Valores de depuração", + "livewire-tables::Deselect All": "Desmarcar Tudo", + "livewire-tables::Done Reordering": "Ordeanação finalizada", + "livewire-tables::Filters": "Filtros", + "livewire-tables::not_applicable": "N/A", + "livewire-tables::No": "Não", + "livewire-tables::No items found. Try to broaden your search.": "Nenhum resultado encontrado. Tente ampliar a sua pesquisa.", + "livewire-tables::of": "de", + "livewire-tables::Remove filter option": "Remover opção de filtro", + "livewire-tables::Remove sort option": "Remover opção de ordenação", + "livewire-tables::Reorder": "Reordenar", + "livewire-tables::results": "resultados", + "livewire-tables::row": "linha", + "livewire-tables::rows": "linhas", + "livewire-tables::rows, do you want to select all": "linhas, pretende selecionar tudo", + "livewire-tables::Search": "Pesquisar", + "livewire-tables::Select All": "Seleccionar Tudo", + "livewire-tables::Select All On Page": "Selecione tudo na página", + "livewire-tables::Showing": "A mostrar", + "livewire-tables::to": "a", + "livewire-tables::Yes": "Sim", + "livewire-tables::You are currently selecting all": "Atualmente está a selecionar tudo", + "livewire-tables::You are not connected to the internet.": "Não está ligado à internet.", + "livewire-tables::You have selected": "Selecionou", + "All": "Tudo", + "All Columns": "Todas as colunas", + "Applied Filters": "Filtros Aplicados", + "Applied Sorting": "Ordenação Aplicada", + "Bulk Actions": "Ações Massivas", + "Clear": "Limpar", + "Columns": "Colunas", + "Debugging Values": "Valores de depuração", + "Deselect All": "Desmarcar Tudo", + "Done Reordering": "Ordeanação finalizada", + "Filters": "Filtros", + "not_applicable": "N/A", + "No": "Não", + "No items found. Try to broaden your search.": "Nenhum resultado encontrado. Tente ampliar a sua pesquisa.", + "of": "de", + "Remove filter option": "Remover opção de filtro", + "Remove sort option": "Remover opção de ordenação", + "Reorder": "Reordenar", + "results": "resultados", + "row": "linha", + "rows": "linhas", + "rows, do you want to select all": "linhas, pretende selecionar tudo", + "Search": "Pesquisar", + "Select All": "Seleccionar Tudo", + "Select All On Page": "Selecione tudo na página", + "Showing": "A mostrar", + "to": "a", + "Yes": "Sim", + "You are currently selecting all": "Atualmente está a selecionar tudo", + "You are not connected to the internet.": "Não está ligado à internet.", + "You have selected": "Selecionou" +} \ No newline at end of file diff --git a/resources/lang/json/pt_BR.json b/resources/lang/json/pt_BR.json new file mode 100644 index 000000000..09a0e2906 --- /dev/null +++ b/resources/lang/json/pt_BR.json @@ -0,0 +1,66 @@ +{ + "livewire-tables::All": "Tudo", + "livewire-tables::All Columns": "Todas as colunas", + "livewire-tables::Applied Filters": "Filtros aplicados", + "livewire-tables::Applied Sorting": "Ordenação aplicada", + "livewire-tables::Bulk Actions": "Ações em massa", + "livewire-tables::Bulk Actions Confirm": "Tem certeza", + "livewire-tables::Clear": "Limpar", + "livewire-tables::Columns": "Colunas", + "livewire-tables::Debugging Values": "Valores de depuração", + "livewire-tables::Deselect All": "Desmarcar Tudo", + "livewire-tables::Done Reordering": "Ordenação finalizada", + "livewire-tables::Filters": "Filtros", + "livewire-tables::not_applicable": "N/A", + "livewire-tables::No": "Não", + "livewire-tables::No items found. Try to broaden your search.": "Nenhum resultado encontrado. Tente ampliar a sua pesquisa.", + "livewire-tables::of": "de", + "livewire-tables::Reorder": "Reordenar", + "livewire-tables::results": "resultados", + "livewire-tables::Remove filter option": "Remover opção de filtro", + "livewire-tables::Remove sort option": "Remover opção de ordenação", + "livewire-tables::row": "linha", + "livewire-tables::rows": "linhas", + "livewire-tables::rows, do you want to select all": "linhas, você deseja selecionar tudo?", + "livewire-tables::Search": "Pesquisar", + "livewire-tables::Select All": "Selecionar tudo", + "livewire-tables::Select All On Page": "Selecione tudo na página", + "livewire-tables::Showing": "Exibindo", + "livewire-tables::to": "a", + "livewire-tables::Yes": "Sim", + "livewire-tables::You are currently selecting all": "Você selecionou tudo", + "livewire-tables::You are not connected to the internet.": "Você não está conectado na internet.", + "livewire-tables::You have selected": "Você selecionou", + "All": "Tudo", + "All Columns": "Todas as colunas", + "Applied Filters": "Filtros aplicados", + "Applied Sorting": "Ordenação aplicada", + "Bulk Actions": "Ações em massa", + "Bulk Actions Confirm": "Tem certeza", + "Clear": "Limpar", + "Columns": "Colunas", + "Debugging Values": "Valores de depuração", + "Deselect All": "Desmarcar Tudo", + "Done Reordering": "Ordenação finalizada", + "Filters": "Filtros", + "not_applicable": "N/A", + "No": "Não", + "No items found. Try to broaden your search.": "Nenhum resultado encontrado. Tente ampliar a sua pesquisa.", + "of": "de", + "Reorder": "Reordenar", + "results": "resultados", + "Remove filter option": "Remover opção de filtro", + "Remove sort option": "Remover opção de ordenação", + "row": "linha", + "rows": "linhas", + "rows, do you want to select all": "linhas, você deseja selecionar tudo?", + "Search": "Pesquisar", + "Select All": "Selecionar tudo", + "Select All On Page": "Selecione tudo na página", + "Showing": "Exibindo", + "to": "a", + "Yes": "Sim", + "You are currently selecting all": "Você selecionou tudo", + "You are not connected to the internet.": "Você não está conectado na internet.", + "You have selected": "Você selecionou" +} \ No newline at end of file diff --git a/resources/lang/json/ru.json b/resources/lang/json/ru.json new file mode 100644 index 000000000..53b9fbf1b --- /dev/null +++ b/resources/lang/json/ru.json @@ -0,0 +1,62 @@ +{ + "livewire-tables::All": "Все", + "livewire-tables::All Columns": "Все столбцы", + "livewire-tables::Applied Filters": "Примененные фильтры", + "livewire-tables::Applied Sorting": "Примененная сортировка", + "livewire-tables::Bulk Actions": "Массовые действия", + "livewire-tables::Clear": "Очистить", + "livewire-tables::Columns": "Столбцы", + "livewire-tables::Debugging Values": "Отладочные значения", + "livewire-tables::Deselect All": "Снять выделение", + "livewire-tables::Done Reordering": "Сортировка выполнена", + "livewire-tables::Filters": "Фильтры", + "livewire-tables::not_applicable": "N/A", + "livewire-tables::No": "Нет", + "livewire-tables::No items found. Try to broaden your search.": "Ничего не найдено. Попробуйте расширить поиск.", + "livewire-tables::of": "из", + "livewire-tables::Remove filter option": "Удалить фильтр", + "livewire-tables::Remove sort option": "Удалить параметр сортировки", + "livewire-tables::Reorder": "Переупорядочить", + "livewire-tables::results": "результатов", + "livewire-tables::row": "ряды", + "livewire-tables::rows": "ряды", + "livewire-tables::rows, do you want to select all": "ряды, вы хотите выбрать все", + "livewire-tables::Search": "Поиск", + "livewire-tables::Select All": "Выбрать все", + "livewire-tables::Showing": "Показано с", + "livewire-tables::to": "к", + "livewire-tables::Yes": "Да", + "livewire-tables::You are currently selecting all": "Вы выбираете все", + "livewire-tables::You are not connected to the internet.": "Вы не подключены к Интернету", + "livewire-tables::You have selected": "Вы выбрали", + "All": "Все", + "All Columns": "Все столбцы", + "Applied Filters": "Примененные фильтры", + "Applied Sorting": "Примененная сортировка", + "Bulk Actions": "Массовые действия", + "Clear": "Очистить", + "Columns": "Столбцы", + "Debugging Values": "Отладочные значения", + "Deselect All": "Снять выделение", + "Done Reordering": "Сортировка выполнена", + "Filters": "Фильтры", + "not_applicable": "N/A", + "No": "Нет", + "No items found. Try to broaden your search.": "Ничего не найдено. Попробуйте расширить поиск.", + "of": "из", + "Remove filter option": "Удалить фильтр", + "Remove sort option": "Удалить параметр сортировки", + "Reorder": "Переупорядочить", + "results": "результатов", + "row": "ряды", + "rows": "ряды", + "rows, do you want to select all": "ряды, вы хотите выбрать все", + "Search": "Поиск", + "Select All": "Выбрать все", + "Showing": "Показано с", + "to": "к", + "Yes": "Да", + "You are currently selecting all": "Вы выбираете все", + "You are not connected to the internet.": "Вы не подключены к Интернету", + "You have selected": "Вы выбрали" +} \ No newline at end of file diff --git a/resources/lang/json/th.json b/resources/lang/json/th.json new file mode 100644 index 000000000..35c21b7fd --- /dev/null +++ b/resources/lang/json/th.json @@ -0,0 +1,66 @@ +{ + "livewire-tables::All": "ทั้งหมด", + "livewire-tables::All Columns": "คอลัมน์ทั้งหมด", + "livewire-tables::Applied Filters": "กรองข้อมูลตาม", + "livewire-tables::Applied Sorting": "เรียงลำดับตาม", + "livewire-tables::Bulk Actions": "เลือกการกระทำ", + "livewire-tables::Bulk Actions Confirm": "คุณแน่ใจ?", + "livewire-tables::Clear": "ล้างทั้งหมด", + "livewire-tables::Columns": "เลือกคอลัมน์", + "livewire-tables::Debugging Values": "ค่าการดีบัก", + "livewire-tables::Deselect All": "ไม่เลือกทั้งหมด", + "livewire-tables::Done Reordering": "จัดลำดับแล้ว", + "livewire-tables::Filters": "ตัวกรอง", + "livewire-tables::not_applicable": "N/A", + "livewire-tables::No": "เลขที่", + "livewire-tables::No items found. Try to broaden your search.": "ไม่พบรายการที่ค้นหา", + "livewire-tables::of": "จาก", + "livewire-tables::Remove filter option": "เอาตัวกรองออก", + "livewire-tables::Remove sort option": "เอาการเรียงลำดับออก", + "livewire-tables::Reorder": "จัดลำดับ", + "livewire-tables::results": "รายการ", + "livewire-tables::row": "รายการ", + "livewire-tables::rows": "รายการ", + "livewire-tables::rows, do you want to select all": "รายการ, คุณต้องการเลือกทั้งหมด", + "livewire-tables::Search": "ค้นหา...", + "livewire-tables::Select All": "เลือกทั้งหมด", + "livewire-tables::Select All On Page": "เลือกทั้งหมดบนหน้า", + "livewire-tables::Showing": "แสดง", + "livewire-tables::to": "-", + "livewire-tables::Yes": "ใช่", + "livewire-tables::You are currently selecting all": "ขณะนี้คุณได้เลือกทุกรายการ", + "livewire-tables::You are not connected to the internet.": "ขณะนี้คุณไม่ได้เชื่อมต่อกับอินเทอร์เน็ต", + "livewire-tables::You have selected": "คุณเลือก", + "All": "ทั้งหมด", + "All Columns": "คอลัมน์ทั้งหมด", + "Applied Filters": "กรองข้อมูลตาม", + "Applied Sorting": "เรียงลำดับตาม", + "Bulk Actions": "เลือกการกระทำ", + "Bulk Actions Confirm": "คุณแน่ใจ?", + "Clear": "ล้างทั้งหมด", + "Columns": "เลือกคอลัมน์", + "Debugging Values": "ค่าการดีบัก", + "Deselect All": "ไม่เลือกทั้งหมด", + "Done Reordering": "จัดลำดับแล้ว", + "Filters": "ตัวกรอง", + "not_applicable": "N/A", + "No": "เลขที่", + "No items found. Try to broaden your search.": "ไม่พบรายการที่ค้นหา", + "of": "จาก", + "Remove filter option": "เอาตัวกรองออก", + "Remove sort option": "เอาการเรียงลำดับออก", + "Reorder": "จัดลำดับ", + "results": "รายการ", + "row": "รายการ", + "rows": "รายการ", + "rows, do you want to select all": "รายการ, คุณต้องการเลือกทั้งหมด", + "Search": "ค้นหา...", + "Select All": "เลือกทั้งหมด", + "Select All On Page": "เลือกทั้งหมดบนหน้า", + "Showing": "แสดง", + "to": "-", + "Yes": "ใช่", + "You are currently selecting all": "ขณะนี้คุณได้เลือกทุกรายการ", + "You are not connected to the internet.": "ขณะนี้คุณไม่ได้เชื่อมต่อกับอินเทอร์เน็ต", + "You have selected": "คุณเลือก" +} \ No newline at end of file diff --git a/resources/lang/json/tk.json b/resources/lang/json/tk.json new file mode 100644 index 000000000..2099d845f --- /dev/null +++ b/resources/lang/json/tk.json @@ -0,0 +1,62 @@ +{ + "livewire-tables::All": "Hemmesi", + "livewire-tables::All Columns": "Colhli sütünler", + "livewire-tables::Applied Filters": "Ulanylýan Süzgüçler", + "livewire-tables::Applied Sorting": "Ulanylýan Tertipleşdirme", + "livewire-tables::Bulk Actions": "Köpçülikleýin Hereketler", + "livewire-tables::Clear": "Arassala", + "livewire-tables::Columns": "Sütünler", + "livewire-tables::Debugging Values": "Gymmatlyklary düzetmek", + "livewire-tables::Deselect All": "Hemmesini Aýyr", + "livewire-tables::Done Reordering": "Täzeden Tertiplendi", + "livewire-tables::Filters": "Süzgüçler", + "livewire-tables::not_applicable": "N/A", + "livewire-tables::No": "Hayir", + "livewire-tables::No items found. Try to broaden your search.": "Hiç zat tapylmady. Gözlegiňizi giňeltmäge synanyşyň.", + "livewire-tables::of": "aralygy", + "livewire-tables::Remove filter option": "Süzgüç görnüşini aýyryň", + "livewire-tables::Remove sort option": "Tertiplemek görnüşini aýyryň", + "livewire-tables::Reorder": "Tertibe salmak", + "livewire-tables::results": "netijeler", + "livewire-tables::row": "hatarlar", + "livewire-tables::rows": "hatarlar", + "livewire-tables::rows, do you want to select all": "hatarlar, hemmesini saýlamak isleýärsiňizmi?", + "livewire-tables::Search": "Gözlemek", + "livewire-tables::Select All": "Hepsini seç", + "livewire-tables::Showing": "Görkezmek", + "livewire-tables::to": "-", + "livewire-tables::Yes": "Evet", + "livewire-tables::You are currently selecting all": "Häzirki wagtda hemmesini saýlap alýarsyňyz", + "livewire-tables::You are not connected to the internet.": "Siz internete birikmediksiňiz.", + "livewire-tables::You have selected": "Saýladyňyz", + "All": "Hemmesi", + "All Columns": "Colhli sütünler", + "Applied Filters": "Ulanylýan Süzgüçler", + "Applied Sorting": "Ulanylýan Tertipleşdirme", + "Bulk Actions": "Köpçülikleýin Hereketler", + "Clear": "Arassala", + "Columns": "Sütünler", + "Debugging Values": "Gymmatlyklary düzetmek", + "Deselect All": "Hemmesini Aýyr", + "Done Reordering": "Täzeden Tertiplendi", + "Filters": "Süzgüçler", + "not_applicable": "N/A", + "No": "Hayir", + "No items found. Try to broaden your search.": "Hiç zat tapylmady. Gözlegiňizi giňeltmäge synanyşyň.", + "of": "aralygy", + "Remove filter option": "Süzgüç görnüşini aýyryň", + "Remove sort option": "Tertiplemek görnüşini aýyryň", + "Reorder": "Tertibe salmak", + "results": "netijeler", + "row": "hatarlar", + "rows": "hatarlar", + "rows, do you want to select all": "hatarlar, hemmesini saýlamak isleýärsiňizmi?", + "Search": "Gözlemek", + "Select All": "Hepsini seç", + "Showing": "Görkezmek", + "to": "-", + "Yes": "Evet", + "You are currently selecting all": "Häzirki wagtda hemmesini saýlap alýarsyňyz", + "You are not connected to the internet.": "Siz internete birikmediksiňiz.", + "You have selected": "Saýladyňyz" +} \ No newline at end of file diff --git a/resources/lang/json/tr.json b/resources/lang/json/tr.json new file mode 100644 index 000000000..f1218ae2b --- /dev/null +++ b/resources/lang/json/tr.json @@ -0,0 +1,62 @@ +{ + "livewire-tables::All": "Tümü", + "livewire-tables::All Columns": "Tüm Sütunlar", + "livewire-tables::Applied Filters": "Aktif Filtreler", + "livewire-tables::Applied Sorting": "Aktif Sıralamalar", + "livewire-tables::Bulk Actions": "Toplu İşlemler", + "livewire-tables::Clear": "Kaldır", + "livewire-tables::Columns": "Kolonlar", + "livewire-tables::Debugging Values": "Debug Değerleri", + "livewire-tables::Deselect All": "Seçimleri kaldır", + "livewire-tables::Done Reordering": "Sıralamayı Tamamla", + "livewire-tables::Filters": "Filtreler", + "livewire-tables::not_applicable": "N/A", + "livewire-tables::No": "HAYIR", + "livewire-tables::No items found. Try to broaden your search.": "Kayıt bulunamadı.", + "livewire-tables::of": " ", + "livewire-tables::Remove filter option": "Filtre seçeneğini kaldır", + "livewire-tables::Remove sort option": "Sıralama seçeneğini kaldır", + "livewire-tables::Reorder": "Yeniden Sırala", + "livewire-tables::results": "toplam sonuç", + "livewire-tables::row": "satır", + "livewire-tables::rows": "satır", + "livewire-tables::rows, do you want to select all": "satır seçtiniz. Hepsini seçmek ister misiniz?", + "livewire-tables::Search": "Ara", + "livewire-tables::Select All": "Hepsini seç", + "livewire-tables::Showing": "Gösterilen", + "livewire-tables::to": " - ", + "livewire-tables::Yes": "Evet", + "livewire-tables::You are currently selecting all": "Hepsini seçtiniz.", + "livewire-tables::You are not connected to the internet.": "İnternet bağlantınız kesildi.", + "livewire-tables::You have selected": "Siz seçildiniz", + "All": "Tümü", + "All Columns": "Tüm Sütunlar", + "Applied Filters": "Aktif Filtreler", + "Applied Sorting": "Aktif Sıralamalar", + "Bulk Actions": "Toplu İşlemler", + "Clear": "Kaldır", + "Columns": "Kolonlar", + "Debugging Values": "Debug Değerleri", + "Deselect All": "Seçimleri kaldır", + "Done Reordering": "Sıralamayı Tamamla", + "Filters": "Filtreler", + "not_applicable": "N/A", + "No": "HAYIR", + "No items found. Try to broaden your search.": "Kayıt bulunamadı.", + "of": " ", + "Remove filter option": "Filtre seçeneğini kaldır", + "Remove sort option": "Sıralama seçeneğini kaldır", + "Reorder": "Yeniden Sırala", + "results": "toplam sonuç", + "row": "satır", + "rows": "satır", + "rows, do you want to select all": "satır seçtiniz. Hepsini seçmek ister misiniz?", + "Search": "Ara", + "Select All": "Hepsini seç", + "Showing": "Gösterilen", + "to": " - ", + "Yes": "Evet", + "You are currently selecting all": "Hepsini seçtiniz.", + "You are not connected to the internet.": "İnternet bağlantınız kesildi.", + "You have selected": "Siz seçildiniz" +} \ No newline at end of file diff --git a/resources/lang/json/tw.json b/resources/lang/json/tw.json new file mode 100644 index 000000000..b675a47c7 --- /dev/null +++ b/resources/lang/json/tw.json @@ -0,0 +1,66 @@ +{ + "livewire-tables::All": "全部", + "livewire-tables::All Columns": "所有專欄", + "livewire-tables::Applied Filters": "已套用的過濾規則", + "livewire-tables::Applied Sorting": "已套用的搜尋規則", + "livewire-tables::Bulk Actions": "批次操作", + "livewire-tables::Bulk Actions Confirm": "你確定嗎", + "livewire-tables::Clear": "清除", + "livewire-tables::Columns": "欄位", + "livewire-tables::Debugging Values": "調試值", + "livewire-tables::Deselect All": "取消選擇", + "livewire-tables::Done Reordering": "排序完成", + "livewire-tables::Filters": "過濾規則", + "livewire-tables::not_applicable": "N/A", + "livewire-tables::No": "不", + "livewire-tables::No items found. Try to broaden your search.": "無資料呈現。請嘗試擴大搜尋範圍。", + "livewire-tables::of": "筆資料,共", + "livewire-tables::Reorder": "重新排序", + "livewire-tables::Remove filter option": "移除過濾規則", + "livewire-tables::Remove sort option": "移除排序規則", + "livewire-tables::results": "筆資料", + "livewire-tables::row": "筆資料", + "livewire-tables::rows": "筆資料", + "livewire-tables::rows, do you want to select all": "筆資料,您是否要全選", + "livewire-tables::Search": "搜尋", + "livewire-tables::Select All": "搜尋全部", + "livewire-tables::Select All On Page": "选择页面上的所有内容", + "livewire-tables::Showing": "顯示", + "livewire-tables::to": "至", + "livewire-tables::Yes": "是的", + "livewire-tables::You are currently selecting all": "您目前已選擇全部資料", + "livewire-tables::You are not connected to the internet.": "目前為離線模式", + "livewire-tables::You have selected": "您已選擇", + "All": "全部", + "All Columns": "所有專欄", + "Applied Filters": "已套用的過濾規則", + "Applied Sorting": "已套用的搜尋規則", + "Bulk Actions": "批次操作", + "Bulk Actions Confirm": "你確定嗎", + "Clear": "清除", + "Columns": "欄位", + "Debugging Values": "調試值", + "Deselect All": "取消選擇", + "Done Reordering": "排序完成", + "Filters": "過濾規則", + "not_applicable": "N/A", + "No": "不", + "No items found. Try to broaden your search.": "無資料呈現。請嘗試擴大搜尋範圍。", + "of": "筆資料,共", + "Reorder": "重新排序", + "Remove filter option": "移除過濾規則", + "Remove sort option": "移除排序規則", + "results": "筆資料", + "row": "筆資料", + "rows": "筆資料", + "rows, do you want to select all": "筆資料,您是否要全選", + "Search": "搜尋", + "Select All": "搜尋全部", + "Select All On Page": "选择页面上的所有内容", + "Showing": "顯示", + "to": "至", + "Yes": "是的", + "You are currently selecting all": "您目前已選擇全部資料", + "You are not connected to the internet.": "目前為離線模式", + "You have selected": "您已選擇" +} \ No newline at end of file diff --git a/resources/lang/json/uk.json b/resources/lang/json/uk.json new file mode 100644 index 000000000..540684056 --- /dev/null +++ b/resources/lang/json/uk.json @@ -0,0 +1,68 @@ +{ + "livewire-tables::All": "Всі", + "livewire-tables::All Columns": "Усі стовпці", + "livewire-tables::Applied Filters": "Застосовані фільтри", + "livewire-tables::Applied Sorting": "Застосовані сортування", + "livewire-tables::Bulk Actions": "Масові дії", + "livewire-tables::Bulk Actions Confirm": "Vy vpevneni?", + "livewire-tables::Clear": "Очистити", + "livewire-tables::Columns": "Колонки", + "livewire-tables::Debugging Values": "Значення налагодження", + "livewire-tables::Deselect All": "Зняти вибір із усіх", + "livewire-tables::Done Reordering": "Сортування виконанно", + "livewire-tables::Filters": "Фільтри", + "livewire-tables::not_applicable": "N/A", + "livewire-tables::No": "Немає", + "livewire-tables::No items found. Try to broaden your search.": "Немає елементів. Спробуйте розширити пошук.", + "livewire-tables::of": "від", + "livewire-tables::Remove filter option": "Видалити опцію фільтра", + "livewire-tables::Remove sort option": "Видалити параметр сортування", + "livewire-tables::Reorder": "Змінити порядок", + "livewire-tables::results": "результатів", + "livewire-tables::row": "рядки", + "livewire-tables::rows": "рядки", + "livewire-tables::rows, do you want to select all": "рядків, ви хочете вибрати всі", + "livewire-tables::Search": "Пошук", + "livewire-tables::Select All": "Вибрати все", + "livewire-tables::Select All On Page": "Виберіть «Усі на сторінці", + "livewire-tables::Showing": "Показано", + "livewire-tables::to": "до", + "livewire-tables::Unselect All": "Прибрати вибір усіх", + "livewire-tables::Yes": "Так", + "livewire-tables::You are currently selecting all": "Наразі ви вибираєте всі", + "livewire-tables::You are not connected to the internet.": "Ви не підключені до Інтернету.", + "livewire-tables::You have selected": "Ви вибрали", + "All": "Всі", + "All Columns": "Усі стовпці", + "Applied Filters": "Застосовані фільтри", + "Applied Sorting": "Застосовані сортування", + "Bulk Actions": "Масові дії", + "Bulk Actions Confirm": "Vy vpevneni?", + "Clear": "Очистити", + "Columns": "Колонки", + "Debugging Values": "Значення налагодження", + "Deselect All": "Зняти вибір із усіх", + "Done Reordering": "Сортування виконанно", + "Filters": "Фільтри", + "not_applicable": "N/A", + "No": "Немає", + "No items found. Try to broaden your search.": "Немає елементів. Спробуйте розширити пошук.", + "of": "від", + "Remove filter option": "Видалити опцію фільтра", + "Remove sort option": "Видалити параметр сортування", + "Reorder": "Змінити порядок", + "results": "результатів", + "row": "рядки", + "rows": "рядки", + "rows, do you want to select all": "рядків, ви хочете вибрати всі", + "Search": "Пошук", + "Select All": "Вибрати все", + "Select All On Page": "Виберіть «Усі на сторінці", + "Showing": "Показано", + "to": "до", + "Unselect All": "Прибрати вибір усіх", + "Yes": "Так", + "You are currently selecting all": "Наразі ви вибираєте всі", + "You are not connected to the internet.": "Ви не підключені до Інтернету.", + "You have selected": "Ви вибрали" +} \ No newline at end of file diff --git a/resources/lang/ar/core.php b/resources/lang/php/ar/core.php similarity index 100% rename from resources/lang/ar/core.php rename to resources/lang/php/ar/core.php diff --git a/resources/lang/ca/core.php b/resources/lang/php/ca/core.php similarity index 100% rename from resources/lang/ca/core.php rename to resources/lang/php/ca/core.php diff --git a/resources/lang/da/core.php b/resources/lang/php/da/core.php similarity index 100% rename from resources/lang/da/core.php rename to resources/lang/php/da/core.php diff --git a/resources/lang/de/core.php b/resources/lang/php/de/core.php similarity index 100% rename from resources/lang/de/core.php rename to resources/lang/php/de/core.php diff --git a/resources/lang/en/core.php b/resources/lang/php/en/core.php similarity index 100% rename from resources/lang/en/core.php rename to resources/lang/php/en/core.php diff --git a/resources/lang/es/core.php b/resources/lang/php/es/core.php similarity index 100% rename from resources/lang/es/core.php rename to resources/lang/php/es/core.php diff --git a/resources/lang/fr/core.php b/resources/lang/php/fr/core.php similarity index 100% rename from resources/lang/fr/core.php rename to resources/lang/php/fr/core.php diff --git a/resources/lang/id/core.php b/resources/lang/php/id/core.php similarity index 100% rename from resources/lang/id/core.php rename to resources/lang/php/id/core.php diff --git a/resources/lang/it/core.php b/resources/lang/php/it/core.php similarity index 100% rename from resources/lang/it/core.php rename to resources/lang/php/it/core.php diff --git a/resources/lang/ms/core.php b/resources/lang/php/ms/core.php similarity index 100% rename from resources/lang/ms/core.php rename to resources/lang/php/ms/core.php diff --git a/resources/lang/nb/core.php b/resources/lang/php/nb/core.php similarity index 100% rename from resources/lang/nb/core.php rename to resources/lang/php/nb/core.php diff --git a/resources/lang/nl/core.php b/resources/lang/php/nl/core.php similarity index 100% rename from resources/lang/nl/core.php rename to resources/lang/php/nl/core.php diff --git a/resources/lang/pl/core.php b/resources/lang/php/pl/core.php similarity index 100% rename from resources/lang/pl/core.php rename to resources/lang/php/pl/core.php diff --git a/resources/lang/pt/core.php b/resources/lang/php/pt/core.php similarity index 100% rename from resources/lang/pt/core.php rename to resources/lang/php/pt/core.php diff --git a/resources/lang/pt_BR/core.php b/resources/lang/php/pt_BR/core.php similarity index 100% rename from resources/lang/pt_BR/core.php rename to resources/lang/php/pt_BR/core.php diff --git a/resources/lang/ru/core.php b/resources/lang/php/ru/core.php similarity index 100% rename from resources/lang/ru/core.php rename to resources/lang/php/ru/core.php diff --git a/resources/lang/sq/core.php b/resources/lang/php/sq/core.php similarity index 100% rename from resources/lang/sq/core.php rename to resources/lang/php/sq/core.php diff --git a/resources/lang/sv/core.php b/resources/lang/php/sv/core.php similarity index 100% rename from resources/lang/sv/core.php rename to resources/lang/php/sv/core.php diff --git a/resources/lang/th/core.php b/resources/lang/php/th/core.php similarity index 100% rename from resources/lang/th/core.php rename to resources/lang/php/th/core.php diff --git a/resources/lang/tk/core.php b/resources/lang/php/tk/core.php similarity index 100% rename from resources/lang/tk/core.php rename to resources/lang/php/tk/core.php diff --git a/resources/lang/tr/core.php b/resources/lang/php/tr/core.php similarity index 100% rename from resources/lang/tr/core.php rename to resources/lang/php/tr/core.php diff --git a/resources/lang/tw/core.php b/resources/lang/php/tw/core.php similarity index 100% rename from resources/lang/tw/core.php rename to resources/lang/php/tw/core.php diff --git a/resources/lang/uk/core.php b/resources/lang/php/uk/core.php similarity index 100% rename from resources/lang/uk/core.php rename to resources/lang/php/uk/core.php diff --git a/resources/views/components/pagination.blade.php b/resources/views/components/pagination.blade.php index d89a8089a..dedf4507d 100644 --- a/resources/views/components/pagination.blade.php +++ b/resources/views/components/pagination.blade.php @@ -14,30 +14,30 @@ @if ($this->paginationIsEnabled() && $this->isPaginationMethod('standard') && $this->getRows->lastPage() > 1)

@if($this->showPaginationDetails()) - {{ __('livewire-tables::core.Showing') }} + {{ __($this->getLocalisationPath.'Showing') }} {{ $this->getRows->firstItem() }} - {{ __('livewire-tables::core.to') }} + {{ __($this->getLocalisationPath.'to') }} {{ $this->getRows->lastItem() }} - {{ __('livewire-tables::core.of') }} + {{ __($this->getLocalisationPath.'of') }} - {{ __('livewire-tables::core.results') }} + {{ __($this->getLocalisationPath.'results') }} @endif

@elseif ($this->paginationIsEnabled() && $this->isPaginationMethod('simple'))

@if($this->showPaginationDetails()) - {{ __('livewire-tables::core.Showing') }} + {{ __($this->getLocalisationPath.'Showing') }} {{ $this->getRows->firstItem() }} - {{ __('livewire-tables::core.to') }} + {{ __($this->getLocalisationPath.'to') }} {{ $this->getRows->lastItem() }} @endif

@elseif ($this->paginationIsEnabled() && $this->isPaginationMethod('cursor')) @else

- {{ __('livewire-tables::core.Showing') }} + {{ __($this->getLocalisationPath.'Showing') }} {{ $this->getRows->count() }} - {{ __('livewire-tables::core.results') }} + {{ __($this->getLocalisationPath.'results') }}

@endif @@ -59,13 +59,13 @@
@if($this->showPaginationDetails()) - {{ __('livewire-tables::core.Showing') }} + {{ __($this->getLocalisationPath.'Showing') }} {{ $this->getRows->count() ? $this->getRows->firstItem() : 0 }} - {{ __('livewire-tables::core.to') }} + {{ __($this->getLocalisationPath.'to') }} {{ $this->getRows->count() ? $this->getRows->lastItem() : 0 }} - {{ __('livewire-tables::core.of') }} + {{ __($this->getLocalisationPath.'of') }} - {{ __('livewire-tables::core.results') }} + {{ __($this->getLocalisationPath.'results') }} @endif
@@ -77,9 +77,9 @@
@if($this->showPaginationDetails()) - {{ __('livewire-tables::core.Showing') }} + {{ __($this->getLocalisationPath.'Showing') }} {{ $this->getRows->count() ? $this->getRows->firstItem() : 0 }} - {{ __('livewire-tables::core.to') }} + {{ __($this->getLocalisationPath.'to') }} {{ $this->getRows->count() ? $this->getRows->lastItem() : 0 }} @endif
@@ -93,9 +93,9 @@ @else
- {{ __('livewire-tables::core.Showing') }} + {{ __($this->getLocalisationPath.'Showing') }} {{ $this->getRows->count() }} - {{ __('livewire-tables::core.results') }} + {{ __($this->getLocalisationPath.'results') }}
@endif @@ -111,13 +111,13 @@
@if($this->showPaginationDetails()) - {{ __('livewire-tables::core.Showing') }} + {{ __($this->getLocalisationPath.'Showing') }} {{ $this->getRows->count() ? $this->getRows->firstItem() : 0 }} - {{ __('livewire-tables::core.to') }} + {{ __($this->getLocalisationPath.'to') }} {{ $this->getRows->count() ? $this->getRows->lastItem() : 0 }} - {{ __('livewire-tables::core.of') }} + {{ __($this->getLocalisationPath.'of') }} - {{ __('livewire-tables::core.results') }} + {{ __($this->getLocalisationPath.'results') }} @endif
@@ -128,9 +128,9 @@
@if($this->showPaginationDetails()) - {{ __('livewire-tables::core.Showing') }} + {{ __($this->getLocalisationPath.'Showing') }} {{ $this->getRows->count() ? $this->getRows->firstItem() : 0 }} - {{ __('livewire-tables::core.to') }} + {{ __($this->getLocalisationPath.'to') }} {{ $this->getRows->count() ? $this->getRows->lastItem() : 0 }} @endif
@@ -144,9 +144,9 @@ @else
- {{ __('livewire-tables::core.Showing') }} + {{ __($this->getLocalisationPath.'Showing') }} {{ $this->getRows->count() }} - {{ __('livewire-tables::core.results') }} + {{ __($this->getLocalisationPath.'results') }}
@endif diff --git a/resources/views/components/table/tr/bulk-actions.blade.php b/resources/views/components/table/tr/bulk-actions.blade.php index cd8dd4e18..a17062342 100644 --- a/resources/views/components/table/tr/bulk-actions.blade.php +++ b/resources/views/components/table/tr/bulk-actions.blade.php @@ -17,9 +17,9 @@ class="bg-indigo-50 dark:bg-gray-900 dark:text-white" @@ -36,9 +36,9 @@ class="ml-1 text-blue-600 underline text-gray-700 text-sm leading-5 font-medium @@ -80,9 +80,9 @@ class="ml-1 text-blue-600 underline text-gray-700 text-sm leading-5 font-medium @@ -100,9 +100,9 @@ class="btn btn-primary btn-sm" diff --git a/resources/views/components/tools/filter-pills.blade.php b/resources/views/components/tools/filter-pills.blade.php index bfda747fc..ba84a9b74 100644 --- a/resources/views/components/tools/filter-pills.blade.php +++ b/resources/views/components/tools/filter-pills.blade.php @@ -10,7 +10,7 @@ 'text-gray-700 dark:text-white' => $isTailwind, '' => $isBootstrap, ])> - {{ __('livewire-tables::core.Applied Filters') }}: + {{ __($this->getLocalisationPath.'Applied Filters') }}: @foreach($this->getAppliedFiltersWithValues() as $filterSelectName => $value) diff --git a/resources/views/components/tools/filter-pills/buttons/reset-all.blade.php b/resources/views/components/tools/filter-pills/buttons/reset-all.blade.php index 1ffec0b94..78a42dc21 100644 --- a/resources/views/components/tools/filter-pills/buttons/reset-all.blade.php +++ b/resources/views/components/tools/filter-pills/buttons/reset-all.blade.php @@ -9,7 +9,7 @@ "inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium", "bg-gray-100 text-gray-800 dark:bg-gray-200 dark:text-gray-900" ])> - {{ __('livewire-tables::core.Clear') }} + {{ __($this->getLocalisationPath.'Clear') }} @else @@ -20,6 +20,6 @@ 'badge badge-pill badge-light' => $isBootstrap4, 'badge rounded-pill bg-light text-dark text-decoration-none' => $isBootstrap5, ])> - {{ __('livewire-tables::core.Clear') }} + {{ __($this->getLocalisationPath.'Clear') }} @endif diff --git a/resources/views/components/tools/filter-pills/buttons/reset-filter.blade.php b/resources/views/components/tools/filter-pills/buttons/reset-filter.blade.php index 912611188..31ff3312b 100644 --- a/resources/views/components/tools/filter-pills/buttons/reset-filter.blade.php +++ b/resources/views/components/tools/filter-pills/buttons/reset-filter.blade.php @@ -9,7 +9,7 @@ "text-indigo-400 hover:bg-indigo-200 hover:text-indigo-500 focus:bg-indigo-500 focus:text-white", ]) > - {{ __('livewire-tables::core.Remove filter option') }} + {{ __($this->getLocalisationPath.'Remove filter option') }} @else @@ -23,7 +23,7 @@ $isBootstrap4, 'visually-hidden' => $isBootstrap5, - ])>{{ __('livewire-tables::core.Remove filter option') }} + ])>{{ __($this->getLocalisationPath.'Remove filter option') }} diff --git a/resources/views/components/tools/filters/boolean.blade.php b/resources/views/components/tools/filters/boolean.blade.php index a2d9e12d9..4776e33ca 100644 --- a/resources/views/components/tools/filters/boolean.blade.php +++ b/resources/views/components/tools/filters/boolean.blade.php @@ -19,7 +19,7 @@ class="relative inline-flex h-6 py-0.5 ml-4 focus:outline-none rounded-full w-10 class="flex-shrink-0 ml-1 h-6 w-6 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" > - {{ __('livewire-tables::core.Remove filter option') }} + {{ __($localisationPath.'Remove filter option') }} diff --git a/resources/views/components/tools/filters/multi-select.blade.php b/resources/views/components/tools/filters/multi-select.blade.php index 4b8f11a4e..5ecde88a5 100644 --- a/resources/views/components/tools/filters/multi-select.blade.php +++ b/resources/views/components/tools/filters/multi-select.blade.php @@ -15,7 +15,7 @@ class="text-indigo-600 rounded border-gray-300 shadow-sm transition duration-150 @if ($filter->getFirstOption() != "") {{ $filter->getFirstOption() }} @else - {{ __('livewire-tables::core.All') }} + {{ __($localisationPath.'All') }} @endif @@ -42,7 +42,7 @@ class="text-indigo-600 rounded border-gray-300 shadow-sm transition duration-150 wire:input="selectAllFilterOptions('{{ $filter->getKey() }}')" class="form-check-input" > - + @foreach($filter->getOptions() as $key => $value) diff --git a/resources/views/components/tools/sorting-pills.blade.php b/resources/views/components/tools/sorting-pills.blade.php index f84391319..7c688be86 100644 --- a/resources/views/components/tools/sorting-pills.blade.php +++ b/resources/views/components/tools/sorting-pills.blade.php @@ -4,7 +4,7 @@
@if ($this->sortingPillsAreEnabled() && $this->hasSorts())
- {{ __('livewire-tables::core.Applied Sorting') }}: + {{ __($this->getLocalisationPath.'Applied Sorting') }}: @foreach($this->getSorts() as $columnSelectName => $direction) @php($column = $this->getColumnBySelectName($columnSelectName) ?? $this->getColumnBySlug($columnSelectName)) @@ -24,7 +24,7 @@ class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium l type="button" 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" > - {{ __('livewire-tables::core.Remove sort option') }} + {{ __($this->getLocalisationPath.'Remove sort option') }} @@ -35,7 +35,7 @@ class="flex-shrink-0 ml-0.5 h-4 w-4 rounded-full inline-flex items-center justif class="focus:outline-none active:outline-none" > - {{ __('livewire-tables::core.Clear') }} + {{ __($this->getLocalisationPath.'Clear') }}
@@ -45,7 +45,7 @@ class="focus:outline-none active:outline-none"
@if ($this->sortingPillsAreEnabled() && $this->hasSorts())
- {{ __('livewire-tables::core.Applied Sorting') }}: + {{ __($this->getLocalisationPath.'Applied Sorting') }}: @foreach($this->getSorts() as $columnSelectName => $direction) @php($column = $this->getColumnBySelectName($columnSelectName) ?? $this->getColumnBySlug($columnSelectName)) @@ -65,7 +65,7 @@ class="badge badge-pill badge-info d-inline-flex align-items-center" wire:click="clearSort('{{ $columnSelectName }}')" class="text-white ml-2" > - {{ __('livewire-tables::core.Remove sort option') }} + {{ __($this->getLocalisationPath.'Remove sort option') }} @@ -76,7 +76,7 @@ class="text-white ml-2" wire:click.prevent="clearSorts" class="badge badge-pill badge-light" > - {{ __('livewire-tables::core.Clear') }} + {{ __($this->getLocalisationPath.'Clear') }}
@endif @@ -85,7 +85,7 @@ class="badge badge-pill badge-light"
@if ($this->sortingPillsAreEnabled() && $this->hasSorts())
- {{ __('livewire-tables::core.Applied Sorting') }}: + {{ __($this->getLocalisationPath.'Applied Sorting') }}: @foreach($this->getSorts() as $columnSelectName => $direction) @php($column = $this->getColumnBySelectName($columnSelectName) ?? $this->getColumnBySlug($columnSelectName)) @@ -105,7 +105,7 @@ class="badge rounded-pill bg-info d-inline-flex align-items-center" wire:click="clearSort('{{ $columnSelectName }}')" class="text-white ms-2" > - {{ __('livewire-tables::core.Remove sort option') }} + {{ __($this->getLocalisationPath.'Remove sort option') }} @@ -116,7 +116,7 @@ class="text-white ms-2" wire:click.prevent="clearSorts" class="badge rounded-pill bg-light text-dark text-decoration-none" > - {{ __('livewire-tables::core.Clear') }} + {{ __($this->getLocalisationPath.'Clear') }}
@endif diff --git a/resources/views/components/tools/toolbar/items/bulk-actions.blade.php b/resources/views/components/tools/toolbar/items/bulk-actions.blade.php index 6e7cd4948..e4c9b9b25 100644 --- a/resources/views/components/tools/toolbar/items/bulk-actions.blade.php +++ b/resources/views/components/tools/toolbar/items/bulk-actions.blade.php @@ -34,7 +34,7 @@ @endif aria-haspopup="true" aria-expanded="false"> - {{ __('livewire-tables::core.Bulk Actions') }} + {{ __($this->getLocalisationPath.'Bulk Actions') }} @if($this->isTailwind) diff --git a/resources/views/components/tools/toolbar/items/column-select.blade.php b/resources/views/components/tools/toolbar/items/column-select.blade.php index d74d71efd..41723ab44 100644 --- a/resources/views/components/tools/toolbar/items/column-select.blade.php +++ b/resources/views/components/tools/toolbar/items/column-select.blade.php @@ -18,7 +18,7 @@ class="inline-flex justify-center px-4 py-2 w-full text-sm font-medium text-gray x-bind:aria-expanded="open" aria-expanded="true" > - {{ __('livewire-tables::core.Columns') }} + {{ __($this->getLocalisationPath.'Columns') }} @@ -51,7 +51,7 @@ class="text-indigo-600 transition duration-150 ease-in-out border-gray-300 round @checked($component->getSelectableSelectedColumns()->count() == $component->getSelectableColumns()->count()) @if($component->getSelectableSelectedColumns()->count() == $component->getSelectableColumns()->count()) wire:click="deselectAllColumns" @else wire:click="selectAllColumns" @endif > - {{ __('livewire-tables::core.All Columns') }} + {{ __($this->getLocalisationPath.'All Columns') }}
@@ -104,7 +104,7 @@ class="text-indigo-600 rounded border-gray-300 shadow-sm transition duration-150 type="button" id="{{ $tableName }}-columnSelect" aria-haspopup="true" x-bind:aria-expanded="open" > - {{ __('livewire-tables::core.Columns') }} + {{ __($this->getLocalisationPath.'Columns') }}
- {{ __('livewire-tables::core.All Columns') }} + {{ __($this->getLocalisationPath.'All Columns') }} @@ -139,7 +139,7 @@ class="form-check-input" />
@endif diff --git a/resources/views/components/tools/toolbar/items/filter-button.blade.php b/resources/views/components/tools/toolbar/items/filter-button.blade.php index 225f71dd0..01dd9ba48 100644 --- a/resources/views/components/tools/toolbar/items/filter-button.blade.php +++ b/resources/views/components/tools/toolbar/items/filter-button.blade.php @@ -33,7 +33,7 @@ @endif @if ($this->isFilterLayoutSlideDown()) x-on:click="filtersOpen = !filtersOpen" @endif > - {{ __('livewire-tables::core.Filters') }} + {{ __($this->getLocalisationPath.'Filters') }} @if ($count = $this->getFilterBadgeCount()) $this->isBootstrap5, ]) > - {{ __('livewire-tables::core.Clear') }} + {{ __($this->getLocalisationPath.'Clear') }} @endif @@ -74,7 +74,7 @@ class="block px-4 py-2 text-sm text-gray-700 space-y-1" type="button" class="w-full inline-flex items-center justify-center px-3 py-2 border border-gray-300 shadow-sm text-sm leading-4 font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 dark:bg-gray-800 dark:border-gray-600 dark:text-white dark:hover:border-gray-500 dark:hover:bg-gray-600" > - {{ __('livewire-tables::core.Clear') }} + {{ __($this->getLocalisationPath.'Clear') }}
@endif diff --git a/resources/views/components/tools/toolbar/items/pagination-dropdown.blade.php b/resources/views/components/tools/toolbar/items/pagination-dropdown.blade.php index 46f2e83ff..38b03c22f 100644 --- a/resources/views/components/tools/toolbar/items/pagination-dropdown.blade.php +++ b/resources/views/components/tools/toolbar/items/pagination-dropdown.blade.php @@ -21,7 +21,7 @@ value="{{ $item }}" wire:key="{{ $tableName }}-per-page-{{ $item }}" > - {{ $item === -1 ? __('livewire-tables::core.All') : $item }} + {{ $item === -1 ? __($this->getLocalisationPath.'All') : $item }} @endforeach diff --git a/resources/views/components/tools/toolbar/items/reorder-buttons.blade.php b/resources/views/components/tools/toolbar/items/reorder-buttons.blade.php index 00d89e384..2d5d86a26 100644 --- a/resources/views/components/tools/toolbar/items/reorder-buttons.blade.php +++ b/resources/views/components/tools/toolbar/items/reorder-buttons.blade.php @@ -14,11 +14,11 @@ ]) > - {{ __('livewire-tables::core.cancel') }} + {{ __($this->getLocalisationPath.'cancel') }} - {{ __('livewire-tables::core.Reorder') }} + {{ __($this->getLocalisationPath.'Reorder') }} @@ -33,7 +33,7 @@ ]) > - {{ __('livewire-tables::core.save') }} + {{ __($this->getLocalisationPath.'save') }}
diff --git a/resources/views/datatable.blade.php b/resources/views/datatable.blade.php index e92119d9b..0a99f957b 100644 --- a/resources/views/datatable.blade.php +++ b/resources/views/datatable.blade.php @@ -6,134 +6,136 @@ @php($isBootstrap4 = $this->isBootstrap4) @php($isBootstrap5 = $this->isBootstrap5) -
getTopLevelAttributes() }}> - - @includeWhen( - $this->hasConfigurableAreaFor('before-wrapper'), - $this->getConfigurableAreaFor('before-wrapper'), - $this->getParametersForConfigurableArea('before-wrapper') - ) - - - @if($this->hasActions && !$this->showActionsInToolbar) - - @endif - +
+
getTopLevelAttributes() }}> @includeWhen( - $this->hasConfigurableAreaFor('before-tools'), - $this->getConfigurableAreaFor('before-tools'), - $this->getParametersForConfigurableArea('before-tools') + $this->hasConfigurableAreaFor('before-wrapper'), + $this->getConfigurableAreaFor('before-wrapper'), + $this->getParametersForConfigurableArea('before-wrapper') ) - @if($this->shouldShowTools) - - @if ($this->showSortPillsSection) - - @endif - @if($this->showFilterPillsSection) - + + @if($this->hasActions && !$this->showActionsInToolbar) + @endif + @includeWhen( - $this->hasConfigurableAreaFor('before-toolbar'), - $this->getConfigurableAreaFor('before-toolbar'), - $this->getParametersForConfigurableArea('before-toolbar') + $this->hasConfigurableAreaFor('before-tools'), + $this->getConfigurableAreaFor('before-tools'), + $this->getParametersForConfigurableArea('before-tools') ) - @if($this->shouldShowToolBar) - - @endif - - @includeWhen( - $this->hasConfigurableAreaFor('after-toolbar'), - $this->getConfigurableAreaFor('after-toolbar'), - $this->getParametersForConfigurableArea('after-toolbar') - ) - - - @endif - - - - - @if($this->getCurrentlyReorderingStatus) - + @if($this->shouldShowTools) + + @if ($this->showSortPillsSection) + @endif - @if($this->showBulkActionsSections) - - @endif - @if ($this->showCollapsingColumnSections) - + @if($this->showFilterPillsSection) + @endif - @foreach($this->selectedVisibleColumns as $index => $column) - - @endforeach - - - @if($this->secondaryHeaderIsEnabled() && $this->hasColumnsWithSecondaryHeader()) - - @endif - @if($this->hasDisplayLoadingPlaceholder()) - - @endif + @includeWhen( + $this->hasConfigurableAreaFor('before-toolbar'), + $this->getConfigurableAreaFor('before-toolbar'), + $this->getParametersForConfigurableArea('before-toolbar') + ) + @if($this->shouldShowToolBar) + + @endif - @if($this->showBulkActionsSections) - + @includeWhen( + $this->hasConfigurableAreaFor('after-toolbar'), + $this->getConfigurableAreaFor('after-toolbar'), + $this->getParametersForConfigurableArea('after-toolbar') + ) + + @endif - @forelse ($this->getRows as $rowIndex => $row) - + + + @if($this->getCurrentlyReorderingStatus) - + @endif @if($this->showBulkActionsSections) - + @endif @if ($this->showCollapsingColumnSections) - + @endif - @foreach($this->selectedVisibleColumns as $colIndex => $column) - - @if($column->isHtml()) - {!! $column->renderContents($row) !!} - @else - {{ $column->renderContents($row) }} - @endif - + @foreach($this->selectedVisibleColumns as $index => $column) + @endforeach - + - @if ($this->showCollapsingColumnSections) - + @if($this->secondaryHeaderIsEnabled() && $this->hasColumnsWithSecondaryHeader()) + @endif - @empty - - @endforelse - - @if ($this->footerIsEnabled() && $this->hasColumnsWithFooter()) - - @if ($this->useHeaderAsFooterIsEnabled()) - - @else - + @if($this->hasDisplayLoadingPlaceholder()) + + @endif + + + @if($this->showBulkActionsSections) + + @endif + + @forelse ($this->getRows as $rowIndex => $row) + + @if($this->getCurrentlyReorderingStatus) + + @endif + @if($this->showBulkActionsSections) + + @endif + @if ($this->showCollapsingColumnSections) + + @endif + + @foreach($this->selectedVisibleColumns as $colIndex => $column) + + @if($column->isHtml()) + {!! $column->renderContents($row) !!} + @else + {{ $column->renderContents($row) }} + @endif + + @endforeach + + + @if ($this->showCollapsingColumnSections) + @endif - - @endif - + @empty + + @endforelse + + @if ($this->footerIsEnabled() && $this->hasColumnsWithFooter()) + + @if ($this->useHeaderAsFooterIsEnabled()) + + @else + + @endif + + @endif + - + - @includeIf($customView) - + @includeIf($customView) + - @includeWhen( - $this->hasConfigurableAreaFor('after-wrapper'), - $this->getConfigurableAreaFor('after-wrapper'), - $this->getParametersForConfigurableArea('after-wrapper') - ) - -
+ @includeWhen( + $this->hasConfigurableAreaFor('after-wrapper'), + $this->getConfigurableAreaFor('after-wrapper'), + $this->getParametersForConfigurableArea('after-wrapper') + ) + +
+
\ No newline at end of file diff --git a/resources/views/includes/debug.blade.php b/resources/views/includes/debug.blade.php index 791a7cfbb..157b52a18 100644 --- a/resources/views/includes/debug.blade.php +++ b/resources/views/includes/debug.blade.php @@ -1,6 +1,6 @@
@if ($this->debugIsEnabled()) -

{{ __('livewire-tables::core.Debugging Values') }}:

+

{{ __($this->getLocalisationPath.'Debugging Values') }}:

@if (! app()->runningInConsole()) diff --git a/resources/views/includes/offline.blade.php b/resources/views/includes/offline.blade.php index c4889608b..bd4c58b38 100644 --- a/resources/views/includes/offline.blade.php +++ b/resources/views/includes/offline.blade.php @@ -9,7 +9,7 @@

- {{ __('livewire-tables::core.You are not connected to the internet') }}. + {{ __($this->getLocalisationPath.'You are not connected to the internet') }}.

@@ -19,7 +19,7 @@
- {{ __('livewire-tables::core.You are not connected to the internet') }}. + {{ __($this->getLocalisationPath.'You are not connected to the internet') }}.
diff --git a/src/DataTransferObjects/FilterGenericData.php b/src/DataTransferObjects/FilterGenericData.php index 9958da506..0ea4f3f86 100644 --- a/src/DataTransferObjects/FilterGenericData.php +++ b/src/DataTransferObjects/FilterGenericData.php @@ -32,6 +32,7 @@ public function toArray(): array 'isBootstrap' => ($this->isBootstrap4 || $this->isBootstrap5), 'isBootstrap4' => $this->isBootstrap4, 'isBootstrap5' => $this->isBootstrap5, + 'localisationPath' => (config('livewire-tables.use_json_translations', false)) ? 'livewire-tables::' : 'livewire-tables::core.', ]; } } diff --git a/src/LaravelLivewireTablesServiceProvider.php b/src/LaravelLivewireTablesServiceProvider.php index 7002ae8d0..18babd7a1 100644 --- a/src/LaravelLivewireTablesServiceProvider.php +++ b/src/LaravelLivewireTablesServiceProvider.php @@ -25,7 +25,20 @@ public function boot(): void ); // Load Default Translations - $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'livewire-tables'); + if (config('livewire-tables.use_json_translations', false)) { + // Load Default Translations + $this->loadJsonTranslationsFrom( + __DIR__.'/../resources/lang/json' + ); + + // Override if Published + $this->loadJsonTranslationsFrom( + $this->app->langPath('vendor/livewire-tables') + ); + + } else { + $this->loadTranslationsFrom(__DIR__.'/../resources/lang/php', 'livewire-tables'); + } $this->loadViewsFrom(__DIR__.'/../resources/views', 'livewire-tables'); @@ -42,9 +55,13 @@ public function consoleCommands(): void if ($this->app->runningInConsole()) { $this->publishes([ - __DIR__.'/../resources/lang' => $this->app->langPath('vendor/livewire-tables'), + __DIR__.'/../resources/lang/php' => $this->app->langPath('vendor/livewire-tables'), ], 'livewire-tables-translations'); + $this->publishes([ + __DIR__.'/../resources/lang/json' => $this->app->langPath('vendor/livewire-tables'), + ], 'livewire-tables-translations-json'); + $this->publishes([ __DIR__.'/../config/livewire-tables.php' => config_path('livewire-tables.php'), ], 'livewire-tables-config'); diff --git a/src/Traits/Core/HasLocalisations.php b/src/Traits/Core/HasLocalisations.php new file mode 100644 index 000000000..59859a749 --- /dev/null +++ b/src/Traits/Core/HasLocalisations.php @@ -0,0 +1,23 @@ +generateLocalisationPath(); + } + + public function generateLocalisationPath(): string + { + $this->localisationPathString = (config('livewire-tables.use_json_translations', false)) ? 'livewire-tables::' : 'livewire-tables::core.'; + + return $this->localisationPathString; + } +} diff --git a/src/Traits/HasAllTraits.php b/src/Traits/HasAllTraits.php index b8da012d7..cc80420e0 100644 --- a/src/Traits/HasAllTraits.php +++ b/src/Traits/HasAllTraits.php @@ -2,13 +2,14 @@ namespace Rappasoft\LaravelLivewireTables\Traits; -use Rappasoft\LaravelLivewireTables\Traits\Core\HasCustomAttributes; +use Rappasoft\LaravelLivewireTables\Traits\Core\{HasCustomAttributes,HasLocalisations}; use Rappasoft\LaravelLivewireTables\Views\Traits\Core\HasTheme; trait HasAllTraits { // Note Specific Order Below! use WithTableHooks; + use HasLocalisations; use WithLoadingPlaceholder; use HasTheme; use ComponentUtilities, diff --git a/src/Traits/Helpers/BulkActionsHelpers.php b/src/Traits/Helpers/BulkActionsHelpers.php index 7093f574c..8c0779848 100644 --- a/src/Traits/Helpers/BulkActionsHelpers.php +++ b/src/Traits/Helpers/BulkActionsHelpers.php @@ -181,7 +181,7 @@ public function getBulkActionConfirmMessage(string $bulkAction): string public function getBulkActionDefaultConfirmationMessage(): string { - return isset($this->bulkActionConfirmDefaultMessage) ? $this->bulkActionConfirmDefaultMessage : __('livewire-tables::core.Bulk Actions Confirm'); + return isset($this->bulkActionConfirmDefaultMessage) ? $this->bulkActionConfirmDefaultMessage : __($this->getLocalisationPath().'Bulk Actions Confirm'); } #[Computed] diff --git a/src/Traits/Helpers/ComponentHelpers.php b/src/Traits/Helpers/ComponentHelpers.php index 7ddce544b..ff4c5c212 100644 --- a/src/Traits/Helpers/ComponentHelpers.php +++ b/src/Traits/Helpers/ComponentHelpers.php @@ -63,7 +63,7 @@ public function getModel() public function getEmptyMessage(): string { if ($this->emptyMessage == 'No items found, try to broaden your search') { - return __('livewire-tables::core.No items found, try to broaden your search'); + return __($this->getLocalisationPath().'No items found, try to broaden your search'); } return $this->emptyMessage; diff --git a/src/Traits/Helpers/LoadingPlaceholderHelpers.php b/src/Traits/Helpers/LoadingPlaceholderHelpers.php index ff3ee633e..eca81e249 100644 --- a/src/Traits/Helpers/LoadingPlaceholderHelpers.php +++ b/src/Traits/Helpers/LoadingPlaceholderHelpers.php @@ -16,7 +16,7 @@ public function getDisplayLoadingPlaceholder(): bool public function getLoadingPlaceholderContent(): string { - return $this->loadingPlaceholderContent ?? __('livewire-tables::core.loading'); + return $this->loadingPlaceholderContent ?? __($this->getLocalisationPath().'loading'); } public function hasLoadingPlaceholderBlade(): bool diff --git a/src/Traits/Helpers/SearchHelpers.php b/src/Traits/Helpers/SearchHelpers.php index 1027778e5..b9637b13c 100644 --- a/src/Traits/Helpers/SearchHelpers.php +++ b/src/Traits/Helpers/SearchHelpers.php @@ -127,7 +127,7 @@ public function getSearchPlaceholder(): string return $this->searchPlaceholder; } - return __('livewire-tables::core.Search'); + return __($this->getLocalisationPath().'Search'); } public function hasSearchPlaceholder(): bool diff --git a/src/Views/Action.php b/src/Views/Action.php index ee3d4640e..1c2975a30 100644 --- a/src/Views/Action.php +++ b/src/Views/Action.php @@ -2,14 +2,15 @@ namespace Rappasoft\LaravelLivewireTables\Views; -use Illuminate\View\Component; -use Illuminate\View\ComponentAttributeBag; +use Illuminate\View\{Component,ComponentAttributeBag}; +use Rappasoft\LaravelLivewireTables\Traits\Core\HasLocalisations; use Rappasoft\LaravelLivewireTables\Views\Traits\Actions\{HasActionAttributes, HasRoute}; use Rappasoft\LaravelLivewireTables\Views\Traits\Columns\HasVisibility; use Rappasoft\LaravelLivewireTables\Views\Traits\Core\{HasIcon, HasLabel, HasLabelAttributes, HasTheme, HasView, HasWireActions}; class Action extends Component { + use HasLocalisations; use HasActionAttributes; use HasIcon; use HasLabel; diff --git a/src/Views/Columns/BooleanColumn.php b/src/Views/Columns/BooleanColumn.php index 30716b0e3..e7ae20a66 100644 --- a/src/Views/Columns/BooleanColumn.php +++ b/src/Views/Columns/BooleanColumn.php @@ -35,14 +35,12 @@ public function getContents(Model $row): null|string|\Illuminate\Support\HtmlStr $value = $this->getValue($row); - return view($this->getView()) + return $this->getColumnViewWithDefaults() ->withRowPrimaryKey($row->{$row->getKeyName()}) ->withIsToggleable($this->getIsToggleable()) ->withToggleMethod($this->getIsToggleable() ? $this->getToggleMethod() : '') ->withHasConfirmMessage($this->hasConfirmMessage()) ->withConfirmMessage($this->hasConfirmMessage() ? $this->getConfirmMessage() : '') - ->withIsTailwind($this->isTailwind()) - ->withIsBootstrap($this->isBootstrap()) ->withSuccessValue($this->getSuccessValue()) ->withType($this->getType()) ->withValue($value) diff --git a/src/Views/Columns/ButtonGroupColumn.php b/src/Views/Columns/ButtonGroupColumn.php index 973e9b977..bf1fd2560 100644 --- a/src/Views/Columns/ButtonGroupColumn.php +++ b/src/Views/Columns/ButtonGroupColumn.php @@ -27,11 +27,9 @@ public function __construct(string $title, ?string $from = null) public function getContents(Model $row): null|string|\Illuminate\Support\HtmlString|\Rappasoft\LaravelLivewireTables\Exceptions\DataTableConfigurationException|\Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View { - return view($this->getView()) + return $this->getColumnViewWithDefaults() ->withColumn($this) ->withRow($row) - ->withIsTailwind($this->isTailwind()) - ->withIsBootstrap($this->isBootstrap()) ->withButtons($this->getButtons()) ->withAttributes($this->hasAttributesCallback() ? app()->call($this->getAttributesCallback(), ['row' => $row]) : []); } diff --git a/src/Views/Columns/ColorColumn.php b/src/Views/Columns/ColorColumn.php index 3c46013b7..b5815d7d8 100644 --- a/src/Views/Columns/ColorColumn.php +++ b/src/Views/Columns/ColorColumn.php @@ -32,9 +32,7 @@ public function __construct(string $title, ?string $from = null) public function getContents(Model $row): null|string|\Illuminate\Support\HtmlString|DataTableConfigurationException|\Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View { - return view($this->getView()) - ->withIsTailwind($this->isTailwind()) - ->withIsBootstrap($this->isBootstrap()) + return $this->getColumnViewWithDefaults() ->withColor($this->getColor($row)) ->withAttributeBag($this->getAttributeBag($row)); } diff --git a/src/Views/Columns/IconColumn.php b/src/Views/Columns/IconColumn.php index 3d37dbc10..ec1238081 100644 --- a/src/Views/Columns/IconColumn.php +++ b/src/Views/Columns/IconColumn.php @@ -33,9 +33,7 @@ public function getContents(Model $row): null|string|\Illuminate\Support\HtmlStr { $attributeBag = $this->getAttributeBag($row); - return view($this->getView()) - ->withIsTailwind($this->isTailwind()) - ->withIsBootstrap($this->isBootstrap()) + return $this->getColumnViewWithDefaults() ->withIcon($this->getIcon($row)) ->withClasses($attributeBag['class']) ->withAttributes(collect($attributeBag)->except('class')->toArray()); diff --git a/src/Views/Columns/ImageColumn.php b/src/Views/Columns/ImageColumn.php index a8bed5cc3..444fc486f 100644 --- a/src/Views/Columns/ImageColumn.php +++ b/src/Views/Columns/ImageColumn.php @@ -32,10 +32,8 @@ public function getContents(Model $row): null|string|\Illuminate\Support\HtmlStr throw new DataTableConfigurationException('You must specify a location callback for an image column.'); } - return view($this->getView()) + return $this->getColumnViewWithDefaults() ->withColumn($this) - ->withIsTailwind($this->isTailwind()) - ->withIsBootstrap($this->isBootstrap()) ->withPath(app()->call($this->getLocationCallback(), ['row' => $row])) ->withAttributes($this->hasAttributesCallback() ? app()->call($this->getAttributesCallback(), ['row' => $row]) : []); } diff --git a/src/Views/Columns/LinkColumn.php b/src/Views/Columns/LinkColumn.php index 0edbc6436..9d0835935 100644 --- a/src/Views/Columns/LinkColumn.php +++ b/src/Views/Columns/LinkColumn.php @@ -37,10 +37,8 @@ public function getContents(Model $row): null|string|\Illuminate\Support\HtmlStr throw new DataTableConfigurationException('You must specify a location callback for an link column.'); } - return view($this->getView()) + return $this->getColumnViewWithDefaults() ->withColumn($this) - ->withIsTailwind($this->isTailwind()) - ->withIsBootstrap($this->isBootstrap()) ->withTitle(app()->call($this->getTitleCallback(), ['row' => $row])) ->withPath(app()->call($this->getLocationCallback(), ['row' => $row])) ->withAttributes($this->hasAttributesCallback() ? app()->call($this->getAttributesCallback(), ['row' => $row]) : []); diff --git a/src/Views/Columns/WireLinkColumn.php b/src/Views/Columns/WireLinkColumn.php index 5ab4292c7..26adaf973 100644 --- a/src/Views/Columns/WireLinkColumn.php +++ b/src/Views/Columns/WireLinkColumn.php @@ -36,10 +36,8 @@ public function getContents(Model $row): null|string|\Illuminate\Support\HtmlStr throw new DataTableConfigurationException('You must specify an action callback for a WireLink column.'); } - return view($this->getView()) + return $this->getColumnViewWithDefaults() ->withColumn($this) - ->withIsTailwind($this->isTailwind()) - ->withIsBootstrap($this->isBootstrap()) ->withTitle(app()->call($this->getTitleCallback(), ['row' => $row])) ->withPath(app()->call($this->getActionCallback(), ['row' => $row])) ->withAttributes($this->hasAttributesCallback() ? app()->call($this->getAttributesCallback(), ['row' => $row]) : []); diff --git a/src/Views/Filters/DateRangeFilter.php b/src/Views/Filters/DateRangeFilter.php index 084353559..838c0ec32 100644 --- a/src/Views/Filters/DateRangeFilter.php +++ b/src/Views/Filters/DateRangeFilter.php @@ -74,7 +74,7 @@ protected function setupEarlyLateDates(string $dateFormat): array { $earliestDateString = ($this->getConfig('earliestDate') != '') ? $this->getConfig('earliestDate') : null; $latestDateString = ($this->getConfig('latestDate') != '') ? $this->getConfig('latestDate') : null; - if ($earliestDateString != '' && ! is_null($earliestDateString) && $latestDateString != '' && ! is_null($latestDateString)) { + if (! is_null($earliestDateString) && $earliestDateString != '' && ! is_null($latestDateString) && $latestDateString != '') { $dateLimits = ['earliest' => $earliestDateString, 'latest' => $latestDateString]; $earlyLateValidator = Validator::make($dateLimits, [ 'earliest' => 'date_format:'.$dateFormat, @@ -189,7 +189,7 @@ public function getFilterPillValue($value): array|string|bool|null if (($minDate instanceof Carbon) && $maxDate instanceof Carbon) { return $this->outputTranslatedDate($minDate) - .' '.__('livewire-tables::core.to').' '. + .' '.__($this->getLocalisationPath().'to').' '. $this->outputTranslatedDate($maxDate); } } diff --git a/src/Views/Filters/NumberRangeFilter.php b/src/Views/Filters/NumberRangeFilter.php index ce02cb26d..ae3430b7d 100644 --- a/src/Views/Filters/NumberRangeFilter.php +++ b/src/Views/Filters/NumberRangeFilter.php @@ -89,7 +89,7 @@ public function getDefaultValue(): array|string public function getFilterPillValue($values): array|string|bool|null { if ($this->validate($values)) { - return __('livewire-tables::core.min').':'.$values['min'].', '.__('livewire-tables::core.max').':'.$values['max']; + return __($this->getLocalisationPath().'min').':'.$values['min'].', '.__($this->getLocalisationPath().'max').':'.$values['max']; } return ''; diff --git a/src/Views/Traits/Columns/HasColumnView.php b/src/Views/Traits/Columns/HasColumnView.php new file mode 100644 index 000000000..57d952cac --- /dev/null +++ b/src/Views/Traits/Columns/HasColumnView.php @@ -0,0 +1,24 @@ +getView()); + } + + public function getColumnViewWithDefaults(): null|string|\Illuminate\Support\HtmlString|\Rappasoft\LaravelLivewireTables\Exceptions\DataTableConfigurationException|\Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View + { + return $this->getColumnView() + ->withIsTailwind($this->isTailwind()) + ->withIsBootstrap($this->isBootstrap()) + ->withLocalisationPath($this->getLocalisationPath()); + + } +} diff --git a/src/Views/Traits/Columns/IsSortable.php b/src/Views/Traits/Columns/IsSortable.php index d21916001..a95094124 100644 --- a/src/Views/Traits/Columns/IsSortable.php +++ b/src/Views/Traits/Columns/IsSortable.php @@ -99,7 +99,7 @@ public function getCustomSortingPillDirections(string $direction, ?string $defau return $this->sortingPillDirectionDesc ?? $defaultLabelDesc; } - return __('livewire-tables::core.not_applicable'); + return __($this->getLocalisationPath().'not_applicable'); } public function getCustomSortingPillDirectionsLabel(string $direction, ?string $defaultLabelAsc = 'A-Z', ?string $defaultLabelDesc = 'Z-A'): string @@ -112,7 +112,7 @@ public function getCustomSortingPillDirectionsLabel(string $direction, ?string $ return $this->sortingPillDirectionDesc ?? $defaultLabelDesc; } - return __('livewire-tables::core.not_applicable'); + return __($this->getLocalisationPath().'not_applicable'); } public function getSortingPillDirection(DataTableComponent $component, string $direction): string diff --git a/src/Views/Traits/Configuration/FilterConfiguration.php b/src/Views/Traits/Configuration/FilterConfiguration.php index c828d4ef6..88b769599 100644 --- a/src/Views/Traits/Configuration/FilterConfiguration.php +++ b/src/Views/Traits/Configuration/FilterConfiguration.php @@ -72,6 +72,8 @@ public function setGenericDisplayData(array $genericDisplayData = []): self 'isBootstrap' => ($genericDisplayData['isBootstrap4'] || $genericDisplayData['isBootstrap5']), 'isBootstrap4' => $genericDisplayData['isBootstrap4'], 'isBootstrap5' => $genericDisplayData['isBootstrap5'], + 'localisationPath' => $genericDisplayData['localisationPath'] ?? ((config('livewire-tables.use_json_translations', false)) ? 'livewire-tables::' : 'livewire-tables::core.'), + ]; return $this; diff --git a/src/Views/Traits/Core/HasView.php b/src/Views/Traits/Core/HasView.php index 36641e91b..3df0823ed 100644 --- a/src/Views/Traits/Core/HasView.php +++ b/src/Views/Traits/Core/HasView.php @@ -3,7 +3,6 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Core; use Rappasoft\LaravelLivewireTables\Exceptions\DataTableConfigurationException; -use Rappasoft\LaravelLivewireTables\Views\{Column,Filter}; trait HasView { diff --git a/src/Views/Traits/IsColumn.php b/src/Views/Traits/IsColumn.php index 4dc6e4eef..b90a8b2e4 100644 --- a/src/Views/Traits/IsColumn.php +++ b/src/Views/Traits/IsColumn.php @@ -3,14 +3,16 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits; use Rappasoft\LaravelLivewireTables\DataTableComponent; -use Rappasoft\LaravelLivewireTables\Views\Traits\Columns\{HasVisibility, IsCollapsible, IsSearchable, IsSelectable, IsSortable}; +use Rappasoft\LaravelLivewireTables\Traits\Core\HasLocalisations; +use Rappasoft\LaravelLivewireTables\Views\Traits\Columns\{HasColumnView, HasVisibility, IsCollapsible, IsSearchable, IsSelectable, IsSortable}; use Rappasoft\LaravelLivewireTables\Views\Traits\Configuration\ColumnConfiguration; -use Rappasoft\LaravelLivewireTables\Views\Traits\Core\{HasAttributes,HasFooter,HasLabelAttributes,HasSecondaryHeader,HasTheme,HasView}; +use Rappasoft\LaravelLivewireTables\Views\Traits\Core\{HasAttributes,HasFooter,HasLabelAttributes,HasSecondaryHeader,HasTheme}; use Rappasoft\LaravelLivewireTables\Views\Traits\Helpers\{ColumnHelpers,RelationshipHelpers}; trait IsColumn { - use ColumnConfiguration, + use HasLocalisations, + ColumnConfiguration, ColumnHelpers, RelationshipHelpers, IsCollapsible, @@ -18,11 +20,11 @@ trait IsColumn IsSelectable, IsSortable, HasAttributes, + HasColumnView, HasFooter, HasLabelAttributes, HasSecondaryHeader, HasTheme, - HasView, HasVisibility; protected ?DataTableComponent $component = null; diff --git a/src/Views/Traits/IsFilter.php b/src/Views/Traits/IsFilter.php index 9896e8bd3..491b685e5 100644 --- a/src/Views/Traits/IsFilter.php +++ b/src/Views/Traits/IsFilter.php @@ -2,14 +2,16 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits; +use Rappasoft\LaravelLivewireTables\Traits\Core\HasLocalisations; use Rappasoft\LaravelLivewireTables\Views\Traits\Configuration\FilterConfiguration; use Rappasoft\LaravelLivewireTables\Views\Traits\Core\{HasConfig,HasLabelAttributes,HasView}; -use Rappasoft\LaravelLivewireTables\Views\Traits\Filters\{HasCustomPosition,HasVisibility}; +use Rappasoft\LaravelLivewireTables\Views\Traits\Filters\{HasCustomPosition, HasVisibility}; use Rappasoft\LaravelLivewireTables\Views\Traits\Helpers\FilterHelpers; trait IsFilter { - use FilterConfiguration, + use HasLocalisations, + FilterConfiguration, FilterHelpers, HasConfig, HasCustomPosition, diff --git a/tests/Localisations/BaseLocalisationCase.php b/tests/Localisations/BaseLocalisationCase.php index b95b606cc..595c019e7 100644 --- a/tests/Localisations/BaseLocalisationCase.php +++ b/tests/Localisations/BaseLocalisationCase.php @@ -10,7 +10,7 @@ class BaseLocalisationCase extends TestCase { public static function getEnLocaleStrings(): array { - $baseDir = __DIR__.'/../../resources/lang/'; + $baseDir = __DIR__.'/../../resources/lang/php/'; $items = require $baseDir.'en/core.php'; @@ -19,7 +19,7 @@ public static function getEnLocaleStrings(): array public static function getLocaleStrings($locale): array { - $baseDir = __DIR__.'/../../resources/lang/'; + $baseDir = __DIR__.'/../../resources/lang/php/'; $items = require $baseDir.$locale.'/core.php'; @@ -28,7 +28,7 @@ public static function getLocaleStrings($locale): array public static function localisationProvider(): array { - $baseDir = __DIR__.'/../../resources/lang/'; + $baseDir = __DIR__.'/../../resources/lang/php/'; $localisations = []; diff --git a/tests/TestCase.php b/tests/TestCase.php index 92cec4db2..957aa151f 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -201,12 +201,14 @@ public function getEnvironmentSetUp($app): void config()->set('cache.default', 'array'); config()->set('view.cache', false); config()->set('view.compiled', realpath(storage_path('framework/views')).'/'.rand(0, 100)); + // config()->set('livewire-tables.use_json_translations', true); $app['config']->set('app.env', 'testing'); $app['config']->set('database.default', 'sqlite'); $app['config']->set('cache.default', 'array'); $app['config']->set('view.cache', false); $app['config']->set('view.compiled', realpath(storage_path('framework/views')).'/'.rand(0, 100)); + // $app['config']->set('livewire-tables.use_json_translations', true); if (file_exists(__DIR__.'/../database/database.sqlite')) { $app['config']->set('database.connections.sqlite', [ diff --git a/tests/Unit/Traits/Configuration/SearchConfigurationTest.php b/tests/Unit/Traits/Configuration/SearchConfigurationTest.php index 20e788849..9daec3aeb 100644 --- a/tests/Unit/Traits/Configuration/SearchConfigurationTest.php +++ b/tests/Unit/Traits/Configuration/SearchConfigurationTest.php @@ -170,7 +170,7 @@ public function test_cant_set_search_throttle_with_other_search_modifiers(): voi public function test_can_set_search_placeholder(): void { - $this->assertSame(__('livewire-tables::core.Search'), $this->basicTable->getSearchPlaceholder()); + $this->assertSame(__($this->basicTable->getLocalisationPath().'Search'), $this->basicTable->getSearchPlaceholder()); $this->basicTable->setSearchPlaceholder('Anthony'); diff --git a/tests/Unit/Traits/Helpers/ComponentHelpersTest.php b/tests/Unit/Traits/Helpers/ComponentHelpersTest.php index 0eed6b930..6fbbf6364 100644 --- a/tests/Unit/Traits/Helpers/ComponentHelpersTest.php +++ b/tests/Unit/Traits/Helpers/ComponentHelpersTest.php @@ -24,7 +24,7 @@ public function test_can_get_current_theme(): void public function test_can_get_default_empty_message(): void { - $this->assertEquals(__('livewire-tables::core.No items found, try to broaden your search'), $this->basicTable->getEmptyMessage()); + $this->assertEquals(__($this->basicTable->getLocalisationPath().'No items found, try to broaden your search'), $this->basicTable->getEmptyMessage()); } public function test_can_get_offline_status(): void diff --git a/tests/Unit/Views/Columns/ColorColumnTest.php b/tests/Unit/Views/Columns/ColorColumnTest.php index 5455c9e76..3b784919e 100644 --- a/tests/Unit/Views/Columns/ColorColumnTest.php +++ b/tests/Unit/Views/Columns/ColorColumnTest.php @@ -176,4 +176,32 @@ function ($row) { $this->assertSame('#008000', $column->getColor($rows->slice(2, 1)->first())); } + + public function test_can_get_column_get_contents_from_color(): void + { + $column = ColorColumn::make('Species Color')->color( + function ($row) { + if ($row->species_id == 1) { + return '#ff0000'; + } elseif ($row->species_id == 2) { + return '#008000'; + } else { + return '#ffa500'; + } + + } + ); + $rows = $this->basicTable->setAdditionalSelects(['pets.species_id as species_id'])->getRows(); + + $contents1 = $column->getContents($rows->first()); + $this->assertSame($contents1['color'], '#ff0000'); + $this->assertSame($contents1['isTailwind'], true); + $this->assertSame($contents1['isBootstrap'], false); + + $contents2 = $column->getContents($rows->last()); + $this->assertSame($contents2['color'], '#ffa500'); + $this->assertSame($contents2['isTailwind'], true); + $this->assertSame($contents2['isBootstrap'], false); + + } } diff --git a/tests/Unit/Views/Columns/ViewComponentColumnTest.php b/tests/Unit/Views/Columns/ViewComponentColumnTest.php index dd96a25c7..2edcf4c53 100644 --- a/tests/Unit/Views/Columns/ViewComponentColumnTest.php +++ b/tests/Unit/Views/Columns/ViewComponentColumnTest.php @@ -77,4 +77,19 @@ public function test_can_use_custom_component(): void $this->assertSame('
2420
', $contents); }*/ + + public function test_can_not_use_as_label(): void + { + $this->expectException(DataTableConfigurationException::class); + + $column = ViewComponentColumn::make('Total Users')->label(fn () => 'My Label')->getContents(Pet::find(1)); + } + + public function test_can_not_return_invalid_attributes(): void + { + $this->expectException(DataTableConfigurationException::class); + + $column = ViewComponentColumn::make('Total Users')->component('test-component')->attributes(fn ($value, $row, Column $column) => 'test')->getContents(Pet::find(1)); + + } } diff --git a/tests/Unit/Views/Filters/BooleanFilterTest.php b/tests/Unit/Views/Filters/BooleanFilterTest.php index 0215c4a89..5e834a339 100644 --- a/tests/Unit/Views/Filters/BooleanFilterTest.php +++ b/tests/Unit/Views/Filters/BooleanFilterTest.php @@ -73,4 +73,26 @@ public function test_can_get_if_boolean_filter_not_empty_string(): void { $this->assertFalse(self::$filterInstance->isEmpty('0')); } + + public function test_can_validate_null_boolean_filter_value(): void + { + $filter = self::$filterInstance; + $filter->setFilterPillValues([ + true => 'Active', + false => 'Inactive', + ]); + + $this->assertFalse($filter->validate(null)); + } + + public function test_is_empty_null_boolean_filter_value(): void + { + $filter = self::$filterInstance; + $filter->setFilterPillValues([ + true => 'Active', + false => 'Inactive', + ]); + + $this->assertTrue($filter->isEmpty(null)); + } } diff --git a/tests/Unit/Views/Traits/Helpers/FilterHelpersTest.php b/tests/Unit/Views/Traits/Helpers/FilterHelpersTest.php index 80822235f..afe5deb3c 100644 --- a/tests/Unit/Views/Traits/Helpers/FilterHelpersTest.php +++ b/tests/Unit/Views/Traits/Helpers/FilterHelpersTest.php @@ -387,6 +387,7 @@ public function test_can_get_filter_display_data(): void 'isBootstrap' => false, 'isBootstrap4' => false, 'isBootstrap5' => false, + 'localisationPath' => 'livewire-tables::core.', ]; $filter1->setGenericDisplayData($testGenericData); @@ -397,6 +398,8 @@ public function test_can_get_filter_display_data(): void $this->assertSame($testGenericData['isBootstrap'], $filter1->getFilterDisplayData()['isBootstrap']); $this->assertSame($testGenericData['isBootstrap4'], $filter1->getFilterDisplayData()['isBootstrap4']); $this->assertSame($testGenericData['isBootstrap5'], $filter1->getFilterDisplayData()['isBootstrap5']); + $this->assertSame($testGenericData['localisationPath'], $filter1->getFilterDisplayData()['localisationPath']); + $this->assertSame($filter1, $filter1->getFilterDisplayData()['filter']); } }