diff --git a/scm-ui/ui-webapp/src/repos/components/form/RepositoryFormSwitcher.tsx b/scm-ui/ui-webapp/src/repos/components/form/RepositoryFormSwitcher.tsx index 4edff0992c..45c56639bb 100644 --- a/scm-ui/ui-webapp/src/repos/components/form/RepositoryFormSwitcher.tsx +++ b/scm-ui/ui-webapp/src/repos/components/form/RepositoryFormSwitcher.tsx @@ -26,6 +26,7 @@ import React, { FC } from "react"; import styled from "styled-components"; import { Button, ButtonAddons, Icon, Level, urls } from "@scm-manager/ui-components"; import { useLocation } from "react-router-dom"; +import { useTranslation } from "react-i18next"; const MarginIcon = styled(Icon)` padding-right: 0.5rem; @@ -58,11 +59,12 @@ const RepositoryFormButton: FC = ({ path, icon, label }) => { const location = useLocation(); const href = urls.concat("/repos/create", path); const isSelected = href === location.pathname; + const [t] = useTranslation(["repos", "plugins"]); return ( -

{label}

+

{t(`plugins:${label}`, label)}

); }; @@ -75,7 +77,7 @@ const RepositoryFormSwitcher: FC = ({ forms }) => ( - {(forms || []).map(form => ( + {(forms || []).map((form) => ( ))}