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

i18n visible and archived #362

Merged
merged 1 commit into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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