From b080ee8a77523241cc4d9424399503e8f8afd7ce Mon Sep 17 00:00:00 2001 From: Panagiota Mitsopoulou Date: Mon, 7 Oct 2024 14:54:11 +0300 Subject: [PATCH] fix i18n check --- .../public/navigation_tree.ts | 32 ++++++++++++------- 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/x-pack/plugins/serverless_observability/public/navigation_tree.ts b/x-pack/plugins/serverless_observability/public/navigation_tree.ts index 3cf6df29239ed..3f1f4e187a165 100644 --- a/x-pack/plugins/serverless_observability/public/navigation_tree.ts +++ b/x-pack/plugins/serverless_observability/public/navigation_tree.ts @@ -71,7 +71,7 @@ export const navigationTree: NavigationTreeDefinition = { }, { link: 'observabilityAIAssistant', - title: i18n.translate('xpack.observability.obltNav.aiMl.aiAssistant', { + title: i18n.translate('xpack.serverlessObservability.nav.aiAssistant', { defaultMessage: 'AI Assistant', }), }, @@ -81,12 +81,16 @@ export const navigationTree: NavigationTreeDefinition = { title: i18n.translate('xpack.serverlessObservability.nav.applications', { defaultMessage: 'Applications', }), - // link: 'apm:services', renderAs: 'panelOpener', children: [ { children: [ - { link: 'apm:services' }, + { + link: 'apm:services', + title: i18n.translate('xpack.serverlessObservability.nav.apm.services', { + defaultMessage: 'Service inventory', + }), + }, { link: 'apm:traces' }, { link: 'apm:dependencies' }, { link: 'apm:settings' }, @@ -112,7 +116,7 @@ export const navigationTree: NavigationTreeDefinition = { title: i18n.translate( 'xpack.serverlessObservability.nav.synthetics.certificatesItem', { - defaultMessage: 'TLS Certificates', + defaultMessage: 'TLS certificates', } ), id: 'synthetics-certificates', @@ -129,12 +133,19 @@ export const navigationTree: NavigationTreeDefinition = { title: i18n.translate('xpack.serverlessObservability.nav.infrastructure', { defaultMessage: 'Infrastructure', }), - // link: 'metrics:inventory', renderAs: 'panelOpener', children: [ { children: [ - { link: 'metrics:inventory' }, + { + link: 'metrics:inventory', + title: i18n.translate( + 'xpack.serverlessObservability.nav.infrastructureInventory', + { + defaultMessage: 'Infrastructure inventory', + } + ), + }, { link: 'metrics:hosts' }, { link: 'metrics:settings' }, { link: 'metrics:assetDetails' }, @@ -159,12 +170,9 @@ export const navigationTree: NavigationTreeDefinition = { }, { link: 'ml:memoryUsage', - title: i18n.translate( - 'xpack.observability.obltNav.machineLearning.memoryUsage', - { - defaultMessage: 'Memory usage', - } - ), + title: i18n.translate('xpack.observability.obltNav.machineLearning.memoryUsage', { + defaultMessage: 'Memory usage', + }), }, ], },