diff --git a/src/components/elements/MapPolygonPanel/ChecklistInformation.tsx b/src/components/elements/MapPolygonPanel/ChecklistInformation.tsx index bbe6b4ae9..1948979c2 100644 --- a/src/components/elements/MapPolygonPanel/ChecklistInformation.tsx +++ b/src/components/elements/MapPolygonPanel/ChecklistInformation.tsx @@ -16,7 +16,8 @@ const ChecklistInformation = () => { ); diff --git a/src/components/elements/MapPolygonPanel/MapPolygonPanelItem.tsx b/src/components/elements/MapPolygonPanel/MapPolygonPanelItem.tsx index 9bd9d43c7..bd0392b85 100644 --- a/src/components/elements/MapPolygonPanel/MapPolygonPanelItem.tsx +++ b/src/components/elements/MapPolygonPanel/MapPolygonPanelItem.tsx @@ -1,3 +1,4 @@ +import { useT } from "@transifex/react"; import classNames from "classnames"; import { DetailedHTMLProps, Dispatch, HTMLAttributes, SetStateAction } from "react"; @@ -32,13 +33,15 @@ const MapPolygonPanelItem = ({ ...props }: MapPolygonPanelItemProps) => { const { openModal, closeModal } = useModalContext(); + const t = useT(); + const openFormModalHandlerRequestPolygonSupport = () => { openModal( ); @@ -46,12 +49,12 @@ const MapPolygonPanelItem = ({ const openFormModalHandlerAddCommentary = () => { openModal( ); @@ -59,8 +62,8 @@ const MapPolygonPanelItem = ({ const openFormModalHandlerConfirm = () => { openModal( {}} /> @@ -73,7 +76,7 @@ const MapPolygonPanelItem = ({ render: () => ( -   Edit Polygon +   {t("Edit Polygon")} ), onClick: () => { @@ -87,7 +90,7 @@ const MapPolygonPanelItem = ({ render: () => ( -   Zoom to +   {t("Zoom to")} ) }, @@ -96,7 +99,7 @@ const MapPolygonPanelItem = ({ render: () => ( -   Download +   {t("Download")} ) }, @@ -106,7 +109,7 @@ const MapPolygonPanelItem = ({ ) @@ -117,7 +120,7 @@ const MapPolygonPanelItem = ({ ) @@ -128,7 +131,7 @@ const MapPolygonPanelItem = ({ ) @@ -148,9 +151,9 @@ const MapPolygonPanelItem = ({
- {title} + {t(title)} - {subtitle} + {t(subtitle)}