welsh translations for sign in

This commit is contained in:
2022-09-07 11:23:46 +01:00
parent 7115aab927
commit 8f96e7bd9d
12 changed files with 122 additions and 75 deletions
+19 -18
View File
@@ -16,20 +16,17 @@ const Error = (props) => {
const { error } = useRouter().query;
const errors = {
Signin: "Try signing with a different account.",
OAuthSignin: "Try signing with a different account.",
OAuthCallback: "Try signing with a different account.",
OAuthCreateAccount: "Try signing with a different account.",
EmailCreateAccount: "Try signing with a different account.",
Callback: "Try signing with a different account.",
OAuthAccountNotLinked:
"To confirm your identity, sign in with the same account you used originally.",
EmailSignin: "Check your email address.",
CredentialsSignin:
"Sign in failed. Check the details you provided are correct.",
Verification:
"Unable to sign in. The sign in link is no longer valid.It may have been used already or it may have expired. ",
default: "Unable to sign in.",
Signin: t("auth:auth-error-Signin-label"),
OAuthSignin: t("auth:auth-error-OAuthSignin-label"),
OAuthCallback: t("auth:auth-error-OAuthCallback-label"),
OAuthCreateAccount: t("auth:auth-error-OAuthCreateAccount-label"),
EmailCreateAccount: t("auth:auth-error-EmailCreateAccount-label"),
Callback: t("auth:auth-error-Callback-label"),
OAuthAccountNotLinked: t("auth:auth-error-OAuthAccountNotLinked-label"),
EmailSignin: t("auth:auth-error-EmailSignin-label"),
CredentialsSignin: t("auth:auth-error-CredentialsSignin-label"),
Verification: t("auth:auth-error-Verification-label"),
default: t("auth:auth-error-default-label"),
};
const errorMessage = error && (errors[error] ?? errors.default);
@@ -37,7 +34,10 @@ const Error = (props) => {
return (
<div>
<Head>
<title>Sign in Error - {t("common:service-name")}</title>
<title>
{t("auth:auth-error-signin-error-title")} -{" "}
{t("common:service-name")}
</title>
</Head>
<div id="page_wrapper">
<CookieBanner />
@@ -48,7 +48,7 @@ const Error = (props) => {
<main className="govuk-main-wrapper govuk-!-padding-top-0 govuk-!-padding-bottom-9">
<div className="govuk-grid-row ">
<div className="govuk-grid-column-two-thirds ">
<h1>There has been an error </h1>
<h1>{t("auth:auth-error-heading")}</h1>
</div>
</div>
<div className="govuk-grid-row">
@@ -58,8 +58,9 @@ const Error = (props) => {
</div>
<div className="govuk-grid-row">
<div className="govuk-grid-column-two-thirds govuk-body">
{" "}
<Link href="/">Return to Home</Link>
<Link href="/">
{t("auth:auth-return-home-link-label")}
</Link>
</div>
</div>
</main>
+6 -4
View File
@@ -14,7 +14,9 @@ const SignIn = (props) => {
return (
<div>
<Head>
<title>Sign in - {t("common:service-name")}</title>
<title>
{t("auth:auth-page-title")} - {t("common:service-name")}
</title>
</Head>
<div id="page_wrapper">
<CookieBanner />
@@ -24,7 +26,7 @@ const SignIn = (props) => {
<main className="govuk-main-wrapper govuk-!-padding-top-0 govuk-!-padding-bottom-9">
<div className="govuk-grid-row ">
<div className="govuk-grid-column-two-thirds ">
<h1>Sign in</h1>
<h1>{t("auth:auth-page-title")} </h1>
</div>
</div>
<div className="govuk-grid-row">
@@ -44,7 +46,7 @@ const SignIn = (props) => {
className="govuk-label"
htmlFor="email"
>
Email address{" "}
{t("auth:auth-email-label")}
</label>
<input
className="govuk-input govuk-!-width-three-quarters"
@@ -58,7 +60,7 @@ const SignIn = (props) => {
type="submit"
className="govuk-button"
>
Sign in with your email
{t("auth:auth-signin-button-label")}
</button>
</div>
</form>
+9 -5
View File
@@ -15,7 +15,10 @@ const SignIn = (props) => {
return (
<div>
<Head>
<title>Sign in - {t("common:service-name")}</title>
<title>
{t("auth:auth-check-email-page-title")} -{" "}
{t("common:service-name")}
</title>
</Head>
<div id="page_wrapper">
<CookieBanner />
@@ -26,19 +29,20 @@ const SignIn = (props) => {
<main className="govuk-main-wrapper govuk-!-padding-top-0 govuk-!-padding-bottom-9">
<div className="govuk-grid-row ">
<div className="govuk-grid-column-two-thirds ">
<h1>Check your email</h1>
<h1>{t("auth:auth-check-email-page-title")}</h1>
</div>
</div>
<div className="govuk-grid-row">
<div className="govuk-grid-column-two-thirds govuk-body">
A link has been sent to your email so you can
continue. Please close this window.
{t("auth:auth-check-email-message")}
</div>
</div>
<div className="govuk-grid-row">
<div className="govuk-grid-column-two-thirds govuk-body">
{" "}
<Link href="/">Return to Home</Link>
<Link href="/">
{t("auth:auth-return-home-link-label")}
</Link>
</div>
</div>
</main>