From 03e7f592858d53bd6026cb1b8b34095a3536c7fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Mon, 16 Aug 2021 08:08:48 +0200 Subject: [PATCH] Remove translate in enums --- app/Enums/ApiError.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/app/Enums/ApiError.php b/app/Enums/ApiError.php index 38f710b..9a386e5 100644 --- a/app/Enums/ApiError.php +++ b/app/Enums/ApiError.php @@ -86,18 +86,18 @@ class ApiError extends BaseEnumRoutable public static function labels(): array { return [ - 'modelNotFound' => trans('%s not found.'), - 'validationFailed' => trans('Could not validate data.'), - 'customerExists' => trans('User already registered on this site.'), - 'customerNotActivated' => trans('Account is not activated.'), - 'customerAlreadyActive' => trans('User already active.'), - 'singleOptinCustomerExists' => trans('SingleOptin wont be added because customer exists.'), - 'authFailed' => trans('Authentication failed.'), - 'needAuth' => trans('You need to be authenticated'), - 'methodNotAllowed' => trans('This method is not allowed for this request'), - 'wrongTimeStamp' => trans('Your request is malformed, please check timestamp header and parameter'), - 'authorizationException' => trans('You are not autorized to access this'), - 'throttleRequestsException' => trans('Throttle: too many request have been attempted, please retry later') + 'modelNotFound' => '%s not found.', + 'validationFailed' => 'Could not validate data.', + 'customerExists' => 'User already registered on this site.', + 'customerNotActivated' => 'Account is not activated.', + 'customerAlreadyActive' => 'User already active.', + 'singleOptinCustomerExists' => 'SingleOptin wont be added because customer exists.', + 'authFailed' => 'Authentication failed.', + 'needAuth' => 'You need to be authenticated', + 'methodNotAllowed' => 'This method is not allowed for this request', + 'wrongTimeStamp' => 'Your request is malformed, please check timestamp header and parameter', + 'authorizationException' => 'You are not autorized to access this', + 'throttleRequestsException' => 'Throttle: too many request have been attempted, please retry later' ]; } }