Refactor Breadcrumbs to use translation keys for improved localization
This commit is contained in:
1 parent
68354aac06
commit
cae3d9ed4f
3 files changed
+10
-7
No files matched your search
@@ -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: "" }
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user