From 25f3e4d41ac79eee82e8aff75cc18d39e779ad0c Mon Sep 17 00:00:00 2001 From: akemidx Date: Tue, 28 Feb 2023 16:01:23 -0500 Subject: [PATCH] Adding ability to see boolean values when using normal export --- resources/lang/en/general.php | 2 ++ resources/views/partials/bootstrap-table.blade.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/lang/en/general.php b/resources/lang/en/general.php index cc7ee7fa1c..b73f999229 100644 --- a/resources/lang/en/general.php +++ b/resources/lang/en/general.php @@ -403,6 +403,8 @@ return [ 'toggle_navigation' => 'Toggle navigation', 'alerts' => 'Alerts', 'tasks_view_all' => 'View all tasks', + 'true' => 'True', + 'false' => 'False', diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php index d3a0fddc14..e885f2115c 100644 --- a/resources/views/partials/bootstrap-table.blade.php +++ b/resources/views/partials/bootstrap-table.blade.php @@ -570,9 +570,9 @@ function trueFalseFormatter(value) { if ((value) && ((value == 'true') || (value == '1'))) { - return ''; + return '{{ trans('general.true') }}'; } else { - return ''; + return '{{ trans('general.false') }}'; } }