diff --git a/packages/page-calendar/src/UpcomingEvents.tsx b/packages/page-calendar/src/UpcomingEvents.tsx index e04928b404..d80649aaaa 100644 --- a/packages/page-calendar/src/UpcomingEvents.tsx +++ b/packages/page-calendar/src/UpcomingEvents.tsx @@ -9,6 +9,7 @@ import styled from 'styled-components'; import { Button } from '@polkadot/react-components'; import DayItem from './DayItem'; +import { useTranslation } from './translate'; interface Props { className?: string; @@ -17,6 +18,7 @@ interface Props { } function UpcomingEvents ({ className, scheduled, setView }: Props): React.ReactElement { + const { t } = useTranslation(); const sched = useMemo( () => scheduled.sort((a, b) => a.dateTime - b.dateTime), [scheduled] @@ -36,7 +38,7 @@ function UpcomingEvents ({ className, scheduled, setView }: Props): React.ReactE icon='calendar' onClick={_setView} /> - Upcoming Events + {t('Upcoming Events')}