Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(feat)add translations to reports module #611

Merged
merged 13 commits into from
Dec 6, 2023
50 changes: 26 additions & 24 deletions frontend/src/components/Reports/Routine.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from "react";
import GlobalSideBar from "../common/GlobalSideBar";
import { FormattedMessage, injectIntl } from "react-intl";
import {
IbmWatsonDiscovery,
IbmWatsonNaturalLanguageUnderstanding,
Expand All @@ -10,137 +11,138 @@ export const RoutineReportsMenu = {
className: "resultSideNav",
sideNavMenuItems: [
{
title: "Patient Status Report",
title: <FormattedMessage id="sidenav.title.statusreport"/>,
icon: IbmWatsonDiscovery,
SideNavMenuItem: [
{
link:
config.serverBaseUrl +
"/Report?type=patient&report=patientCILNSP_vreduit",
label: "Patient Status Report",
label: <FormattedMessage id="sidenav.label.statusreport"/>,
},
],
},
{
title: "Aggregate Reports",
title: <FormattedMessage id="sidenav.title.aggregatereport"/>,
icon: Microscope,
SideNavMenuItem: [
{
link:
config.serverBaseUrl +
"/Report?type=indicator&report=statisticsReport",
label: "Statistics Report",
label: <FormattedMessage id= "sidenav.label.statisticsreport"/>,
},
{
link:
config.serverBaseUrl +
"/Report?type=indicator&report=indicatorHaitiLNSPAllTests",
label: "Summary of All Tests",
label: <FormattedMessage id= "sidenav.label.testsummary"/>
},
{
link:
config.serverBaseUrl +
"/Report?type=indicator&report=indicatorCDILNSPHIV",
label: "HIV Test Summary",
label: <FormattedMessage id="sideNav.label.hivtestsummary"/>,
},
],
},
{
title: "Rejection Report",
title: <FormattedMessage id="sideNav.title.rejectionreport"/>,
icon: IbmWatsonNaturalLanguageUnderstanding,
SideNavMenuItem: [
{
link:
config.serverBaseUrl +
"/Report?type=indicator&report=sampleRejectionReport",
label: "Rejection Report",
label: <FormattedMessage id="sideNav.label.rejectionreport"/>,
},
],
},
{
title: "Activity Report",
title: <FormattedMessage id="sideNav.title.activityreport"/>,
icon: IbmWatsonNaturalLanguageUnderstanding,
SideNavMenuItem: [
{
link:
config.serverBaseUrl +
"/Report?type=indicator&report=activityReportByTest",
label: "By Test Type",
label: <FormattedMessage id="sideNav.label.bytesttype"/>,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you just forget the english translation for this ??

},
{
link:
config.serverBaseUrl +
"/Report?type=indicator&report=activityReportByPanel",
label: "By Panel Type",
label: <FormattedMessage id="sideNav.label.bypaneltype"/>,
},
{
link:
config.serverBaseUrl +
"/Report?type=indicator&report=activityReportByTestSection",
label: "By Unit",
label: <FormattedMessage id="sideNav.label.byunit"/>,
},
],
},
{
title: "Referred Tests Report",
title: <FormattedMessage id="sideNav.title.referredtestreport" defaultMessage="Referred Tests Report"/>,
icon: IbmWatsonNaturalLanguageUnderstanding,
SideNavMenuItem: [
{
link:
config.serverBaseUrl + "/Report?type=patient&report=referredOut",
label: "Referred Tests Report",
label: <FormattedMessage id="sideNav.label.referredtestreport"/>,
},
],
},
{
title: "Non conformity Reports",
title: <FormattedMessage id="sideNav.title.noncomformityreports"/>,
icon: IbmWatsonNaturalLanguageUnderstanding,
SideNavMenuItem: [
{
link:
config.serverBaseUrl +
"/Report?type=patient&report=haitiNonConformityByDate",
label: "By Date",
label: <FormattedMessage id="sideNav.label.noncomformityreportsbydate"/>,
},
{
link:
config.serverBaseUrl +
"/Report?type=patient&report=haitiNonConformityBySectionReason",
label: "By unit and Reason",
label: <FormattedMessage id="sideNav.label.noncomformityreportsbyunit"/>,
},
],
},
{
title: "Delayed Validation",
title: <FormattedMessage id="sideNav.title.delayedvalidation"/>,
icon: IbmWatsonNaturalLanguageUnderstanding,
SideNavMenuItem: [
{
link:
config.serverBaseUrl +
"/ReportPrint?type=indicator&report=validationBacklog",
label: "Delayed Validation",
label: <FormattedMessage id="sideNav.label.delayedvalidation"/>,
icon: IbmWatsonNaturalLanguageUnderstanding,
},
],
},
{
title: "Audit Trail",
title: <FormattedMessage id="sideNav.title.audittrail"/>,
icon: IbmWatsonNaturalLanguageUnderstanding,
SideNavMenuItem: [
{
link: config.serverBaseUrl + "/AuditTrailReport",
label: "Audit Trail",
label: <FormattedMessage id="sideNav.label.audittrail"/>,
},
],
},
{
title: "Export Routine CSV file",
title: <FormattedMessage id="sideNav.title.exportcsvfile"/>,
icon: IbmWatsonNaturalLanguageUnderstanding,
SideNavMenuItem: [
{
link:
config.serverBaseUrl +
"/Report?type=patient&report=CISampleRoutineExport",
label: "Export Routine CSV file",
label: <FormattedMessage id="sideNav.label.exportcsvfile"/>,
},
],
},
Expand All @@ -155,4 +157,4 @@ const Routine = () => {
);
};

export default Routine;
export default injectIntl(Routine);
Loading
Loading