From 0794c7d29793ca01f5f6081cf9d2895590ebd475 Mon Sep 17 00:00:00 2001 From: javayhu Date: Sun, 24 Aug 2025 11:39:04 +0800 Subject: [PATCH] feat: add AI Chat route and localization support in English and Chinese --- messages/en.json | 4 ++++ messages/zh.json | 4 ++++ src/config/navbar-config.tsx | 8 ++++++++ src/routes.ts | 1 + 4 files changed, 17 insertions(+) diff --git a/messages/en.json b/messages/en.json index 1c902a0..4f35f10 100644 --- a/messages/en.json +++ b/messages/en.json @@ -320,6 +320,10 @@ "title": "AI Image", "description": "Show how to use AI to generate beautiful images" }, + "chat": { + "title": "AI Chat", + "description": "Show how to use AI to chat with your customers" + }, "video": { "title": "AI Video", "description": "Show how to use AI to generate amazing videos" diff --git a/messages/zh.json b/messages/zh.json index 1bbe1bd..9356d11 100644 --- a/messages/zh.json +++ b/messages/zh.json @@ -320,6 +320,10 @@ "title": "AI 图像", "description": "展示如何使用 AI 生成精美图像" }, + "chat": { + "title": "AI 聊天", + "description": "展示如何使用 AI 与客户聊天" + }, "video": { "title": "AI 视频", "description": "展示如何使用 AI 生成惊人视频" diff --git a/src/config/navbar-config.tsx b/src/config/navbar-config.tsx index ce14155..655a560 100644 --- a/src/config/navbar-config.tsx +++ b/src/config/navbar-config.tsx @@ -20,6 +20,7 @@ import { LogInIcon, MailIcon, MailboxIcon, + MessageCircleIcon, NewspaperIcon, RocketIcon, ShieldCheckIcon, @@ -95,6 +96,13 @@ export function getNavbarLinks(): NestedMenuItem[] { href: Routes.AIImage, external: false, }, + { + title: t('ai.items.chat.title'), + description: t('ai.items.chat.description'), + icon: , + href: Routes.AIChat, + external: false, + }, // { // title: t('ai.items.video.title'), // description: t('ai.items.video.description'), diff --git a/src/routes.ts b/src/routes.ts index cab64b1..819b906 100644 --- a/src/routes.ts +++ b/src/routes.ts @@ -40,6 +40,7 @@ export enum Routes { // AI routes AIText = '/ai/text', AIImage = '/ai/image', + AIChat = '/ai/chat', AIVideo = '/ai/video', AIAudio = '/ai/audio',