From 606a4372c679e67e8388fbdb99b38a069c370ef1 Mon Sep 17 00:00:00 2001 From: Mohamed-Hacene Date: Wed, 28 Feb 2024 18:05:55 +0100 Subject: [PATCH] feat: add EN translation for auth pages --- frontend/messages/en.json | 17 ++++++++++++- .../first-connexion/+page.svelte | 16 +++++++------ .../(authentication)/login/+page.svelte | 24 ++++++++++--------- .../password-reset/+page.svelte | 12 ++++++---- 4 files changed, 45 insertions(+), 24 deletions(-) diff --git a/frontend/messages/en.json b/frontend/messages/en.json index a1d4cdc10..f276862e3 100644 --- a/frontend/messages/en.json +++ b/frontend/messages/en.json @@ -394,5 +394,20 @@ "riskAcceptanceRiskScenariosHelpText": "The risk scenarios that are accepted", "attachmentHelpText": "File for evidence (eg. screenshot, log file, etc.)", "attachmentWarningText": "WARNING: Uploading a new file will overwrite the existing one", - "isActiveHelpText": "Designates whether this user should be treated as active" + "isActiveHelpText": "Designates whether this user should be treated as active", + "helloThere": "Hello there 👋", + "thisIsCisoAssistant": "This is CISO Assistant.", + "yourStreamlined": "Your streamlined", + "oneStopShop": "one-stop shop", + "forComplianceRiskManagement": "for compliance and risk management.", + "youCanSetPAsswordHere": "You can set your password here", + "setPassword": "Set password", + "logIntoYourAccount": "Log into your account", + "youNeedToLogIn": "You need to login to access all the features", + "forgtPassword": "Forgot password", + "login": "Login", + "password": "Password", + "enterYourEmail": "Enter your email address below, and we'll email instructions for setting a new one", + "send": "Send", + "goBackToLogin": "Go back to login" } diff --git a/frontend/src/routes/(authentication)/first-connexion/+page.svelte b/frontend/src/routes/(authentication)/first-connexion/+page.svelte index 2d90f10b3..0f39faee3 100644 --- a/frontend/src/routes/(authentication)/first-connexion/+page.svelte +++ b/frontend/src/routes/(authentication)/first-connexion/+page.svelte @@ -6,6 +6,8 @@ import { ResetPasswordSchema } from '$lib/utils/schemas'; import Typewriter from 'svelte-typewriter'; + import * as m from '$paraglide/messages.js' + export let data: PageData; @@ -19,15 +21,15 @@
- Hello there 👋 - This is CISO Assistant. + {m.helloThere()} 👋 + {m.thisIsCisoAssistant()}.
- Your streamlined - one-stop shop - for compliance and risk management. + {m.yourStreamlined()} + {m.oneStopShop()} + {m.forComplianceRiskManagement()}.
@@ -36,7 +38,7 @@

- You can set your password here.
+ {m.youCanSetPAsswordHere()}.

@@ -56,7 +58,7 @@ />

{m.setPassword()}

diff --git a/frontend/src/routes/(authentication)/login/+page.svelte b/frontend/src/routes/(authentication)/login/+page.svelte index 252e8daec..515b72acb 100644 --- a/frontend/src/routes/(authentication)/login/+page.svelte +++ b/frontend/src/routes/(authentication)/login/+page.svelte @@ -6,6 +6,8 @@ import SuperForm from '$lib/components/Forms/Form.svelte'; import Typewriter from 'svelte-typewriter'; + import * as m from '$paraglide/messages.js'; + export let data: PageData; const cursor = false; @@ -22,15 +24,15 @@
- Hello there 👋 - This is CISO Assistant. + {m.helloThere()} + {m.thisIsCisoAssistant()}
- Your streamlined - one-stop shop - for compliance and risk management. + {m.yourStreamlined()} + {m.oneStopShop()} + {m.forComplianceRiskManagement()}
@@ -41,10 +43,10 @@

- Login into your account + {m.logIntoYourAccount()}

- You need to login to access all the features + {m.youNeedToLogIn()}

@@ -55,19 +57,19 @@ let:form validators={loginSchema} > - - + +

{m.login()}

diff --git a/frontend/src/routes/(authentication)/password-reset/+page.svelte b/frontend/src/routes/(authentication)/password-reset/+page.svelte index 716cfda74..80f0424b5 100644 --- a/frontend/src/routes/(authentication)/password-reset/+page.svelte +++ b/frontend/src/routes/(authentication)/password-reset/+page.svelte @@ -5,6 +5,8 @@ import TextField from '$lib/components/Forms/TextField.svelte'; import SuperForm from '$lib/components/Forms/Form.svelte'; + import * as m from '$paraglide/messages.js'; + export let data: PageData; @@ -21,10 +23,10 @@

- Forgot your password? + {m.forgtPassword()}

- Enter your email address below, and we'll email instructions for setting a new one. + {m.enterYourEmail()}.

@@ -35,10 +37,10 @@ let:form validators={emailSchema} > - +

{m.send()}

@@ -48,7 +50,7 @@ class="flex items-center space-x-2 text-primary-800 hover:text-primary-600" > -

go back to login

+

{m.goBackToLogin()}