1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-11-04 23:10:13 +01:00

fix: missing translation

This commit is contained in:
Elias Schneider 2023-09-03 22:09:55 +02:00
parent d4e8d4f58b
commit 7647a9f620
No known key found for this signature in database
GPG Key ID: 07E623B294202B6C
2 changed files with 6 additions and 2 deletions

View File

@ -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: (
<Body
showSendEmailNotificationOption={showSendEmailNotificationOption}

View File

@ -149,6 +149,7 @@ export default {
"You don't have any reverse shares.",
// showCreateReverseShareModal.tsx
"account.reverseShares.modal.title": "Create reverse share",
"account.reverseShares.modal.expiration.label": "Expiration",
"account.reverseShares.modal.expiration.minute-singular": "Minute",
"account.reverseShares.modal.expiration.minute-plural": "Minutes",