Enable users to switch seamlessly between English and Arabic languages

Adds i18next, LanguageDetector, locales (en.json, ar.json), and LanguageSwitcher component for internationalization.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: ff0be73b-afdd-4747-978b-bb8301fb0a82
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/9777c70b-fc38-4831-8d6b-78dfffe041b0/d552135c-0e60-4fc7-98a2-0e9cddf2b4b3.jpg
This commit is contained in:
ghaddaditw
2025-06-08 06:40:22 +00:00
parent 823de76f48
commit 5cae99424f
7 changed files with 600 additions and 12 deletions
+199
View File
@@ -0,0 +1,199 @@
{
"common": {
"save": "Save",
"cancel": "Cancel",
"delete": "Delete",
"edit": "Edit",
"add": "Add",
"create": "Create",
"update": "Update",
"search": "Search",
"filter": "Filter",
"loading": "Loading...",
"error": "Error",
"success": "Success",
"confirm": "Confirm",
"back": "Back",
"next": "Next",
"previous": "Previous",
"close": "Close",
"open": "Open",
"yes": "Yes",
"no": "No"
},
"navigation": {
"dashboard": "Dashboard",
"tasks": "Tasks",
"finances": "Finances",
"ai": "AI Assistant",
"voice": "Voice",
"analytics": "Analytics",
"settings": "Settings",
"logout": "Logout",
"profile": "Profile"
},
"tasks": {
"title": "Tasks",
"createTask": "Create Task",
"editTask": "Edit Task",
"taskTitle": "Task Title",
"description": "Description",
"priority": "Priority",
"dueDate": "Due Date",
"status": "Status",
"category": "Category",
"project": "Project",
"assignee": "Assignee",
"tags": "Tags",
"subtasks": "Subtasks",
"attachments": "Attachments",
"timeTracking": "Time Tracking",
"completed": "Completed",
"inProgress": "In Progress",
"todo": "To Do",
"high": "High",
"medium": "Medium",
"low": "Low",
"addSubtask": "Add Subtask",
"addAttachment": "Add Attachment",
"startTimer": "Start Timer",
"stopTimer": "Stop Timer",
"totalTime": "Total Time",
"noTasks": "No tasks found",
"taskCreated": "Task created successfully",
"taskUpdated": "Task updated successfully",
"taskDeleted": "Task deleted successfully"
},
"finances": {
"title": "Finances",
"overview": "Financial Overview",
"income": "Income",
"expenses": "Expenses",
"balance": "Balance",
"budget": "Budget",
"categories": "Categories",
"transactions": "Transactions",
"recurring": "Recurring",
"reports": "Reports",
"addTransaction": "Add Transaction",
"editTransaction": "Edit Transaction",
"amount": "Amount",
"type": "Type",
"date": "Date",
"description": "Description",
"category": "Category",
"tags": "Tags",
"recurring": "Recurring",
"frequency": "Frequency",
"budgetPlanning": "Budget Planning",
"budgetLimit": "Budget Limit",
"budgetUsed": "Budget Used",
"budgetRemaining": "Budget Remaining",
"monthlyBudget": "Monthly Budget",
"yearlyBudget": "Yearly Budget",
"exportData": "Export Data",
"billReminders": "Bill Reminders",
"upcomingBills": "Upcoming Bills",
"overdueBills": "Overdue Bills"
},
"ai": {
"title": "AI Assistant",
"chat": "Chat",
"history": "Conversation History",
"dailyJoke": "Daily Joke",
"insights": "AI Insights",
"askAnything": "Ask me anything...",
"generating": "Generating response...",
"voiceCommand": "Voice Command",
"personalizedResponse": "Personalized Response",
"conversationSaved": "Conversation saved",
"noHistory": "No conversation history"
},
"voice": {
"title": "Voice Commands",
"listening": "Listening...",
"notListening": "Not Listening",
"startListening": "Start Listening",
"stopListening": "Stop Listening",
"voiceSettings": "Voice Settings",
"language": "Language",
"microphone": "Microphone",
"speakers": "Speakers",
"voiceCommands": "Available Commands",
"customCommands": "Custom Commands",
"voiceTraining": "Voice Training",
"accuracy": "Accuracy",
"confidence": "Confidence",
"transcript": "Transcript",
"voiceActivated": "Voice Activated",
"speakingRate": "Speaking Rate",
"voicePitch": "Voice Pitch",
"voiceVolume": "Voice Volume"
},
"settings": {
"title": "Settings",
"general": "General",
"appearance": "Appearance",
"language": "Language",
"notifications": "Notifications",
"privacy": "Privacy",
"account": "Account",
"advanced": "Advanced",
"theme": "Theme",
"lightMode": "Light Mode",
"darkMode": "Dark Mode",
"systemTheme": "System Theme",
"fontSize": "Font Size",
"accessibility": "Accessibility",
"dataExport": "Data Export",
"dataImport": "Data Import",
"changePassword": "Change Password",
"deleteAccount": "Delete Account",
"backup": "Backup",
"restore": "Restore"
},
"auth": {
"login": "Login",
"register": "Register",
"logout": "Logout",
"email": "Email",
"password": "Password",
"confirmPassword": "Confirm Password",
"firstName": "First Name",
"lastName": "Last Name",
"username": "Username",
"forgotPassword": "Forgot Password?",
"resetPassword": "Reset Password",
"loginSuccess": "Login successful",
"registerSuccess": "Registration successful",
"invalidCredentials": "Invalid credentials",
"passwordMismatch": "Passwords do not match"
},
"dashboard": {
"title": "Dashboard",
"welcome": "Welcome",
"quickStats": "Quick Stats",
"recentTasks": "Recent Tasks",
"recentTransactions": "Recent Transactions",
"todaysTasks": "Today's Tasks",
"weeklyOverview": "Weekly Overview",
"monthlyOverview": "Monthly Overview",
"productivity": "Productivity",
"financial": "Financial Summary"
},
"errors": {
"general": "An error occurred",
"networkError": "Network error",
"unauthorized": "Unauthorized access",
"notFound": "Not found",
"serverError": "Server error",
"validationError": "Validation error",
"tryAgain": "Please try again"
},
"success": {
"saved": "Successfully saved",
"deleted": "Successfully deleted",
"updated": "Successfully updated",
"created": "Successfully created"
}
}