diff --git a/src/app/[lang]/chatbot/page.tsx b/src/app/[lang]/chatbot/page.tsx
index e9f9f8b..1806910 100644
--- a/src/app/[lang]/chatbot/page.tsx
+++ b/src/app/[lang]/chatbot/page.tsx
@@ -248,11 +248,11 @@ export default function ChatbotPage() {
disabled={!inputValue.trim() || isLoading}
className="h-12 w-12 p-0 hover:scale-110 transition-transform shrink-0"
variant="link"
- title="Send message"
+ title={t.chatbot.sendMessage}
>
-
+
diff --git a/src/components/chatbot/chat-window.tsx b/src/components/chatbot/chat-window.tsx
index 7c490ef..8b1ccd9 100644
--- a/src/components/chatbot/chat-window.tsx
+++ b/src/components/chatbot/chat-window.tsx
@@ -8,6 +8,7 @@ import { Avatar, AvatarFallback } from '@/components/ui/avatar';
import { CHAT_WINDOW_POSITIONS, CHAT_WINDOW_SIZE } from './constant';
import type { ChatWindowProps } from './type';
import { SendIcon, PriceIcon, TimeIcon, ServicesIcon, InfoIcon, VoiceIcon } from './icons';
+import { useTranslations } from '@/lib/use-translations';
export const ChatWindow = memo(function ChatWindow({
isOpen,
@@ -18,6 +19,7 @@ export const ChatWindow = memo(function ChatWindow({
error,
locale,
}: ChatWindowProps) {
+ const { t } = useTranslations();
const [input, setInput] = useState('');
const [isListening, setIsListening] = useState(false);
const [isMobile, setIsMobile] = useState(false);
@@ -407,11 +409,11 @@ export const ChatWindow = memo(function ChatWindow({
"hover:scale-110 transition-transform shrink-0 disabled:opacity-50 disabled:hover:scale-100",
isMobile ? "h-12 w-12" : "h-10 w-10"
)}
- title="Send message"
+ title={t.chatbot.sendMessage}
>
-
+
diff --git a/src/components/internationalization/ar.json b/src/components/internationalization/ar.json
index 59249bc..c9e324e 100644
--- a/src/components/internationalization/ar.json
+++ b/src/components/internationalization/ar.json
@@ -6,7 +6,9 @@
"chatbot": {
"title": "مساعد المحادثة",
"startMessage": "ابدأ محادثة...",
- "thinking": "أفكر..."
+ "thinking": "أفكر...",
+ "sendMessage": "إرسال الرسالة",
+ "voiceInput": "إدخال صوتي"
},
"common": {
"loading": "جاري التحميل...",
@@ -37,7 +39,8 @@
"dark": "داكن",
"system": "النظام",
"platform": "منصة",
- "brandName": "داتابيت"
+ "brandName": "داتابيت",
+ "toggleTheme": "تبديل المظهر"
},
"navigation": {
"menu": "القائمة",
diff --git a/src/components/internationalization/en.json b/src/components/internationalization/en.json
index aeac459..55d4ca4 100644
--- a/src/components/internationalization/en.json
+++ b/src/components/internationalization/en.json
@@ -6,7 +6,9 @@
"chatbot": {
"title": "Chat Assistant",
"startMessage": "Start a conversation...",
- "thinking": "I'm thinking..."
+ "thinking": "I'm thinking...",
+ "sendMessage": "Send message",
+ "voiceInput": "Voice input"
},
"common": {
"loading": "Loading...",
@@ -37,7 +39,8 @@
"dark": "Dark",
"system": "System",
"platform": "Platform",
- "brandName": "Databayt"
+ "brandName": "Databayt",
+ "toggleTheme": "Toggle theme"
},
"navigation": {
"menu": "Menu",
diff --git a/src/components/marketing/service/branding.tsx b/src/components/marketing/service/branding.tsx
index 93eff5b..fa50b0a 100644
--- a/src/components/marketing/service/branding.tsx
+++ b/src/components/marketing/service/branding.tsx
@@ -13,7 +13,7 @@ export default function Branding() {
diff --git a/src/components/marketing/service/sales.tsx b/src/components/marketing/service/sales.tsx
index 0a34b54..987a4b3 100644
--- a/src/components/marketing/service/sales.tsx
+++ b/src/components/marketing/service/sales.tsx
@@ -27,7 +27,7 @@ export function Sales() {
>
{
setTheme(resolvedTheme === "dark" ? "light" : "dark")
@@ -22,7 +24,7 @@ export function ModeSwitcher({ className }: ModeSwitcherProps) {
"flex items-center justify-center size-8 rounded-md hover:bg-accent hover:text-foreground transition-colors cursor-pointer",
className
)}
- title="Toggle theme"
+ title={t.common.toggleTheme}
>
- Toggle theme
+ {t.common.toggleTheme}
)
}