diff --git a/src/components/LeftMenuItem.vue b/src/components/LeftMenuItem.vue index 7e7a7fe72..cf12157e1 100644 --- a/src/components/LeftMenuItem.vue +++ b/src/components/LeftMenuItem.vue @@ -11,25 +11,30 @@ const props = defineProps({ }, }); -const item = computed(() => { +const itemComputed = computed(() => { const item = JSON.parse(JSON.stringify(props.item)); const [, , section] = item.title.split('.'); if (!te(item.title)) item.title = t(`globals.pageTitles.${section}`); return item; -}); // eslint-disable-line vue/no-dupe-keys +}); diff --git a/src/components/common/VnBreadcrumbs.vue b/src/components/common/VnBreadcrumbs.vue index 82a534cc8..337507233 100644 --- a/src/components/common/VnBreadcrumbs.vue +++ b/src/components/common/VnBreadcrumbs.vue @@ -34,6 +34,7 @@ function getBreadcrumb(param) { icon: param.meta.icon, path: param.path, root: root.value, + locale: t(`globals.pageTitles.${param.meta.title}`), }; if (screen.gt.sm) { @@ -42,9 +43,7 @@ function getBreadcrumb(param) { } const moduleLocale = `${breadcrumb.root}.pageTitles.${breadcrumb.title}`; - breadcrumb.locale = te(moduleLocale) - ? t(moduleLocale) - : t(`globals.pageTitles.${breadcrumb.title}`); + if (te(moduleLocale)) breadcrumb.locale = t(moduleLocale); return breadcrumb; } diff --git a/src/components/ui/CardDescriptor.vue b/src/components/ui/CardDescriptor.vue index 85e0a7857..4a08daaf5 100644 --- a/src/components/ui/CardDescriptor.vue +++ b/src/components/ui/CardDescriptor.vue @@ -1,5 +1,5 @@