mirror of
https://github.com/zadam/trilium.git
synced 2025-11-18 03:00:41 +01:00
feat(website/i18n): translate footer
This commit is contained in:
@@ -5,13 +5,14 @@ import githubDiscussionsIcon from "../assets/boxicons/bx-discussion.svg?raw";
|
||||
import matrixIcon from "../assets/boxicons/bx-message-dots.svg?raw";
|
||||
import redditIcon from "../assets/boxicons/bx-reddit.svg?raw";
|
||||
import { Link } from "./Button.js";
|
||||
import { t } from "../i18n";
|
||||
|
||||
export default function Footer() {
|
||||
return (
|
||||
<footer>
|
||||
<div class="content-wrapper">
|
||||
<div class="footer-text">
|
||||
© 2024-2025 <Link href="https://github.com/eliandoran" openExternally>Elian Doran</Link> and the <Link href="https://github.com/TriliumNext/Trilium/graphs/contributors" openExternally>community</Link>.<br />
|
||||
© 2024-2025 <Link href="https://github.com/eliandoran" openExternally>Elian Doran</Link>{t("footer.copyright_and_the")}<Link href="https://github.com/TriliumNext/Trilium/graphs/contributors" openExternally>{t("footer.copyright_community")}</Link>.<br />
|
||||
© 2017-2024 <Link href="https://github.com/zadam" openExternally>zadam</Link>.
|
||||
</div>
|
||||
|
||||
@@ -25,28 +26,28 @@ export function SocialButtons({ className, withText }: { className?: string, wit
|
||||
return (
|
||||
<div className={`social-buttons ${className}`}>
|
||||
<SocialButton
|
||||
name="GitHub"
|
||||
name={t("social_buttons.github")}
|
||||
iconSvg={githubIcon}
|
||||
url="https://github.com/TriliumNext/Trilium"
|
||||
withText={withText}
|
||||
/>
|
||||
|
||||
<SocialButton
|
||||
name="GitHub Discussions"
|
||||
name={t("social_buttons.github_discussions")}
|
||||
iconSvg={githubDiscussionsIcon}
|
||||
url="https://github.com/orgs/TriliumNext/discussions"
|
||||
withText={withText}
|
||||
/>
|
||||
|
||||
<SocialButton
|
||||
name="Matrix"
|
||||
name={t("social_buttons.matrix")}
|
||||
iconSvg={matrixIcon}
|
||||
url="https://matrix.to/#/#triliumnext:matrix.org"
|
||||
withText={withText}
|
||||
/>
|
||||
|
||||
<SocialButton
|
||||
name="Reddit"
|
||||
name={t("social_buttons.reddit")}
|
||||
iconSvg={redditIcon}
|
||||
url="https://www.reddit.com/r/Trilium/"
|
||||
withText={withText}
|
||||
@@ -63,7 +64,7 @@ export function SocialButton({ name, iconSvg, url, withText, counter }: { name:
|
||||
title={!withText ? name : undefined}
|
||||
>
|
||||
<Icon svg={iconSvg} />
|
||||
{counter && <span class="counter">{counter}</span>}
|
||||
{counter && <span class="counter">{counter}</span>}
|
||||
{withText && name}
|
||||
</Link>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user