Translate Api Errors labels to FR

This commit is contained in:
Jérémy Munsch 2021-08-16 13:18:31 +02:00
parent a0f087d6c9
commit e1d1dac29b

View file

@ -86,14 +86,14 @@ class ApiError extends BaseEnumRoutable
public static function labels(): array
{
return [
'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',
'modelNotFound' => '%s introuvable.',
'validationFailed' => 'Impossible de valider les données',
'customerExists' => 'L\'utilisateur est déjà enregistré sur ce site',
'customerNotActivated' => 'Le comtpe n\'est pas activé',
'customerAlreadyActive' => 'Le compte est déjà activé',
'singleOptinCustomerExists' => 'Le signle optin ne peut être ajouté car un compte existe.',
'authFailed' => 'Echec de l\'authentification',
'needAuth' => 'Vous devez être authentifié',
'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',