mirror of
https://github.com/zadam/trilium.git
synced 2025-10-31 19:49:01 +01:00
chore(website/i18n): missing translations in header
This commit is contained in:
parent
2697f9a25d
commit
eb93762ecc
@ -106,6 +106,11 @@
|
|||||||
"linux_small": "for Linux",
|
"linux_small": "for Linux",
|
||||||
"more_platforms": "More platforms & server setup"
|
"more_platforms": "More platforms & server setup"
|
||||||
},
|
},
|
||||||
|
"header": {
|
||||||
|
"get-started": "Get started",
|
||||||
|
"documentation": "Documentation",
|
||||||
|
"support-us": "Support us"
|
||||||
|
},
|
||||||
"footer": {
|
"footer": {
|
||||||
"copyright_and_the": " and the ",
|
"copyright_and_the": " and the ",
|
||||||
"copyright_community": "community"
|
"copyright_community": "community"
|
||||||
|
|||||||
@ -106,6 +106,11 @@
|
|||||||
"linux_small": "pentru Linux",
|
"linux_small": "pentru Linux",
|
||||||
"more_platforms": "Mai multe platforme și instalarea server-ului"
|
"more_platforms": "Mai multe platforme și instalarea server-ului"
|
||||||
},
|
},
|
||||||
|
"header": {
|
||||||
|
"get-started": "Primii pași",
|
||||||
|
"documentation": "Documentație",
|
||||||
|
"support-us": "Sprijină-ne"
|
||||||
|
},
|
||||||
"footer": {
|
"footer": {
|
||||||
"copyright_and_the": " și ",
|
"copyright_and_the": " și ",
|
||||||
"copyright_community": "comunitatea"
|
"copyright_community": "comunitatea"
|
||||||
|
|||||||
@ -9,6 +9,7 @@ import Icon from "./Icon.js";
|
|||||||
import logoPath from "../assets/icon-color.svg";
|
import logoPath from "../assets/icon-color.svg";
|
||||||
import menuIcon from "../assets/boxicons/bx-menu.svg?raw";
|
import menuIcon from "../assets/boxicons/bx-menu.svg?raw";
|
||||||
import { LocaleContext } from "..";
|
import { LocaleContext } from "..";
|
||||||
|
import { useTranslation } from "react-i18next";
|
||||||
|
|
||||||
interface HeaderLink {
|
interface HeaderLink {
|
||||||
url: string;
|
url: string;
|
||||||
@ -16,17 +17,18 @@ interface HeaderLink {
|
|||||||
external?: boolean;
|
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}) {
|
export function Header(props: {repoStargazersCount: number}) {
|
||||||
const { url } = useLocation();
|
const { url } = useLocation();
|
||||||
|
const { t } = useTranslation();
|
||||||
const locale = useContext(LocaleContext);
|
const locale = useContext(LocaleContext);
|
||||||
const [ mobileMenuShown, setMobileMenuShown ] = useState(false);
|
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 (
|
return (
|
||||||
<header>
|
<header>
|
||||||
<div class="content-wrapper">
|
<div class="content-wrapper">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user