fix(lang): UI string edits, round 2 (#1202)

This commit is contained in:
TheCatLady
2021-03-17 22:28:44 -04:00
committed by GitHub
parent 9ec2c468cb
commit ea1863ac3a
42 changed files with 435 additions and 313 deletions

View File

@@ -7,13 +7,15 @@ import { Field, Form, Formik } from 'formik';
import * as Yup from 'yup';
import axios from 'axios';
import Link from 'next/link';
import PageTitle from '../Common/PageTitle';
const messages = defineMessages({
forgotpassword: 'Forgot Your Password?',
emailresetlink: 'Email Me a Recovery Link',
passwordreset: 'Password Reset',
resetpassword: 'Reset your password',
emailresetlink: 'Email a Recovery Link',
email: 'Email',
validationemailrequired: 'You must provide a valid email address',
gobacklogin: 'Go Back to Sign-In Page',
gobacklogin: 'Return to Sign-In Page',
requestresetlinksuccessmessage:
'A password reset link will be sent to the provided email address if it is associated with a valid user.',
});
@@ -30,6 +32,7 @@ const ResetPassword: React.FC = () => {
return (
<div className="relative flex flex-col min-h-screen bg-gray-900 py-14">
<PageTitle title={intl.formatMessage(messages.passwordreset)} />
<ImageFader
backgroundImages={[
'/images/rotate1.jpg',
@@ -44,13 +47,9 @@ const ResetPassword: React.FC = () => {
<LanguagePicker />
</div>
<div className="relative z-40 px-4 sm:mx-auto sm:w-full sm:max-w-md">
<img
src="/logo.png"
className="w-auto mx-auto max-h-32"
alt="Overseerr Logo"
/>
<img src="/logo.png" className="max-w-full" alt="Logo" />
<h2 className="mt-2 text-3xl font-extrabold leading-9 text-center text-gray-100">
{intl.formatMessage(messages.forgotpassword)}
{intl.formatMessage(messages.resetpassword)}
</h2>
</div>
<div className="relative z-50 mt-8 sm:mx-auto sm:w-full sm:max-w-md">

View File

@@ -10,16 +10,16 @@ import { useRouter } from 'next/router';
import Link from 'next/link';
const messages = defineMessages({
resetpassword: 'Reset Password',
passwordreset: 'Password Reset',
resetpassword: 'Reset your password',
password: 'Password',
confirmpassword: 'Confirm Password',
validationpasswordrequired: 'You must provide a password',
validationpasswordmatch: 'Password must match',
validationpasswordmatch: 'Passwords must match',
validationpasswordminchars:
'Password is too short; should be a minimum of 8 characters',
gobacklogin: 'Go Back to Sign-In Page',
resetpasswordsuccessmessage:
'If the link is valid and is connected to a user then the password has been reset.',
gobacklogin: 'Return to Sign-In Page',
resetpasswordsuccessmessage: 'Password reset successfully!',
});
const ResetPassword: React.FC = () => {
@@ -60,11 +60,7 @@ const ResetPassword: React.FC = () => {
<LanguagePicker />
</div>
<div className="relative z-40 px-4 sm:mx-auto sm:w-full sm:max-w-md">
<img
src="/logo.png"
className="w-auto mx-auto max-h-32"
alt="Overseerr Logo"
/>
<img src="/logo.png" className="max-w-full" alt="Logo" />
<h2 className="mt-2 text-3xl font-extrabold leading-9 text-center text-gray-100">
{intl.formatMessage(messages.resetpassword)}
</h2>