Skip to content

Commit

Permalink
fix: Add missing localization for 'Today'
Browse files Browse the repository at this point in the history
  • Loading branch information
alaa-yahia committed Oct 24, 2024
1 parent e7d852f commit 0db8ee0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// @flow
import React from 'react';
import moment from 'moment';
import i18n from '@dhis2/d2-i18n';
import { statusTypes, translatedStatusTypes } from 'capture-core/events/statusTypes';
import { convertMomentToDateFormatString } from '../../../../../../utils/converters/date';
import { getSubValues } from '../../getEventDataWithSubValue';
Expand Down Expand Up @@ -30,7 +31,7 @@ const getEventStatus = (event: ApiEnrollmentEvent) => {
}

if (daysUntilDueDate === 0) {
return { status: statusTypes.SCHEDULE, options: 'today' };
return { status: statusTypes.SCHEDULE, options: i18n.t('Today') };
}

if (daysUntilDueDate < 14) {
Expand Down

0 comments on commit 0db8ee0

Please sign in to comment.