From f2c515292f826e8d1556c78be63f7ebd9bf0a81c Mon Sep 17 00:00:00 2001 From: David Adi Nugroho Date: Thu, 8 Aug 2024 21:35:18 +0700 Subject: [PATCH] fix: missing translation --- src/ApiResponse.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ApiResponse.php b/src/ApiResponse.php index 8049122..fafbf10 100644 --- a/src/ApiResponse.php +++ b/src/ApiResponse.php @@ -27,8 +27,8 @@ class ApiResponse extends JsonResponse implements ApiResponseContract public function __construct(string $message = '', string $title = '') { - $this->title = $title ?: ('api-response::trans.success'); - $this->message = $message ?: ('api-response::trans.successful'); + $this->title = $title ?: __('api-response::trans.success'); + $this->message = $message ?: __('api-response::trans.successful'); parent::__construct(); }