Skip to content

Commit f2c5152

Browse files
authored
fix: missing translation
1 parent 7947a5d commit f2c5152

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ApiResponse.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class ApiResponse extends JsonResponse implements ApiResponseContract
2727

2828
public function __construct(string $message = '', string $title = '')
2929
{
30-
$this->title = $title ?: ('api-response::trans.success');
31-
$this->message = $message ?: ('api-response::trans.successful');
30+
$this->title = $title ?: __('api-response::trans.success');
31+
$this->message = $message ?: __('api-response::trans.successful');
3232

3333
parent::__construct();
3434
}

0 commit comments

Comments
 (0)