diff --git a/packages/esm-commons-lib/src/components/ohri-home/welcome-section/ohri-welcome-section.component.tsx b/packages/esm-commons-lib/src/components/ohri-home/welcome-section/ohri-welcome-section.component.tsx index e35339dd6..afaab5ba4 100644 --- a/packages/esm-commons-lib/src/components/ohri-home/welcome-section/ohri-welcome-section.component.tsx +++ b/packages/esm-commons-lib/src/components/ohri-home/welcome-section/ohri-welcome-section.component.tsx @@ -1,6 +1,7 @@ import React from 'react'; import { Calendar } from '@carbon/react/icons'; import { useSession } from '@openmrs/esm-framework'; +import { useTranslation } from 'react-i18next'; import styles from './ohri-welcome-section.scss'; @@ -11,13 +12,14 @@ interface OHRIWelcomeSectionProps { export const OHRIWelcomeSection: React.FC = ({ title, icon }) => { const userSession = useSession(); + const { t } = useTranslation(); return (
{icon}
{userSession?.sessionLocation.display}
-
{title}
+
{t(title)}
{new Date().toLocaleDateString() + ''}