feat: add Timeline link to navigation with i18n support

This commit is contained in:
2026-01-27 21:42:06 +08:00
parent a54396fb74
commit 0f0dc4b987
3 changed files with 8 additions and 0 deletions
+6
View File
@@ -81,6 +81,12 @@ export default async function LocaleLayout({
>
{tNav('keywordCloud')}
</Link>
<Link
className="font-display text-sm font-bold hover:text-secondary dark:hover:text-primary transition-colors"
href={`/${locale}/timeline`}
>
{tNav('timeline')}
</Link>
<Link
className="font-display text-sm font-bold hover:text-secondary dark:hover:text-primary transition-colors"
href="#"
+1
View File
@@ -75,6 +75,7 @@
"home": "Home",
"projects": "Projects",
"keywordCloud": "AI Word Cloud",
"timeline": "AI Timeline",
"blog": "Blog",
"about": "About",
"submitProject": "SUBMIT PROJECT"
+1
View File
@@ -75,6 +75,7 @@
"home": "首页",
"projects": "项目列表",
"keywordCloud": "AI 词云",
"timeline": "AI 时间轴",
"blog": "博客",
"about": "关于",
"submitProject": "提交项目"