diff --git a/frontend/src/components/project-menu/project.menu-card-context-menu.tsx b/frontend/src/components/project-menu/project.menu-card-context-menu.tsx index d9d8bafbda8a..8beaf05c1de2 100644 --- a/frontend/src/components/project-menu/project.menu-card-context-menu.tsx +++ b/frontend/src/components/project-menu/project.menu-card-context-menu.tsx @@ -1,6 +1,8 @@ +import { useTranslation } from "react-i18next"; import { useClickOutsideElement } from "#/hooks/useClickOutsideElement"; import { ContextMenu } from "../context-menu/context-menu"; import { ContextMenuListItem } from "../context-menu/context-menu-list-item"; +import { I18nKey } from "#/i18n/declaration"; interface ProjectMenuCardContextMenuProps { isConnectedToGitHub: boolean; @@ -18,7 +20,7 @@ export function ProjectMenuCardContextMenu({ onClose, }: ProjectMenuCardContextMenuProps) { const menuRef = useClickOutsideElement(onClose); - + const { t } = useTranslation(); return ( {!isConnectedToGitHub && ( - Connect to GitHub + {t(I18nKey.PROJECT_MENU_CARD_CONTEXT_MENU$CONNECT_TO_GITHUB_LABEL)} )} {isConnectedToGitHub && ( - Push to GitHub + {t(I18nKey.PROJECT_MENU_CARD_CONTEXT_MENU$PUSH_TO_GITHUB_LABEL)} )} - Download as .zip + {t(I18nKey.PROJECT_MENU_CARD_CONTEXT_MENU$DOWNLOAD_AS_ZIP_LABEL)} ); diff --git a/frontend/src/i18n/translation.json b/frontend/src/i18n/translation.json index 160e15f076ad..2d13e4fb1526 100644 --- a/frontend/src/i18n/translation.json +++ b/frontend/src/i18n/translation.json @@ -1745,5 +1745,17 @@ }, "AGENT_ERROR$ACTION_TIMEOUT": { "en": "Action timed out." + }, + "PROJECT_MENU_CARD_CONTEXT_MENU$CONNECT_TO_GITHUB_LABEL": { + "en": "Connect to GitHub", + "es": "Conectar a GitHub" + }, + "PROJECT_MENU_CARD_CONTEXT_MENU$PUSH_TO_GITHUB_LABEL": { + "en": "Push to GitHub", + "es": "Subir a GitHub" + }, + "PROJECT_MENU_CARD_CONTEXT_MENU$DOWNLOAD_AS_ZIP_LABEL": { + "en": "Download as .zip", + "es": "Descargar como .zip" } }