feat: 新增本地话词条
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"Navbar": {
|
||||
"chat": "Chat",
|
||||
"about": "About"
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"Navbar": {
|
||||
"chat": "对话",
|
||||
"about": "关于"
|
||||
}
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {};
|
||||
|
||||
module.exports = nextConfig;
|
||||
7
next.config.ts
Normal file
7
next.config.ts
Normal 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);
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user