Skip to content

Commit

Permalink
fix: missing translation
Browse files Browse the repository at this point in the history
  • Loading branch information
stonith404 committed Sep 3, 2023
1 parent d4e8d4f commit 7647a9f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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}
Expand Down
1 change: 1 addition & 0 deletions frontend/src/i18n/translations/en-US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7647a9f

Please sign in to comment.