Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #362 from SELab-2/create_project_bugfix
Browse files Browse the repository at this point in the history
i18n visible and archived
  • Loading branch information
matt01y authored May 23, 2024
2 parents df16756 + 4c1c4f7 commit 3678f04
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions frontend/public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
"title": "Create project",
"success": "Your project has been successfully saved.",
"failed": "Something went wrong while saving your project. Please try again.",
"archived": "Archived:",
"visible": "Visible:",
"name": {
"tag": "Project name:",
"placeholder": "Enter a name"
Expand Down
2 changes: 2 additions & 0 deletions frontend/public/locales/nl/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
"title": "Maak een project aan",
"success": "Uw project is succesvol opgeslagen.",
"failed": "Er is iets fout gegaan tijdens het opslaan van uw project. Probeer het opnieuw.",
"archived": "Gearchiveerd:",
"visible": "Zichtbaar:",
"name": {
"tag": "Projectnaam:",
"placeholder": "Voer een naam in"
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/ProjectTeacherComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ export function ProjectTeacherComponent(props: {
{/* VISIBLE FIELD*/}
<div className="field is-horizontal">
<div className="field-label">
<label className="label">{"Visable:"}</label> {/* TODO: Translation*/}
<label className="label">{t('create_project.visible')}</label>
</div>
<div className="field-body is-fullwidth is-align-content-center">
<Switch
Expand All @@ -393,7 +393,7 @@ export function ProjectTeacherComponent(props: {
{/* Archived FIELD*/}
{props.project.projectId != -1 && <div className="field is-horizontal">
<div className="field-label">
<label className="label">{"Archived:"}</label> {/* TODO: Translation*/}
<label className="label">{t('create_project.archived')}</label>
</div>
<div className="field-body is-fullwidth is-align-content-center">
<Switch
Expand Down

0 comments on commit 3678f04

Please sign in to comment.