diff --git a/messages/en.json b/messages/en.json index f3cd603..38ae798 100644 --- a/messages/en.json +++ b/messages/en.json @@ -333,6 +333,10 @@ "title": "AI Image", "description": "Show how to use AI to generate beautiful images" }, + "images": { + "title": "AI Images", + "description": "use AI to generate beautiful images" + }, "chat": { "title": "AI Chat", "description": "Show how to use AI to chat with your customers" diff --git a/messages/zh.json b/messages/zh.json index 2b156f9..f6045d7 100644 --- a/messages/zh.json +++ b/messages/zh.json @@ -333,6 +333,10 @@ "title": "AI 图像", "description": "展示如何使用 AI 生成精美图像" }, + "images": { + "title": "AI 图像生成", + "description": "使用 AI 生成精美图像" + }, "chat": { "title": "AI 聊天", "description": "展示如何使用 AI 与客户聊天" diff --git a/src/app/[locale]/(marketing)/ai/images/page.tsx b/src/app/[locale]/(marketing)/ai/images/page.tsx index e52d091..867ffe8 100644 --- a/src/app/[locale]/(marketing)/ai/images/page.tsx +++ b/src/app/[locale]/(marketing)/ai/images/page.tsx @@ -25,7 +25,7 @@ export async function generateMetadata({ }); } -export default async function AIImagePage() { +export default async function AIImagesPage() { const t = await getTranslations('AIImagesPage'); return ( diff --git a/src/config/navbar-config.tsx b/src/config/navbar-config.tsx index e42a0d9..e2ccb7e 100644 --- a/src/config/navbar-config.tsx +++ b/src/config/navbar-config.tsx @@ -103,6 +103,13 @@ export function useNavbarLinks(): NestedMenuItem[] { href: Routes.AIChat, external: false, }, + { + title: t('ai.items.images.title'), + description: t('ai.items.images.description'), + icon: , + href: Routes.AIImages, + 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 819b906..bb1ed71 100644 --- a/src/routes.ts +++ b/src/routes.ts @@ -40,6 +40,7 @@ export enum Routes { // AI routes AIText = '/ai/text', AIImage = '/ai/image', + AIImages = '/ai/images', AIChat = '/ai/chat', AIVideo = '/ai/video', AIAudio = '/ai/audio',