diff --git a/frontend/packages/vkt/public/i18n/fi-FI/examiner.json b/frontend/packages/vkt/public/i18n/fi-FI/examiner.json index c455cc78f..12f30c3d1 100644 --- a/frontend/packages/vkt/public/i18n/fi-FI/examiner.json +++ b/frontend/packages/vkt/public/i18n/fi-FI/examiner.json @@ -13,6 +13,7 @@ } }, "examinerContactRequest": { + "actions": "Toiminnot", "contactRequest": "Yhteydenottopyyntö", "contactFields": "Yhteystiedot", "lastName": "Sukunimi", @@ -32,7 +33,8 @@ "deleteContactRequestSuccess": "Yhteydenotto poistettu", "selectExamHelp": "Huom. voit valita vain tutkintotilaisuuden, jolle on määritetty tarkka osoite ja alkamisaika", "chooseExamAndCreate": "Valitse tutkintotilaisuus ja luo ilmoittautuminen", - "chooseExam": "Valitse tutkintotilaisuus" + "chooseExam": "Valitse tutkintotilaisuus", + "viewDetails": "Katso tiedot" }, "examinerDetails": { "buttons": { diff --git a/frontend/packages/vkt/src/components/examinerExamEvent/listing/ExaminerContactRequestListing.tsx b/frontend/packages/vkt/src/components/examinerExamEvent/listing/ExaminerContactRequestListing.tsx index 9f58cff18..ccdceba55 100644 --- a/frontend/packages/vkt/src/components/examinerExamEvent/listing/ExaminerContactRequestListing.tsx +++ b/frontend/packages/vkt/src/components/examinerExamEvent/listing/ExaminerContactRequestListing.tsx @@ -4,18 +4,23 @@ import { useParams } from 'react-router'; import { CustomButtonLink, CustomTable, Text } from 'shared/components'; import { Color, Variant } from 'shared/enums'; +import { useExaminerTranslation } from 'configs/i18n'; import { useAppSelector } from 'configs/redux'; import { AppRoutes } from 'enums/app'; import { ContactRequest } from 'interfaces/examinerDetails'; import { examinerDetailsSelector } from 'redux/selectors/examinerDetails'; const ExaminerExamEventListingHeader = () => { + const { t } = useExaminerTranslation({ + keyPrefix: 'vkt.component.examinerContactRequest', + }); + return ( - Etunimi - Sukunimi - Toiminnot + {t('firstName')} + {t('lastName')} + {t('actions')} ); @@ -26,6 +31,9 @@ const ExaminerContactRequestListingRow = ({ }: { contactRequest: ContactRequest; }) => { + const { t } = useExaminerTranslation({ + keyPrefix: 'vkt.component.examinerContactRequest', + }); const params = useParams(); const oid = params.oid || ''; @@ -51,7 +59,7 @@ const ExaminerContactRequestListingRow = ({ contactRequest.id.toString(), )} > - Katso tiedot + {t('viewDetails')}