From e1d1dac29bbd73888e1ffb5458a28e14cd46f368 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Mon, 16 Aug 2021 13:18:31 +0200 Subject: [PATCH] Translate Api Errors labels to FR --- app/Enums/ApiError.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/Enums/ApiError.php b/app/Enums/ApiError.php index 9a386e5..61b667b 100644 --- a/app/Enums/ApiError.php +++ b/app/Enums/ApiError.php @@ -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',