From 3f1229555e9b94efbe4cacdfd093ef81fbf91dbe Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sat, 21 Oct 2023 07:48:17 -0700 Subject: [PATCH] Fix translation of no events today in calendar See #2221 --- public/locales/en/common.json | 3 ++- src/widgets/calendar/agenda.jsx | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/locales/en/common.json b/public/locales/en/common.json index dd14a58e5..9c2030442 100644 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -763,6 +763,7 @@ "calendar": { "inCinemas": "In cinemas", "physicalRelease": "Physical release", - "digitalRelease": "Digital release" + "digitalRelease": "Digital release", + "noEventsToday": "No events for today!" } } diff --git a/src/widgets/calendar/agenda.jsx b/src/widgets/calendar/agenda.jsx index dc7761b9a..a854d277d 100644 --- a/src/widgets/calendar/agenda.jsx +++ b/src/widgets/calendar/agenda.jsx @@ -40,7 +40,7 @@ export function Event({ event, colorVariants, showDate = false }) { export default function Agenda({ service, colorVariants, showDate }) { const { widget } = service; const { events } = useContext(EventContext); - const { i18n } = useTranslation(); + const { t } = useTranslation(); if (!showDate) { return
; @@ -64,12 +64,11 @@ export default function Agenda({ service, colorVariants, showDate }) {