From a8360a32d9bcd92696881e9fac3321f1a304b715 Mon Sep 17 00:00:00 2001 From: Gus Vanpoucke <159711661+gusvanpoucke@users.noreply.github.com> Date: Thu, 23 May 2024 13:59:03 +0200 Subject: [PATCH 1/2] kleine internationalisatie fix --- frontend/frontend/src/i18n/en.ts | 1 + frontend/frontend/src/i18n/nl.ts | 1 + frontend/frontend/src/pages/submissionPage/SubmissionPage.tsx | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/frontend/src/i18n/en.ts b/frontend/frontend/src/i18n/en.ts index c817851a..30ede668 100644 --- a/frontend/frontend/src/i18n/en.ts +++ b/frontend/frontend/src/i18n/en.ts @@ -139,6 +139,7 @@ const english = { add_course: 'Add course', add_project: 'Add project', no_projects: 'No projects', + may_fail: 'May fail', } export default english diff --git a/frontend/frontend/src/i18n/nl.ts b/frontend/frontend/src/i18n/nl.ts index 8091d071..8a45475f 100644 --- a/frontend/frontend/src/i18n/nl.ts +++ b/frontend/frontend/src/i18n/nl.ts @@ -139,6 +139,7 @@ const dutch = { add_course: 'Voeg vak toe', add_project: 'Voeg project toe', no_projects: 'Geen projecten', + may_fail: 'Mag falen', } export default dutch diff --git a/frontend/frontend/src/pages/submissionPage/SubmissionPage.tsx b/frontend/frontend/src/pages/submissionPage/SubmissionPage.tsx index 920a9ceb..f4e7f136 100644 --- a/frontend/frontend/src/pages/submissionPage/SubmissionPage.tsx +++ b/frontend/frontend/src/pages/submissionPage/SubmissionPage.tsx @@ -442,8 +442,8 @@ export function SubmissionPage() { } > {restriction.moet_slagen - ? 'Moet slagen' - : 'Mag falen'} + ? t('may_fail') + : t('must_pass')} {restriction.artifact && (