Finish server-side translations in controllers

This commit is contained in:
garrettmills
2020-05-30 20:16:10 -05:00
parent 86878efb52
commit d2ae9c43e8
26 changed files with 225 additions and 394 deletions

View File

@@ -6,6 +6,20 @@ module.exports = exports = {
group_already_exists: 'A group with that name already exists.',
user_not_found: 'User not found with that ID.',
user_already_exists: 'A user with that identifier already exists.',
client_not_found: 'Client not found with that ID.',
nonexistent_client: '(Non-existent Client)',
token_not_found: 'Token not found with that ID, or the token has expired.',
provider_already_exists: 'A service provider with that entity_id already exists.',
setting_not_found: 'No such setting exists with that key.',
banner_not_found: 'Banner message not found with that ID.',
app_pw_not_found: 'App password not found with that UUID.',
invalid_ldap_client_id: 'Invalid ldap_client_id:',
invalid_oauth_client_id: 'Invalid oauth_client_id:',
@@ -18,6 +32,9 @@ module.exports = exports = {
},
improper_field: 'Improperly formatted field:',
alphanum_underscores: '(alphanumeric/underscores)',
array: '(array)',
email: '(email)',
absolute_url: '(should be absolute URL)',
provide_one: 'Please provide one of:',
must_one: 'Must be one of:',
}

View File

@@ -5,10 +5,25 @@ module.exports = exports = {
no_mfa: 'Your user is not configured to use MFA.',
already_has_mfa: 'MFA is already configured for your user.',
password_complexity_fail: 'Password does not meet the minimum complexity score of MIN_SCORE.',
duplicate_pw: 'This password is a duplicate of one of your previous passwords.',
invalid_trap: 'Invalid trap type.',
unable_to_grant_trust: 'Unable to grant trust. Grant token is invalid.',
missing_trust_flow: 'Missing trust flow data.',
invalid_un_or_pw: 'Invalid username or password.',
unable_to_complete: 'Unable to complete authentication: one or more errors occurred',
sign_in_to_continue: 'Please, sign-in to continue.',
logged_out: 'You have been suggessfully logged out.',
already_mfa: 'It looks like your account is already set up for multi-factor authentication. Unable to continue with MFA setup.',
mfa_prompt: 'Your account is not configured to use multi-factor authentication. Would you like to configure it now?',
mfa_disable_prompt: 'You are about to disable multi-factor authentication for your account. This process will require you to re-authenticate to continue. <br><br> Proceed?',
mfa_no_recovery: 'Unfortunately, it looks like your account does not have any MFA recovery codes generated.',
unable_to_authorize: 'Unable to authorize client application. The application config is invalid. Please check the client ID and redirect URI and try again.',
oauth_prompt: 'CLIENT_NAME is requesting access to your APP_NAME account. Once you grant it, you may not be prompted for permission again.',
will_redirect: 'You will be redirected to:',
reauth_to_continue: 'Please re-authenticate to continue.',
}

View File

@@ -6,4 +6,8 @@ module.exports = exports = {
log_out: 'Log out',
invalid: 'Invalid',
unnamed: '(unnamed)',
deny: 'Deny',
grant: 'Grant Access',
}

View File

@@ -0,0 +1,5 @@
module.exports = exports = {
no_access: 'Sorry, you don\'t have permission to access this application. Please ask your administrator to grant you access to APP_NAME.',
redirect_url: 'SAML Redirect URL:',
clear_idp_session: 'Clearing IdP session for user:'
}