Update Breadcrumbs to use new translation keys for improved localization
This commit is contained in:
1 parent
cae3d9ed4f
commit
9b63016d56
3 files changed
+8
-8
No files matched your search
@@ -62,13 +62,13 @@ const CreateStatusPage = () => {
|
|||||||
|
|
||||||
// Breadcrumbs
|
// Breadcrumbs
|
||||||
const crumbs = [
|
const crumbs = [
|
||||||
{ name: t("statusPages"), path: "/status" },
|
{ name: t("statusBredCrumbsStatusPages"), path: "/status" },
|
||||||
];
|
];
|
||||||
if (isCreate) {
|
if (isCreate) {
|
||||||
crumbs.push({ name: t("create"), path: "/status/create" });
|
crumbs.push({ name: t("statusBredCrumbsCreate"), path: "/status/uptime/create" });
|
||||||
} else {
|
} else {
|
||||||
crumbs.push(
|
crumbs.push(
|
||||||
{ name: t("details"), path: `/status/uptime/${statusPage?.url}` },
|
{ name: t("statusBredCrumbsDetails"), path: `/status/uptime/${statusPage?.url}` },
|
||||||
{ name: t("configure"), path: "" }
|
{ name: t("configure"), path: "" }
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,8 +30,8 @@ const PublicStatus = () => {
|
|||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const crumbs = [
|
const crumbs = [
|
||||||
{ name: t("statusPages"), path: "/status" },
|
{ name: t("statusBredCrumbsStatusPages"), path: "/status" },
|
||||||
{ name: t("details"), path: "" },
|
{ name: t("statusBredCrumbsDetails"), path: "" },
|
||||||
];
|
];
|
||||||
|
|
||||||
const [statusPage, monitors, isLoading, networkError, fetchStatusPage] =
|
const [statusPage, monitors, isLoading, networkError, fetchStatusPage] =
|
||||||
|
|||||||
+3
-3
@@ -376,7 +376,7 @@
|
|||||||
"errorInvalidTypeId": "Invalid notification type provided",
|
"errorInvalidTypeId": "Invalid notification type provided",
|
||||||
"errorInvalidFieldId": "Invalid field ID provided",
|
"errorInvalidFieldId": "Invalid field ID provided",
|
||||||
"inviteNoTokenFound": "No invite token found",
|
"inviteNoTokenFound": "No invite token found",
|
||||||
"details": "Details",
|
"statusBredCrumbsDetails": "Details",
|
||||||
"create": "Create",
|
"statusBredCrumbsCreate": "Create",
|
||||||
"statusPages": "Status Pages"
|
"statusBredCrumbsStatusPages": "Status Pages"
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user