feat: 新增本地话词条

This commit is contained in:
SvenFE
2025-07-04 11:22:03 +08:00
parent d467de8d08
commit ccd9621a0f
5 changed files with 12 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
{
"Navbar": {
"chat": "Chat",
"about": "About"
}
}

View File

@@ -1,5 +1,6 @@
{
"Navbar": {
"chat": "对话",
"about": "关于"
}
}

View File

@@ -1,4 +0,0 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};
module.exports = nextConfig;

7
next.config.ts Normal file
View File

@@ -0,0 +1,7 @@
import type { NextConfig } from "next";
import createNextIntlPlugin from "next-intl/plugin";
const nextConfig: NextConfig = {};
const withNextIntl = createNextIntlPlugin();
export default withNextIntl(nextConfig);

View File

@@ -1,3 +1,4 @@
import { useTranslations } from "next-intl";
import {
Navbar as HeroUINavbar,
NavbarContent,
@@ -5,7 +6,6 @@ import {
NavbarMenuToggle,
NavbarBrand,
NavbarItem,
NavbarMenuItem,
} from "@heroui/navbar";
import { Button } from "@heroui/button";
import { Kbd } from "@heroui/kbd";
@@ -27,6 +27,7 @@ import {
} from "@/components/icons";
export const Navbar = () => {
const t = useTranslations("Navbar");
const searchInput = (
<Input
aria-label="Search"
@@ -67,7 +68,7 @@ export const Navbar = () => {
color="foreground"
href={siteConfig.routes.chat.href}
>
{siteConfig.routes.chat.label}
{t("chat")}
</NextLink>
</NavbarItem>
</ul>