diff --git a/src/components/Help.tsx b/src/components/Help.tsx index bb694ff90..caea42d4e 100644 --- a/src/components/Help.tsx +++ b/src/components/Help.tsx @@ -17,9 +17,21 @@ 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/"; + const UniversityAdmissionURL = + locale === "en" ? "https://www.universityadmissions.se/intl/start" : "https://www.antagning.se"; + useEffect(() => { document.title = intl.formatMessage({ id: "document title Help", @@ -132,7 +144,7 @@ export function Help(): JSX.Element { `} values={{ link: ( - + universityadmissions.se ), @@ -552,7 +564,7 @@ export function Help(): JSX.Element { Freja+ account according to the instructions,`} values={{ Freja: ( - + Freja app ), @@ -640,11 +652,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: ( - + BankID.com ), @@ -737,11 +745,7 @@ export function Help(): JSX.Element { defaultMessage={`Current information on included nationalities can be found at: {FrejaList}`} values={{ FrejaList: ( - + Freja eID ), @@ -763,7 +767,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 ),