From ce4c288e4afa2418b45616d0d1e976998e08240c Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Thu, 23 Oct 2025 21:48:27 -0500 Subject: [PATCH] improve lifecycle description labeling --- web/src/utils/lifecycleUtil.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/web/src/utils/lifecycleUtil.ts b/web/src/utils/lifecycleUtil.ts index 0a716d9fc..edb46b969 100644 --- a/web/src/utils/lifecycleUtil.ts +++ b/web/src/utils/lifecycleUtil.ts @@ -9,7 +9,9 @@ export function getLifecycleItemDescription( ? lifecycleItem.data.sub_label[0] : lifecycleItem.data.sub_label || lifecycleItem.data.label; - const label = getTranslatedLabel(rawLabel); + const label = lifecycleItem.data.sub_label + ? rawLabel + : getTranslatedLabel(rawLabel); switch (lifecycleItem.class_type) { case "visible": @@ -44,14 +46,18 @@ export function getLifecycleItemDescription( { ns: "views/explore", label, - attribute: lifecycleItem.data.attribute.replaceAll("_", " "), + attribute: getTranslatedLabel( + lifecycleItem.data.attribute.replaceAll("_", " "), + ), }, ); } else { title = t("objectLifecycle.lifecycleItemDesc.attribute.other", { ns: "views/explore", label: lifecycleItem.data.label, - attribute: lifecycleItem.data.attribute.replaceAll("_", " "), + attribute: getTranslatedLabel( + lifecycleItem.data.attribute.replaceAll("_", " "), + ), }); } return title;