diff --git a/client/src/shared/instrument-card-actions/ui/ShowInstrument.button.tsx b/client/src/shared/instrument-card-actions/ui/ShowInstrument.button.tsx index 70171b7b..6ac46721 100644 --- a/client/src/shared/instrument-card-actions/ui/ShowInstrument.button.tsx +++ b/client/src/shared/instrument-card-actions/ui/ShowInstrument.button.tsx @@ -5,12 +5,15 @@ import { useNavigate } from "react-router-dom"; import { InstrumentDetail } from "generated/model"; import { useDarkMode } from "shared/dark-mode/use-dark-mode"; +import { useTranslation } from "react-i18next"; +import { I18N_INSTRUMENT_CARD_SHOW_BUTTON } from "../../../i18n"; interface Props { instrument: InstrumentDetail; } export const ShowInstrumentButton = (props: Props) => { + const { t } = useTranslation(); const { darkMode } = useDarkMode(); const navigate = useNavigate(); @@ -27,7 +30,7 @@ export const ShowInstrumentButton = (props: Props) => { `} onClick={handleOnClick} > - Show + {t(I18N_INSTRUMENT_CARD_SHOW_BUTTON)} ); };