From a9cc0dbab0e2eef86669477b376f7486b79694a9 Mon Sep 17 00:00:00 2001 From: bnitsch Date: Wed, 17 Jul 2024 14:25:25 +0200 Subject: [PATCH] #378: Remove translations for tab links, because we do not need a locale translation for the route definition. --- src/components/StudyList.vue | 2 +- src/components/shared/MoreTabNav.vue | 16 ++++++++-------- src/i18n/de.json | 10 ---------- src/i18n/en.json | 10 ---------- 4 files changed, 9 insertions(+), 29 deletions(-) diff --git a/src/components/StudyList.vue b/src/components/StudyList.vue index 9a6f72f..a774f75 100644 --- a/src/components/StudyList.vue +++ b/src/components/StudyList.vue @@ -196,7 +196,7 @@ Licensed under the Elastic License 2.0. */ function goToStudy(id: string): void { router.push({ - name: t('studyNavigation.tabLink.overview'), + name: 'Overview', params: { studyId: id }, }); } diff --git a/src/components/shared/MoreTabNav.vue b/src/components/shared/MoreTabNav.vue index b814cd1..812feff 100644 --- a/src/components/shared/MoreTabNav.vue +++ b/src/components/shared/MoreTabNav.vue @@ -41,49 +41,49 @@ Licensed under the Elastic License 2.0. */ const tabs: Tab[] = [ { title: t('studyNavigation.tabs.overview'), - name: t('studyNavigation.tabLink.overview'), + name: 'Overview', params: { studyId: props.studyId }, access: [StudyRole.Admin, StudyRole.Operator, StudyRole.Viewer], }, { title: t('studyNavigation.tabs.participants'), - name: t('studyNavigation.tabLink.participants'), + name: 'Participants', params: { studyId: props.studyId }, access: [StudyRole.Admin, StudyRole.Operator], }, { title: t('studyNavigation.tabs.observations'), - name: t('studyNavigation.tabLink.observations'), + name: 'Observations', params: { studyId: props.studyId }, access: [StudyRole.Admin, StudyRole.Operator], }, { title: t('studyNavigation.tabs.integration'), - name: t('studyNavigation.tabLink.integration'), + name: 'Integrations', params: { studyId: props.studyId }, access: [StudyRole.Admin, StudyRole.Operator], }, { title: t('studyNavigation.tabs.interventions'), - name: t('studyNavigation.tabLink.interventions'), + name: 'Interventions', params: { studyId: props.studyId }, access: [StudyRole.Admin, StudyRole.Operator], }, { title: t('studyNavigation.tabs.timeline'), - name: t('studyNavigation.tabLink.timeline'), + name: 'Timeline', params: { studyId: props.studyId }, access: [StudyRole.Admin, StudyRole.Operator], }, { title: t('studyNavigation.tabs.monitoring'), - name: t('studyNavigation.tabLink.monitoring'), + name: 'Monitoring', params: { studyId: props.studyId }, access: [StudyRole.Admin, StudyRole.Viewer], }, { title: t('studyNavigation.tabs.data'), - name: t('studyNavigation.tabLink.data'), + name: 'Data', params: { studyId: props.studyId }, access: [StudyRole.Admin, StudyRole.Viewer], }, diff --git a/src/i18n/de.json b/src/i18n/de.json index 2100535..df4d879 100644 --- a/src/i18n/de.json +++ b/src/i18n/de.json @@ -73,16 +73,6 @@ "timeline": "Kalender", "monitoring": "Monitoring", "data": "Daten" - }, - "tabLink": { - "overview": "Overview", - "participants": "Participants", - "observations": "Observations", - "integration": "Integrations", - "interventions": "Interventions", - "timeline": "Timeline", - "monitoring": "Monitoring", - "data": "Data" } }, diff --git a/src/i18n/en.json b/src/i18n/en.json index 0c0822e..c6863e3 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -73,16 +73,6 @@ "timeline": "Timeline", "monitoring": "Monitoring", "data": "Data" - }, - "tabLink": { - "overview": "Overview", - "participants": "Participants", - "observations": "Observations", - "interventions": "Interventions", - "integration": "Integrations", - "timeline": "Timeline", - "monitoring": "Monitoring", - "data": "Data" } },