diff --git a/frontend/public/locales/en/common.json b/frontend/public/locales/en/common.json index c4a646c103c99506643c54836fa36ba5b0ab2730..ac2696ce7f38a425b78093dd6995b0535391c949 100644 --- a/frontend/public/locales/en/common.json +++ b/frontend/public/locales/en/common.json @@ -164,7 +164,12 @@ "sponsorSubmitSuccessDescription": "Your registration has been completed. You will receive an e-mail when the guest has filled in the missing information, so that the guest account can be approved.", "guestSubmitSuccessDescription": "Your registration is now completed. You will receive an e-mail or SMS when your account has been created.", "confirmationDialog": { - "confirmIdentityText": "Are you sure you want to verify this identity?", + "text": { + "uio": "Before verifying this identity, please make sure that you have seen ID-papers with a picture matching the supplied value. Approved papers are passport, Norwegian driver's license, and Norwegian national ID card.", + "uib": "Are you sure you want to verify this identity?", + "default": "Are you sure you want to verify this identity?" + }, + "confirmIdentityTitle": "Confirm?", "cancelInvitation": "Cancel invitation?", "cancelInvitationDescription": "Do you want to cancel the invitation?" diff --git a/frontend/public/locales/nb/common.json b/frontend/public/locales/nb/common.json index 05d320ad596608d38455d197ab4cff8bca099990..d52017d7623683cc7ab78538e047ed910757b7bf 100644 --- a/frontend/public/locales/nb/common.json +++ b/frontend/public/locales/nb/common.json @@ -164,7 +164,11 @@ "sponsorSubmitSuccessDescription": "Din registrering er nå fullført. Du vil få en e-post når gjesten har fylt inn informasjonen som mangler, slik at gjestekontoen kan godkjennes.", "guestSubmitSuccessDescription": "Din registrering er nå fullført. Du vil få en e-post eller SMS når kontoen er opprettet.", "confirmationDialog": { - "confirmIdentityText": "Er du sikker på at du vil bekrefte denne identiteten?", + "text": { + "uio": "Vennligst sammenlign verdien du godkjenner mot ID-papirer med bilde, før du godkjenner. Godkjente papirer er pass, norsk førerkort og norsk nasjonalt ID-kort.", + "uib": "Er du sikker på at du vil bekrefte denne identiteten?", + "default": "Er du sikker på at du vil bekrefte denne identiteten?" + }, "confirmIdentityTitle": "Bekrefte?", "cancelInvitation": "Kanseller invitasjon?", "cancelInvitationDescription": "Vil du kansellere invitasjonen?" diff --git a/frontend/public/locales/nn/common.json b/frontend/public/locales/nn/common.json index cf4dd4943cddf9fb54548b3699e16ba7b4ae3cc7..21d8b5546127bb6f6df6c093e61450a9869b255d 100644 --- a/frontend/public/locales/nn/common.json +++ b/frontend/public/locales/nn/common.json @@ -164,7 +164,12 @@ "sponsorSubmitSuccessDescription": "Di registrering er no fullført. Du vil få ein e-post når gjesten har fylt inn informasjonen som manglar, slik at gjestekontoen kan godkjennast.", "guestSubmitSuccessDescription": "Di registrering er no fullført. Du vil få ein e-post eller SMS når kontoen er oppretta.", "confirmationDialog": { - "confirmIdentityText": "Er du sikker på at du vil bekrefte denne identiteten?", + "text": { + "uio": "Vennligst sammenlign verdien du godkjenner mot ID-papirer med bilde, før du godkjenner. Godkjente papirer er pass, norsk førerkort og norsk nasjonalt ID-kort.", + "uib": "Er du sikker på at du vil bekrefte denne identiteten?", + "default": "Er du sikker på at du vil bekrefte denne identiteten?" + }, + "confirmIdentityTitle": "Bekrefte?", "cancelInvitation": "Kanseller invitasjon?", "cancelInvitationDescription": "Vil du kansellere invitasjonen?" diff --git a/frontend/src/components/identityLine/index.tsx b/frontend/src/components/identityLine/index.tsx index afa3160f5e840b50eff0b61db44495a425bfe2d4..25439841c480fad9abb3c106a1ba787ed6b2dc8c 100644 --- a/frontend/src/components/identityLine/index.tsx +++ b/frontend/src/components/identityLine/index.tsx @@ -6,6 +6,7 @@ import { submitJsonOpts } from 'utils' import CheckIcon from '@mui/icons-material/Check' import { useTranslation } from 'react-i18next' import { TableCell } from 'components/table' +import { appInst } from 'appConfig' interface IdentityLineProps { text: string @@ -32,6 +33,16 @@ const IdentityLine = ({ if (identity == null) { return <></> } + const getDialogText = () => { + switch (appInst) { + case 'uio': + return t('confirmationDialog.text.uio') + case 'uib': + return t('confirmationDialog.text.uib') + default: + return t('confirmationDialog.text.default') + } + } return ( <TableRow> <TableCell align="left">{text}</TableCell> @@ -52,7 +63,7 @@ const IdentityLine = ({ setOpen={setConfirmOpen} onConfirm={verifyIdentity(identity.id)} > - {t('confirmationDialog.confirmIdentityText')} + {getDialogText()} </ConfirmDialog> </Typography> ) : (