diff --git a/frontend/src/components/NotFound.tsx b/frontend/src/components/NotFound.tsx new file mode 100644 index 0000000..dc0edf7 --- /dev/null +++ b/frontend/src/components/NotFound.tsx @@ -0,0 +1,17 @@ +import { Typography } from "@mui/joy"; +import { useTranslation } from "react-i18next"; + +export const NotFound = () => { + const { t } = useTranslation(); + + return ( +
+ + {t("not-found-header")} + + + {t("not-found-body")} + +
+ ); +}; diff --git a/frontend/src/utils/i18n/locales/de/de.json b/frontend/src/utils/i18n/locales/de/de.json index 15bbdf8..4e2dbb7 100644 --- a/frontend/src/utils/i18n/locales/de/de.json +++ b/frontend/src/utils/i18n/locales/de/de.json @@ -58,6 +58,8 @@ "success": "Erfolg", "submit": "Absenden", "logout-success-text": "Logout erfolgreich!", + "not-found-header": "404 - Nicht gefunden", + "not-found-body": "Die Seite nach der du gesucht hast, gibt es nicht.", "SU005": "Das Passwort wurde erfolgreich geändert!", "SE001": "Die Einstellungen wurden erfolgreich geändert!", "EG001": "Ein unerwarteter Fehler ist aufgetreten. Bitte versuchen Sie es später erneut.", diff --git a/frontend/src/utils/i18n/locales/en/en.json b/frontend/src/utils/i18n/locales/en/en.json index 99349d1..8abd620 100644 --- a/frontend/src/utils/i18n/locales/en/en.json +++ b/frontend/src/utils/i18n/locales/en/en.json @@ -58,6 +58,8 @@ "success": "Success", "submit": "Submit", "logout-success-text": "Logout successful!", + "not-found-header": "404 - Not found", + "not-found-body": "The page you were looking for, does not exist.", "SU005": "Your password is updated successfully!", "SE001": "The settings are updated successfully!", "EG001": "An unexpected error occurred. Please try again later.",