From fd324eb5a61bdd523495a1b5e8e3438b99318f3d Mon Sep 17 00:00:00 2001 From: Eunju Huss Date: Tue, 10 Dec 2024 12:39:11 +0100 Subject: [PATCH 1/3] Add variable for locale-specific link --- src/components/Help.tsx | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/components/Help.tsx b/src/components/Help.tsx index 5769f11e9..1422230c4 100644 --- a/src/components/Help.tsx +++ b/src/components/Help.tsx @@ -17,9 +17,19 @@ export function Help(): JSX.Element { const dispatch = useAppDispatch(); const is_configured = useAppSelector((state) => state.config.is_configured); const signup_link = useAppSelector((state) => state.config.signup_link); + const locale = useAppSelector((state) => state.intl.locale); const [approvedSecurityKeys, setApprovedSecurityKeys] = useState(); + const FrejaAppURL = + locale === "en" ? "https://frejaeid.com/en/get-freja-eid/" : "https://frejaeid.com/skaffa-freja-eid/"; + const BankIdURL = + locale === "en" ? "https://www.bankid.com/en/privat/skaffa-bankid" : "https://www.bankid.com/privat/skaffa-bankid"; + const FrejaeIdURL = + locale === "en" + ? "https://org.frejaeid.com/en/an-e-id-for-foreign-citizens/" + : "https://org.frejaeid.com/en-e-legitimation-for-utlandska-medborgare/"; + useEffect(() => { document.title = intl.formatMessage({ id: "document title Help", @@ -545,7 +555,7 @@ export function Help(): JSX.Element { Freja+ account according to the instructions,`} values={{ Freja: ( - + Freja app ), @@ -633,11 +643,7 @@ export function Help(): JSX.Element { defaultMessage={`the BankID is obtained from your personal bank and installed on your device as an app or file. The process varies, so visit your bank's website and follow the instructions. You can read more about obtaining a BankID on {bankid}`} values={{ bankid: ( - + the BankID website ), @@ -730,11 +736,7 @@ export function Help(): JSX.Element { defaultMessage={`Current information on included nationalities can be found at: {FrejaList}`} values={{ FrejaList: ( - + Freja eID ), @@ -756,7 +758,7 @@ export function Help(): JSX.Element { profile supported by your passport, by installing the {FrejaApp} on your mobile device (iOS or Android) and following the instructions,`} values={{ FrejaApp: ( - + Freja app ), From ad6289de265517ae6468cdb48072dc4fcfa3bd08 Mon Sep 17 00:00:00 2001 From: Eunju Huss Date: Tue, 10 Dec 2024 12:55:25 +0100 Subject: [PATCH 2/3] Add UniversityAdmissionURL --- src/components/Help.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Help.tsx b/src/components/Help.tsx index 1422230c4..66cf5b9fc 100644 --- a/src/components/Help.tsx +++ b/src/components/Help.tsx @@ -29,6 +29,8 @@ export function Help(): JSX.Element { locale === "en" ? "https://org.frejaeid.com/en/an-e-id-for-foreign-citizens/" : "https://org.frejaeid.com/en-e-legitimation-for-utlandska-medborgare/"; + const UniversityAdmissionURL = + locale === "en" ? "https://www.universityadmissions.se/intl/start" : "https://www.antagning.se"; useEffect(() => { document.title = intl.formatMessage({ @@ -142,7 +144,7 @@ export function Help(): JSX.Element { account.`} values={{ link: ( - + universityadmissions.se ), From ac2ec2cdb8202c54532f681b3b39106fea4a2ee9 Mon Sep 17 00:00:00 2001 From: cartja Date: Tue, 10 Dec 2024 13:52:07 +0100 Subject: [PATCH 3/3] Freja app url --- src/components/Help.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Help.tsx b/src/components/Help.tsx index 66cf5b9fc..13432f933 100644 --- a/src/components/Help.tsx +++ b/src/components/Help.tsx @@ -557,7 +557,7 @@ export function Help(): JSX.Element { Freja+ account according to the instructions,`} values={{ Freja: ( - + Freja app ),