welsh translations for sign in
This commit is contained in:
+19
-18
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user