chore(website/i18n): missing translations in header

This commit is contained in:
Elian Doran
2025-10-25 20:10:11 +03:00
parent 2697f9a25d
commit eb93762ecc
3 changed files with 18 additions and 6 deletions

View File

@@ -9,6 +9,7 @@ import Icon from "./Icon.js";
import logoPath from "../assets/icon-color.svg";
import menuIcon from "../assets/boxicons/bx-menu.svg?raw";
import { LocaleContext } from "..";
import { useTranslation } from "react-i18next";
interface HeaderLink {
url: string;
@@ -16,17 +17,18 @@ interface HeaderLink {
external?: boolean;
}
const HEADER_LINKS: HeaderLink[] = [
{ url: "/get-started/", text: "Get started" },
{ url: "https://docs.triliumnotes.org/", text: "Documentation", external: true },
{ url: "/support-us/", text: "Support us" }
]
export function Header(props: {repoStargazersCount: number}) {
const { url } = useLocation();
const { t } = useTranslation();
const locale = useContext(LocaleContext);
const [ mobileMenuShown, setMobileMenuShown ] = useState(false);
const HEADER_LINKS = useMemo<HeaderLink[]>(() => [
{ url: "/get-started/", text: t("header.get-started") },
{ url: "https://docs.triliumnotes.org/", text: t("header.documentation"), external: true },
{ url: "/support-us/", text: t("header.support-us") }
], [ locale ]);
return (
<header>
<div class="content-wrapper">