UNPKG

@dreesq/serpent

Version:

An express wrapper for developing fast web applications

67 lines (66 loc) 3.08 kB
{ "validation": { "required": "Field is required", "string": "Field must be a string", "email": "Field must be an email", "min": "Field must have at least {{options.0}} characters", "max": "Field must have less than {{options.0}} characters", "number": "Field must be a number", "date": "Field must be a valid date", "file": "Field must be a file", "extension": "Field contains wrong file extension", "locale": "Invalid locale given", "unique": "Field value already in use", "captcha": "Captcha must be validated", "array": "Field must be a list of entries", "sameAs": "Field value must be the same as {{options.0}} value", "invalid": "Field value is invalid", "boolean": "Field must be a boolean", "id": "Field value must be a valid identifier" }, "messages": { "userCreated": "User successfully created", "addDevice": "Device successfully registered", "userConfirmed": "Account successfully verified", "userConfirmRequired": "An email containing further verification details was sent to the registered email", "confirmResent": "A new confirmation email was successfully sent", "resetRequested": "An email containing the reset url was sent to the registered account email", "resetDone": "Account password successfully changed", "invalidOldPassword": "Password does not match current account credentials", "passwordChanged": "Password successfully changed", "emailChanged": "Email successfully changed", "emailChangeRequested": "An email containing confirmation url was sent to the given email" }, "errors": { "requiresAuth": "Action requires authentication", "requiresPermission": "User does not have sufficient permissions", "invalidAction": "Invalid action sent", "invalidToken": "Request token is invalid or does not exist", "invalidEmail": "An user with that email could not be found", "invalidLogin": "Invalid credentials", "invalidProvider": "Invalid provider", "expiredToken": "Request token is invalid or has expired", "rateLimit": "Rate limit for this resource exceeded", "alreadyConfirmed": "Account has already been confirmed", "genericError": "An error occurred. Please try again later", "authFailed": "User could not be authenticated" }, "emails": { "confirmAccount": { "subject": "Confirm Account", "html": "Hello {{user.name}}. You may confirm your account here {{url}}" }, "resetAccount": { "subject": "Reset Password", "html": "Hello {{user.name}}. You mare reset your account's credentials here {{url}}" }, "accountReset": { "subject": "Account Password Changed", "html": "Hello {{user.name}}. Your account's password has changed. If you didn't initiate this action please contact the website support team as soon as possible." }, "emailChangeRequested": { "subject": "Confirm Email Change", "html": "Hello {{user.name}}. In order to confirm your account email address, use the following url {{url}}" } } }