Remove translate in enums
This commit is contained in:
parent
97e586f210
commit
03e7f59285
1 changed files with 12 additions and 12 deletions
|
|
@ -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'
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue