Fix a few more strings and translations.

This commit is contained in:
gaba
2017-05-15 07:11:11 -07:00
parent 3b80ee8b13
commit 633086cfa3
36 changed files with 664 additions and 204 deletions
+4 -4
View File
@@ -40,7 +40,7 @@ const ErrPasswordTooShort = new APIError('password must be at least 8 characters
});
const ErrMissingEmail = new APIError('email is required', {
translation_key: 'EMAIL_REQUIRED',
translation_key: 'email_required',
status: 400
});
@@ -50,7 +50,7 @@ const ErrMissingPassword = new APIError('password is required', {
});
const ErrEmailTaken = new APIError('Email address already in use', {
translation_key: 'EMAIL_IN_USE',
translation_key: 'email_in_use',
status: 400
});
@@ -144,12 +144,12 @@ const ErrInstallLock = new APIError('install lock active', {
// ErrPermissionUpdateUsername is returned when the user does not have permission to update their username.
const ErrPermissionUpdateUsername = new APIError('You do not have permission to update your username.', {
translation_key: 'EDIT_USERNAME_NOT_AUTHORIZED',
translation_key: 'edit_username_not_authorized',
status: 500
});
const ErrLoginAttemptMaximumExceeded = new APIError('You have made too many incorrect password attempts.', {
translation_key: 'LOGIN_MAXIMUM_EXCEEDED',
translation_key: 'login_maximum_exceeded',
status: 429
});