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 Nov 5, 2024
1 parent e7d852f commit 5e05891
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 5e05891

Please sign in to comment.