From 2697f9a25d53ba485eaac8b2f61b3b2e7cf62bdb Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 25 Oct 2025 20:00:09 +0300 Subject: [PATCH] fix(website/i18n): get started in download button not working --- apps/website/src/components/DownloadButton.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/website/src/components/DownloadButton.tsx b/apps/website/src/components/DownloadButton.tsx index c860a312e..150f59b48 100644 --- a/apps/website/src/components/DownloadButton.tsx +++ b/apps/website/src/components/DownloadButton.tsx @@ -3,14 +3,16 @@ import "./DownloadButton.css"; import Button from "./Button.js"; import downloadIcon from "../assets/boxicons/bx-arrow-in-down-square-half.svg?raw"; import packageJson from "../../../../package.json" with { type: "json" }; -import { useEffect, useState } from "preact/hooks"; +import { useContext, useEffect, useState } from "preact/hooks"; import { useTranslation } from "react-i18next"; +import { LocaleContext } from "../index.js"; interface DownloadButtonProps { big?: boolean; } export default function DownloadButton({ big }: DownloadButtonProps) { + const locale = useContext(LocaleContext); const { t } = useTranslation(); const [ recommendedDownload, setRecommendedDownload ] = useState(); useEffect(() => { @@ -36,7 +38,7 @@ export default function DownloadButton({ big }: DownloadButtonProps) { ) : (