From 517c6fdc9ba10411658b045dfb83147336377cb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikl=C3=B3s=20Tolnai?= Date: Mon, 25 Nov 2024 15:34:47 +0100 Subject: [PATCH] Navigation: add dbo11y app under Infrastructure (#96763) * add dbo11y app under Infrastructure * add i18n for Databases nav item * add Translation extraction results --- pkg/services/navtree/navtreeimpl/applinks.go | 1 + public/app/core/utils/navBarItem-translations.ts | 2 ++ public/locales/en-US/grafana.json | 3 +++ public/locales/pseudo-LOCALE/grafana.json | 3 +++ 4 files changed, 9 insertions(+) diff --git a/pkg/services/navtree/navtreeimpl/applinks.go b/pkg/services/navtree/navtreeimpl/applinks.go index ec7f9ee65bf..18e1af56420 100644 --- a/pkg/services/navtree/navtreeimpl/applinks.go +++ b/pkg/services/navtree/navtreeimpl/applinks.go @@ -284,6 +284,7 @@ func (s *ServiceImpl) hasAccessToInclude(c *contextmodel.ReqContext, pluginID st func (s *ServiceImpl) readNavigationSettings() { s.navigationAppConfig = map[string]NavigationAppConfig{ "grafana-k8s-app": {SectionID: navtree.NavIDInfrastructure, SortWeight: 1, Text: "Kubernetes"}, + "grafana-dbo11y-app": {SectionID: navtree.NavIDInfrastructure, SortWeight: 2, Text: "Databases"}, "grafana-app-observability-app": {SectionID: navtree.NavIDRoot, SortWeight: navtree.WeightApplication, Text: "Application", Icon: "graph-bar"}, "grafana-lokiexplore-app": {SectionID: navtree.NavIDExplore, SortWeight: 1, Text: "Logs"}, "grafana-exploretraces-app": {SectionID: navtree.NavIDExplore, SortWeight: 2, Text: "Traces"}, diff --git a/public/app/core/utils/navBarItem-translations.ts b/public/app/core/utils/navBarItem-translations.ts index d5a664526af..fd49ffc250f 100644 --- a/public/app/core/utils/navBarItem-translations.ts +++ b/public/app/core/utils/navBarItem-translations.ts @@ -157,6 +157,8 @@ export function getNavTitle(navId: string | undefined) { return t('nav.observability.title', 'Observability'); case 'plugin-page-grafana-k8s-app': return t('nav.kubernetes.title', 'Kubernetes'); + case 'plugin-page-grafana-dbo11y-app': + return t('nav.databases.title', 'Databases'); case 'plugin-page-grafana-app-observability-app': return t('nav.application.title', 'Application'); case 'plugin-page-grafana-pyroscope-app': diff --git a/public/locales/en-US/grafana.json b/public/locales/en-US/grafana.json index 6509714b50e..e4e7cadab4f 100644 --- a/public/locales/en-US/grafana.json +++ b/public/locales/en-US/grafana.json @@ -2080,6 +2080,9 @@ "subtitle": "View and manage your connected data source connections", "title": "Data sources" }, + "databases": { + "title": "Databases" + }, "datasources": { "subtitle": "Add and configure data sources", "title": "Data sources" diff --git a/public/locales/pseudo-LOCALE/grafana.json b/public/locales/pseudo-LOCALE/grafana.json index 855128db0c9..65d8a23f438 100644 --- a/public/locales/pseudo-LOCALE/grafana.json +++ b/public/locales/pseudo-LOCALE/grafana.json @@ -2080,6 +2080,9 @@ "subtitle": "Vįęŵ äʼnđ mäʼnäģę yőūř čőʼnʼnęčŧęđ đäŧä şőūřčę čőʼnʼnęčŧįőʼnş", "title": "Đäŧä şőūřčęş" }, + "databases": { + "title": "Đäŧäþäşęş" + }, "datasources": { "subtitle": "Åđđ äʼnđ čőʼnƒįģūřę đäŧä şőūřčęş", "title": "Đäŧä şőūřčęş"