Refactor Breadcrumbs to use translation keys for improved localization

This commit is contained in:
nbgslv committed 2025-04-14 21:17:33 +03:00
1 parent 68354aac06
commit cae3d9ed4f
3 files changed
+10 -7

No files matched your search

+4 -4
View File
@@ -62,14 +62,14 @@ const CreateStatusPage = () => {
// Breadcrumbs
const crumbs = [
{ name: "status pages", path: "/status" },
{ name: t("statusPages"), path: "/status" },
];
if (isCreate) {
crumbs.push({ name: "create", path: "/status/create" });
crumbs.push({ name: t("create"), path: "/status/create" });
} else {
crumbs.push(
{ name: "details", path: `/status/uptime/${statusPage?.url}` },
{ name: "configure", path: "" }
{ name: t("details"), path: `/status/uptime/${statusPage?.url}` },
{ name: t("configure"), path: "" }
);
}