From d5262a1968ff468486e32ff697e9df0bcd7003eb Mon Sep 17 00:00:00 2001 From: Luis Sousa Date: Wed, 2 Jul 2025 23:18:34 +0100 Subject: [PATCH] add i18n for the notifications dropdown menu in the list. --- client/src/Pages/Notifications/components/ActionMenu.jsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/src/Pages/Notifications/components/ActionMenu.jsx b/client/src/Pages/Notifications/components/ActionMenu.jsx index a26a9412d..fb971500b 100644 --- a/client/src/Pages/Notifications/components/ActionMenu.jsx +++ b/client/src/Pages/Notifications/components/ActionMenu.jsx @@ -9,13 +9,14 @@ import { useState } from "react"; import { useTheme } from "@emotion/react"; import { useNavigate } from "react-router-dom"; import PropTypes from "prop-types"; +import { useTranslation } from "react-i18next"; const ActionMenu = ({ notification, onDelete }) => { const theme = useTheme(); const navigate = useNavigate(); const [anchorEl, setAnchorEl] = useState(null); const open = Boolean(anchorEl); - + const { t } = useTranslation(); // Handlers const handleClick = (event) => { event.stopPropagation(); @@ -59,12 +60,12 @@ const ActionMenu = ({ notification, onDelete }) => { onClick={(e) => e.stopPropagation()} onMouseDown={(e) => e.stopPropagation()} > - Configure + {t("configure", "Configure")} - Remove + {t("delete", "Delete")}