Every user-facing string under src/views/Authorization/ moves to i18next.
English only — no translations in this PR, so it is language-agnostic and
reviewable as a pure refactor.
Covered:
- LoginView — primary/sub-account tabs, credential form, social and
Authentik buttons, welcome-back state, every auth error toast
- Signup — account creation form and each field-validation message
- ForgotPasswordView / UpdatePasswordView — reset flow and its toasts
- Authenticating — the OAuth landing screen, including its MFA branches
- MFAVerificationModal — code entry, backup codes, error states
- AuthFields / LoginSettings — shared field labels and server settings
`auth` is registered in src/i18n/config.js; public/locales/en/auth.json
holds the 103 keys. The Crowdin config picks up /public/locales/en/*.json
by glob, so the namespace flows into the pipeline with no change to
crowdin.yml.
No behaviour change: every t() value is the string that rendered before,
character for character — checked mechanically against this branch's base.
The e2e suite selects auth controls by visible text ('Create account',
'Username must be at least 4 characters'), so a green run is the proof.
Two fixes fell out of the extraction:
- AuthPasswordField had label='Password' as a prop default, so neither
LoginView nor Signup passed one. A default cannot be translated at module
scope, so the label moves to the call sites and both now pass it.
- AuthDivider defaulted children to 'or' for the same reason; it now falls
back to t('or').
112 lines
5.4 KiB
JSON
112 lines
5.4 KiB
JSON
{
|
|
"validationError": "Validation Error",
|
|
"primaryUsernameRequired": "Primary username is required for sub account login",
|
|
"subNameRequired": "Sub account name is required for sub account login",
|
|
"usernameRequired": "Username is required",
|
|
"passwordRequired": "Password is required",
|
|
"loginFailed": "Login Failed",
|
|
"genericError": "An error occurred, please try again",
|
|
"providerLoginFailed": "{{provider}} Login Failed",
|
|
"providerLoginFailedMsg": "Couldn't log in with {{provider}}, please try again",
|
|
"providerLoginError": "{{provider}} Login Error",
|
|
"networkError": "Network error occurred, please try again",
|
|
"mfaFailed": "Two-Factor Authentication Failed",
|
|
"oauthError": "OAuth Error",
|
|
"oauthBrowserFailed": "Failed to open authentication browser",
|
|
"primaryAccount": "Primary Account",
|
|
"subAccount": "Sub Account",
|
|
"username": "Username",
|
|
"primaryUsernamePlaceholder": "Enter primary account username",
|
|
"subNamePlaceholder": "Enter sub account name",
|
|
"forgotPassword": "Forgot password?",
|
|
"or": "or",
|
|
"email": "Email",
|
|
"displayNamePlaceholder": "How others see your name",
|
|
"signupFailed": "Signup Failed",
|
|
"signupDisabled": "Signup disabled, please contact admin",
|
|
"usernameMinLength": "Username must be at least 4 characters",
|
|
"invalidEmail": "Invalid email address",
|
|
"passwordLength": "Password must be between 8 and 64 characters",
|
|
"displayNameRequired": "Display name is required",
|
|
"displayNameChars": "Display name can only contain letters and numbers",
|
|
"resetEmailSent": "Reset Email Sent",
|
|
"resetEmailSentMsg": "Check your email for password reset instructions",
|
|
"resetFailed": "Reset Failed",
|
|
"resetFailedMsg": "Failed to send reset email, please try again later",
|
|
"emailPlaceholder": "you@example.com",
|
|
"passwordUpdated": "Password Updated",
|
|
"passwordUpdatedMsg": "Your password has been updated successfully. Redirecting to login...",
|
|
"passwordUpdateFailed": "Password Update Failed",
|
|
"passwordUpdateFailedMsg": "Failed to update password, please try again later",
|
|
"savePassword": "Save password",
|
|
"server": {
|
|
"url": "Server URL",
|
|
"dnsFailed": "Hostname could not be resolved. Check the URL for typos or verify DNS.",
|
|
"unreachable": "Unable to reach the server. Check the URL, port, and network connection.",
|
|
"invalidUrl": "Invalid URL format. Include the protocol (http:// or https://) and port if needed."
|
|
},
|
|
"mfaModal": {
|
|
"title": "Two-factor authentication",
|
|
"codeRequired": "Please enter a verification code",
|
|
"verifyFailed": "Failed to verify code. Please try again.",
|
|
"backupHint": "Enter one of the backup codes you saved when setting up two-factor authentication.",
|
|
"codeHint": "Enter the 6-digit code from your authenticator app.",
|
|
"verify": "Verify & Sign In",
|
|
"backupLabel": "Backup code",
|
|
"codeLabel": "Verification code",
|
|
"backupPlaceholder": "Enter backup code",
|
|
"useAuthenticator": "Use authenticator app instead",
|
|
"useBackup": "Use a backup code instead",
|
|
"backupOnce": "Each backup code can only be used once.",
|
|
"invalidCode": "Invalid verification code. Please try again."
|
|
},
|
|
"appleLoginFailed": "Apple Login Failed",
|
|
"googleLoginFailed": "Google Login Failed",
|
|
"createOne": "Create one",
|
|
"primaryAccountUsernameLabel": "Primary account username",
|
|
"subAccountNameLabel": "Sub account name",
|
|
"serverSettings": "Server settings",
|
|
"useDifferentAccount": "Use a different account",
|
|
"yourUsername": "Your username",
|
|
"backToSignIn": "Back to sign in",
|
|
"confirmNewPassword": "Confirm new password",
|
|
"newPassword": "New password",
|
|
"reenterPassword": "Re-enter your password",
|
|
"requestNewLink": "Request a new link",
|
|
"setNewPassword": "Set a new password",
|
|
"linkInvalid": "This link is not valid",
|
|
"createAccountButton": "Create account",
|
|
"createYourAccount": "Create your account",
|
|
"displayNameLabel": "Display name",
|
|
"usernameHint": "lowercase letters, numbers, dot and dash",
|
|
"termsShort": "By creating an account you agree to our Terms of Service and Privacy",
|
|
"checkYourEmail": "Check your email",
|
|
"resetYourPassword": "Reset your password",
|
|
"serverChangeWarning": "Changing the server clears locally cached data on this device.",
|
|
"serverConnected": "Connected. Taking you to sign in...",
|
|
"passwordLabel": "Password",
|
|
"showPassword": "Show password",
|
|
"hidePassword": "Hide password",
|
|
"loginPasswordPlaceholder": "Enter your password",
|
|
"signupPasswordPlaceholder": "At least 8 characters",
|
|
"signupPasswordHelper": "Use 8 to 64 characters.",
|
|
"orContinueWith": "or continue with",
|
|
"signupSignInFailed": "Your account was created, but signing in failed. Please sign in.",
|
|
"authenticating": {
|
|
"signingIn": "Signing you in",
|
|
"signingInSub": "This will only take a moment.",
|
|
"unknownProvider": "Unknown sign-in provider",
|
|
"contactSupport": "Please contact support.",
|
|
"signInFailed": "Sign-in failed",
|
|
"mfaCancelled": "Two-factor authentication was cancelled.",
|
|
"requestNotVerified": "The sign-in request could not be verified.",
|
|
"tryAgain": "Please try again.",
|
|
"mfaSessionMissing": "The MFA session is missing. Please try again.",
|
|
"twoFactor": "Two-factor authentication",
|
|
"verifyToContinue": "Verify your login to continue.",
|
|
"noToken": "No valid authentication token was returned.",
|
|
"backToSignIn": "Back to sign in",
|
|
"mfaFailed": "Two-factor authentication failed. Please try again."
|
|
}
|
|
}
|