From 92a4bf4643e239245c35f9661605364d1d7d5fbf Mon Sep 17 00:00:00 2001 From: ghaddaditw <40211818-ghaddaditw@users.noreply.replit.com> Date: Sun, 8 Jun 2025 16:08:03 +0000 Subject: [PATCH] Enable Arabic translation for login and registration across the platform Adds Arabic translations for authentication-related keys in `ar.json` and removes unused components from `DashboardPage.tsx`. Replit-Commit-Author: Agent Replit-Commit-Session-Id: d7e7c4e8-20cb-41c4-9d0e-79f48938fede Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/9777c70b-fc38-4831-8d6b-78dfffe041b0/fce1a53e-5aa6-4e72-85f6-b7412c184f0c.jpg --- client/src/i18n/locales/ar.json | 19 +++++++++++++++++++ client/src/pages/DashboardPage.tsx | 3 +-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/client/src/i18n/locales/ar.json b/client/src/i18n/locales/ar.json index 5426e53..5fd3d7e 100644 --- a/client/src/i18n/locales/ar.json +++ b/client/src/i18n/locales/ar.json @@ -39,6 +39,25 @@ "logout": "تسجيل الخروج", "profile": "الملف الشخصي" }, + "auth": { + "login": "تسجيل الدخول", + "register": "إنشاء حساب", + "signup": "إنشاء حساب", + "email": "البريد الإلكتروني", + "password": "كلمة المرور", + "confirmPassword": "تأكيد كلمة المرور", + "username": "اسم المستخدم", + "firstName": "الاسم الأول", + "lastName": "الاسم الأخير", + "forgotPassword": "نسيت كلمة المرور؟", + "createAccount": "إنشاء حساب جديد", + "alreadyHaveAccount": "لديك حساب بالفعل؟", + "dontHaveAccount": "ليس لديك حساب؟", + "loginSuccess": "تم تسجيل الدخول بنجاح", + "registerSuccess": "تم إنشاء الحساب بنجاح", + "invalidCredentials": "بيانات الدخول غير صحيحة", + "accountExists": "الحساب موجود بالفعل" + }, "tasks": { "title": "المهام", "createTask": "إنشاء مهمة", diff --git a/client/src/pages/DashboardPage.tsx b/client/src/pages/DashboardPage.tsx index 02b51ff..33a5f4a 100644 --- a/client/src/pages/DashboardPage.tsx +++ b/client/src/pages/DashboardPage.tsx @@ -1,19 +1,18 @@ import { useAuth } from "@/hooks/useAuth"; import { useLocation } from "wouter"; import { useEffect, useState } from "react"; -import Header from "@/components/layout/Header"; import Sidebar from "@/components/layout/Sidebar"; import TaskList from "@/components/tasks/TaskList"; import FinancialOverview from "@/components/financial/FinancialOverview"; import VoiceRecorder from "@/components/voice/VoiceRecorder"; import VoiceIndicator from "@/components/voice/VoiceIndicator"; import DailyJoke from "@/components/ai/DailyJoke"; -import { CommandPalette } from "@/components/CommandPalette"; import { useVoiceContext } from "@/context/VoiceProvider"; import { useNotifications } from "@/context/NotificationProvider"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { Button } from "@/components/ui/button"; import { Badge } from "@/components/ui/badge"; +import { CardSkeleton, PageSkeleton } from "@/components/ui/loading-skeleton"; import { Calendar, DollarSign,