Start implementation of flitter-i18n

This commit is contained in:
garrettmills
2020-05-30 18:00:12 -05:00
parent 8680242349
commit 86878efb52
7 changed files with 141 additions and 98 deletions

View File

@@ -0,0 +1,23 @@
module.exports = exports = {
application_not_found: 'Application not found with that ID.',
application_already_exists: 'An Application with that identifier already exists.',
group_not_found: 'Group not found with that ID.',
group_already_exists: 'A group with that name already exists.',
user_not_found: 'User not found with that ID.',
invalid_ldap_client_id: 'Invalid ldap_client_id:',
invalid_oauth_client_id: 'Invalid oauth_client_id:',
invalid_saml_service_provider_id: 'Invalid saml_service_provider_id:',
insufficient_permissions: 'Insufficient permissions.',
missing_field: {
one: 'Missing required field:',
many: 'Missing one or more required fields:',
},
improper_field: 'Improperly formatted field:',
alphanum_underscores: '(alphanumeric/underscores)',
provide_one: 'Please provide one of:',
must_one: 'Must be one of:',
}

View File

@@ -0,0 +1,14 @@
module.exports = exports = {
none: '(None)',
user_exists_with_field: 'A user already exists with the field: ',
no_mfa_or_recovery: 'Your user is not configured to use MFA, or has no recovery codes.',
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.',
invalid_trap: 'Invalid trap type.',
unable_to_grant_trust: 'Unable to grant trust. Grant token is invalid.',
invalid_un_or_pw: 'Invalid username or password.',
unable_to_complete: 'Unable to complete authentication: one or more errors occurred',
}

View File

@@ -4,4 +4,6 @@ module.exports = exports = {
new_to_flitter: 'New to Flitter?',
start_here: 'Start Here.',
log_out: 'Log out',
invalid: 'Invalid',
}

View File

@@ -0,0 +1,4 @@
module.exports = exports = {
policy_not_found: 'Policy not found with that ID.',
invalid_entity: 'Invalid entity_type. Must be one of:'
}