feat(i18n): add zh/en locale switching
This commit is contained in:
+10
-6
@@ -2,10 +2,14 @@
|
||||
|
||||
import Image from "next/image"
|
||||
import Link from "next/link"
|
||||
import { useTranslations } from "next-intl"
|
||||
import NewsletterForm from "@/components/NewsletterForm"
|
||||
import { CONTACT_CHANNELS, FOOTER_GROUPS, SITE_BRAND, SITE_DESCRIPTION } from "@/lib/site-content"
|
||||
import { CONTACT_CHANNELS, FOOTER_GROUPS } from "@/lib/site-content"
|
||||
|
||||
export default function Footer() {
|
||||
const t = useTranslations("footer")
|
||||
const site = useTranslations("site")
|
||||
|
||||
return (
|
||||
<footer className="footer-wrapper">
|
||||
<div data-w-id="f1ff1ac2-5ccd-56f8-612a-0570791caa19" className="footer-main-section">
|
||||
@@ -18,7 +22,7 @@ export default function Footer() {
|
||||
</div>
|
||||
<Link href="/contact" className="footer-button w-inline-block">
|
||||
<div className="button-content footer">
|
||||
<div>申请试用</div>
|
||||
<div>{t("applyTrial")}</div>
|
||||
</div>
|
||||
<div className="button-icon-wrapper footer primary">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="100%" viewBox="0 0 17 17" fill="none" className="squared-icon">
|
||||
@@ -43,9 +47,9 @@ export default function Footer() {
|
||||
<div className="w-layout-blockcontainer container-default w-container">
|
||||
<div className="w-layout-grid footer-middle-content">
|
||||
<div className="inner-container _355px _100-tablet">
|
||||
<div className="display-6 medium text-titles-dm">{SITE_BRAND}</div>
|
||||
<div className="display-6 medium text-titles-dm">{site("brand")}</div>
|
||||
<div className="mg-top-8-px">
|
||||
<p className="text-color-neutral-400 mg-bottom-20px">{SITE_DESCRIPTION}</p>
|
||||
<p className="text-color-neutral-400 mg-bottom-20px">{site("description")}</p>
|
||||
</div>
|
||||
<NewsletterForm variant="dark" />
|
||||
</div>
|
||||
@@ -113,10 +117,10 @@ export default function Footer() {
|
||||
</path>
|
||||
</svg>
|
||||
</div>
|
||||
<div>了解产品定位</div>
|
||||
<div>{t("learnPositioning")}</div>
|
||||
</Link>
|
||||
<p className="text-color-neutral-500">
|
||||
Copyright © 2026 DAL Code by DeepAILab. 官网基于现有 Next.js 骨架持续演进。
|
||||
{t("copyright")}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user