Start client-side locale support

This commit is contained in:
garrettmills
2020-05-31 18:00:05 -05:00
parent d2ae9c43e8
commit c956628c53
16 changed files with 324 additions and 66 deletions

View File

@@ -10,4 +10,12 @@ module.exports = exports = {
deny: 'Deny',
grant: 'Grant Access',
back: 'Back',
next: 'Next',
cancel: 'Cancel',
request: 'Request',
continue: 'Continue',
unknown_error: 'An unknown error has occurred, and we are unable to continue at this time.',
invalid_resolver: 'Invalid locale resolver.',
}

View File

@@ -0,0 +1,12 @@
module.exports = exports = {
username: 'Username',
password: 'Password',
need_account: 'Need an account?',
forgot_password: 'Forgot password?',
username_invalid: 'That username is invalid. Please try again.',
success: 'Success! Let\'s get you on your way...',
get_started: 'Okay! Let\'s get you started...',
reset_password: 'Reset Password',
reset_password_prompt: 'If you have forgotten your password, you can request a reset e-mail to be sent to your account. Enter your e-mail address:',
reset_password_success: 'Success! If that e-mail address is associated with a valid APP_NAME account, it will receive an e-mail with more instructions shortly.',
}

View File

@@ -0,0 +1,23 @@
module.exports = exports = {
challenge_prompt: 'Your account has multi-factor authentication enabled. Please enter the code generated by your authenticator app to continue.',
mfa_code: { one: 'MFA Code', many: 'MFA Codes' },
lost_device: 'Lost your MFA device?',
invalid_code: 'Uh, oh! It looks like that\'s not the right code. Please try again.',
success: 'Success! Redirecting...',
disable_prompt: `
This process will disable multi-factor authentication on your account.
<br><br>
For security reasons, this will sign you out of all devices. It will also deactivate any existing app passwords you have generated.
<br><br>
Are you sure you want to continue?
`,
disable: 'Disable MFA',
disable_success: 'MFA was successfully disabled. You\'ll now sign-in normally.',
recover_prompt: 'To recover access to your account, you can enter one of the generated MFA recovery codes:',
recovery_code: 'Recovery Code',
normal_code: 'Have a normal MFA code?',
recover_success: 'Success! There are only NUM_CODES recovery codes remaining. Let\'s get you on your way...',
}

View File

@@ -0,0 +1,14 @@
module.exports = exports = {
first_name: 'First Name',
last_name: 'Last Name',
email: 'E-Mail Address',
have_account: 'Have an account?',
create_to_continue: 'Create an account to continue:',
provide_first_last: 'Please provide your first and last name.',
hi_choose_username: 'Hi, FIRST_NAME. Now, you need to choose a username:',
username_in_use: 'That username is already in use.',
invalid_email: 'Please provide a valid e-mail address.',
email_in_use: 'That e-mail address is already taken.',
success_password: 'Welcome! Let\'s get your password set up...',
login_instead: 'Okay! We\'ll have you login instead...',
}