diff --git a/app/[locale]/[workspaceid]/chat/page.tsx b/app/[locale]/[workspaceid]/chat/page.tsx index 15e189e..8de866e 100644 --- a/app/[locale]/[workspaceid]/chat/page.tsx +++ b/app/[locale]/[workspaceid]/chat/page.tsx @@ -12,6 +12,8 @@ import useHotkey from "@/lib/hooks/use-hotkey" import { useTheme } from "next-themes" import { useContext } from "react" +import { useTranslation } from 'react-i18next' + export default function ChatPage() { useHotkey("o", () => handleNewChat()) useHotkey("l", () => { @@ -24,6 +26,8 @@ export default function ChatPage() { const { theme } = useTheme() + const { t } = useTranslation() + return ( <> {chatMessages.length === 0 ? ( diff --git a/components/ui/brand.tsx b/components/ui/brand.tsx index ae42e07..5af67ef 100644 --- a/components/ui/brand.tsx +++ b/components/ui/brand.tsx @@ -4,15 +4,18 @@ import Link from "next/link" import { FC } from "react" import { ChatbotUISVG } from "../icons/chatbotui-svg" +import { useTranslation } from 'react-i18next' + interface BrandProps { theme?: "dark" | "light" } export const Brand: FC = ({ theme = "dark" }) => { + const { t } = useTranslation() return ( @@ -20,7 +23,7 @@ export const Brand: FC = ({ theme = "dark" }) => { -
Chatbot UI
+
{t("Company Name")}
) }