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
|
||||
const crumbs = [
|
||||
{ name: t("statusPages"), path: "/status" },
|
||||
{ name: t("statusBredCrumbsStatusPages"), path: "/status" },
|
||||
];
|
||||
if (isCreate) {
|
||||
crumbs.push({ name: t("create"), path: "/status/create" });
|
||||
crumbs.push({ name: t("statusBredCrumbsCreate"), path: "/status/uptime/create" });
|
||||
} else {
|
||||
crumbs.push(
|
||||
{ name: t("details"), path: `/status/uptime/${statusPage?.url}` },
|
||||
{ name: t("statusBredCrumbsDetails"), path: `/status/uptime/${statusPage?.url}` },
|
||||
{ name: t("configure"), path: "" }
|
||||
);
|
||||
}
|
||||
|
||||
@@ -30,8 +30,8 @@ const PublicStatus = () => {
|
||||
const location = useLocation();
|
||||
const navigate = useNavigate();
|
||||
const crumbs = [
|
||||
{ name: t("statusPages"), path: "/status" },
|
||||
{ name: t("details"), path: "" },
|
||||
{ name: t("statusBredCrumbsStatusPages"), path: "/status" },
|
||||
{ name: t("statusBredCrumbsDetails"), path: "" },
|
||||
];
|
||||
|
||||
const [statusPage, monitors, isLoading, networkError, fetchStatusPage] =
|
||||
|
||||
+3
-3
@@ -376,7 +376,7 @@
|
||||
"errorInvalidTypeId": "Invalid notification type provided",
|
||||
"errorInvalidFieldId": "Invalid field ID provided",
|
||||
"inviteNoTokenFound": "No invite token found",
|
||||
"details": "Details",
|
||||
"create": "Create",
|
||||
"statusPages": "Status Pages"
|
||||
"statusBredCrumbsDetails": "Details",
|
||||
"statusBredCrumbsCreate": "Create",
|
||||
"statusBredCrumbsStatusPages": "Status Pages"
|
||||
}
|
||||
Reference in new issue
Block a user