Skip to content

Commit

Permalink
fix(i18n): localize instrument card
Browse files Browse the repository at this point in the history
  • Loading branch information
bas-kirill committed Aug 30, 2024
1 parent b18233c commit a09182f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -27,7 +30,7 @@ export const ShowInstrumentButton = (props: Props) => {
`}
onClick={handleOnClick}
>
Show
{t(I18N_INSTRUMENT_CARD_SHOW_BUTTON)}
</button>
);
};

0 comments on commit a09182f

Please sign in to comment.