mirror of
https://github.com/swissmakers/swiss-datashare.git
synced 2026-04-17 12:43:13 +02:00
fix: missing translation
This commit is contained in:
@@ -13,7 +13,9 @@ import { useForm } from "@mantine/form";
|
|||||||
import { useModals } from "@mantine/modals";
|
import { useModals } from "@mantine/modals";
|
||||||
import { ModalsContextProps } from "@mantine/modals/lib/context";
|
import { ModalsContextProps } from "@mantine/modals/lib/context";
|
||||||
import { FormattedMessage } from "react-intl";
|
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 shareService from "../../../services/share.service";
|
||||||
import { getExpirationPreview } from "../../../utils/date.util";
|
import { getExpirationPreview } from "../../../utils/date.util";
|
||||||
import toast from "../../../utils/toast.util";
|
import toast from "../../../utils/toast.util";
|
||||||
@@ -25,8 +27,9 @@ const showCreateReverseShareModal = (
|
|||||||
showSendEmailNotificationOption: boolean,
|
showSendEmailNotificationOption: boolean,
|
||||||
getReverseShares: () => void
|
getReverseShares: () => void
|
||||||
) => {
|
) => {
|
||||||
|
const t = translateOutsideContext();
|
||||||
return modals.openModal({
|
return modals.openModal({
|
||||||
title: "Create reverse share",
|
title: t("account.reverseShares.modal.title"),
|
||||||
children: (
|
children: (
|
||||||
<Body
|
<Body
|
||||||
showSendEmailNotificationOption={showSendEmailNotificationOption}
|
showSendEmailNotificationOption={showSendEmailNotificationOption}
|
||||||
|
|||||||
@@ -149,6 +149,7 @@ export default {
|
|||||||
"You don't have any reverse shares.",
|
"You don't have any reverse shares.",
|
||||||
|
|
||||||
// showCreateReverseShareModal.tsx
|
// showCreateReverseShareModal.tsx
|
||||||
|
"account.reverseShares.modal.title": "Create reverse share",
|
||||||
"account.reverseShares.modal.expiration.label": "Expiration",
|
"account.reverseShares.modal.expiration.label": "Expiration",
|
||||||
"account.reverseShares.modal.expiration.minute-singular": "Minute",
|
"account.reverseShares.modal.expiration.minute-singular": "Minute",
|
||||||
"account.reverseShares.modal.expiration.minute-plural": "Minutes",
|
"account.reverseShares.modal.expiration.minute-plural": "Minutes",
|
||||||
|
|||||||
Reference in New Issue
Block a user