From 7647a9f620cbc5d38e019225a680a53bd3027698 Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Sun, 3 Sep 2023 22:09:55 +0200 Subject: [PATCH] fix: missing translation --- .../share/modals/showCreateReverseShareModal.tsx | 7 +++++-- frontend/src/i18n/translations/en-US.ts | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/share/modals/showCreateReverseShareModal.tsx b/frontend/src/components/share/modals/showCreateReverseShareModal.tsx index 69432dd..75b77f4 100644 --- a/frontend/src/components/share/modals/showCreateReverseShareModal.tsx +++ b/frontend/src/components/share/modals/showCreateReverseShareModal.tsx @@ -13,7 +13,9 @@ import { useForm } from "@mantine/form"; import { useModals } from "@mantine/modals"; import { ModalsContextProps } from "@mantine/modals/lib/context"; import { FormattedMessage } from "react-intl"; -import useTranslate from "../../../hooks/useTranslate.hook"; +import useTranslate, { + translateOutsideContext, +} from "../../../hooks/useTranslate.hook"; import shareService from "../../../services/share.service"; import { getExpirationPreview } from "../../../utils/date.util"; import toast from "../../../utils/toast.util"; @@ -25,8 +27,9 @@ const showCreateReverseShareModal = ( showSendEmailNotificationOption: boolean, getReverseShares: () => void ) => { + const t = translateOutsideContext(); return modals.openModal({ - title: "Create reverse share", + title: t("account.reverseShares.modal.title"), children: (