mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
feat: add i18n docs link
This commit is contained in:
@@ -5,6 +5,7 @@ import { useTranslations } from 'next-intl'
|
||||
|
||||
export function CallToAction() {
|
||||
const t = useTranslations('HomePage')
|
||||
const linkT = useTranslations('Link')
|
||||
return (
|
||||
<section
|
||||
id="get-started-today"
|
||||
@@ -46,7 +47,7 @@ export function CallToAction() {
|
||||
{/* @ts-expect-error */}
|
||||
<Button className="mt-10 rounded-full" asChild>
|
||||
<Link
|
||||
href="https://docs.dokploy.com/get-started/installation"
|
||||
href={linkT('docs.install')}
|
||||
aria-label="Dokploy on GitHub"
|
||||
target="_blank"
|
||||
className="flex flex-row items-center gap-2"
|
||||
|
||||
@@ -7,6 +7,8 @@ import { useTranslations } from 'next-intl'
|
||||
|
||||
export function Footer() {
|
||||
const t = useTranslations('HomePage')
|
||||
const linkT = useTranslations('Link')
|
||||
|
||||
return (
|
||||
<footer className="bg-black">
|
||||
<Container>
|
||||
@@ -26,10 +28,7 @@ export function Footer() {
|
||||
<NavLink href="/#faqs">
|
||||
{t('navigation.faqs')}
|
||||
</NavLink>
|
||||
<NavLink
|
||||
href="https://docs.dokploy.com/get-started/introduction"
|
||||
target="_blank"
|
||||
>
|
||||
<NavLink href={linkT('docs.intro')} target="_blank">
|
||||
{t('navigation.docs')}
|
||||
</NavLink>
|
||||
</div>
|
||||
|
||||
@@ -69,6 +69,7 @@ function MobileNavIcon({ open }: { open: boolean }) {
|
||||
|
||||
function MobileNavigation() {
|
||||
const t = useTranslations('HomePage')
|
||||
const linkT = useTranslations('Link')
|
||||
return (
|
||||
<Popover>
|
||||
<Popover.Button
|
||||
@@ -111,7 +112,7 @@ function MobileNavigation() {
|
||||
{t('navigation.faqs')}
|
||||
</MobileNavLink>
|
||||
<MobileNavLink
|
||||
href="https://docs.dokploy.com/get-started/introduction"
|
||||
href={linkT('docs.intro')}
|
||||
target="_blank"
|
||||
>
|
||||
{t('navigation.docs')}
|
||||
@@ -125,6 +126,8 @@ function MobileNavigation() {
|
||||
|
||||
export function Header() {
|
||||
const t = useTranslations('HomePage')
|
||||
const linkT = useTranslations('Link')
|
||||
|
||||
return (
|
||||
<header className="bg-background py-10">
|
||||
<Container>
|
||||
@@ -141,10 +144,7 @@ export function Header() {
|
||||
<NavLink href="/#faqs">
|
||||
{t('navigation.faqs')}
|
||||
</NavLink>
|
||||
<NavLink
|
||||
href="https://docs.dokploy.com/get-started/introduction"
|
||||
target="_blank"
|
||||
>
|
||||
<NavLink href={linkT('docs.intro')} target="_blank">
|
||||
{t('navigation.docs')}
|
||||
</NavLink>
|
||||
</div>
|
||||
|
||||
@@ -83,5 +83,11 @@
|
||||
"title": "Oops! Looks like you're lost.",
|
||||
"des": "Let's get you back",
|
||||
"action": "home"
|
||||
},
|
||||
"Link": {
|
||||
"docs": {
|
||||
"intro": "https://docs.dokploy.com/get-started/introduction",
|
||||
"install": "https://docs.dokploy.com/en/docs/core/get-started/introduction"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -83,5 +83,11 @@
|
||||
"title": "糟糕!看起来你迷路了。",
|
||||
"des": "让我们送你",
|
||||
"action": "回家"
|
||||
},
|
||||
"Link": {
|
||||
"docs": {
|
||||
"intro": "https://docs.dokploy.com/cn/docs/core/get-started/introduction",
|
||||
"install": "https://docs.dokploy.com/cn/docs/core/get-started/introduction"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user