diff --git a/frontend/src/pages/help/HelpComprehensive.tsx b/frontend/src/pages/help/HelpComprehensive.tsx index 3d232fd..66c826b 100644 --- a/frontend/src/pages/help/HelpComprehensive.tsx +++ b/frontend/src/pages/help/HelpComprehensive.tsx @@ -7,6 +7,7 @@ import React from 'react'; import { useNavigate, Link } from 'react-router-dom'; +import { useTranslation } from 'react-i18next'; import { ArrowLeft, BookOpen, LayoutDashboard, Calendar, Briefcase, Users, UserCog, ClipboardList, Settings, ChevronRight, HelpCircle, CheckCircle, AlertCircle, @@ -30,43 +31,44 @@ interface TocItem { const HelpComprehensive: React.FC = () => { const navigate = useNavigate(); + const { t } = useTranslation(); const [expandedItems, setExpandedItems] = React.useState(['getting-started', 'settings']); // Table of contents items with sub-items const tocItems: TocItem[] = [ { id: 'getting-started', - label: 'Getting Started', + label: t('helpComprehensive.toc.gettingStarted'), icon: , subItems: [ - { label: 'Services Setup', href: '/help/services' }, - { label: 'Resources Setup', href: '/help/resources' }, - { label: 'Branding', href: '/help/settings/appearance' }, - { label: 'Booking URL', href: '/help/settings/booking' }, - { label: 'Scheduler', href: '/help/scheduler' }, + { label: t('helpComprehensive.toc.servicesSetup'), href: '/help/services' }, + { label: t('helpComprehensive.toc.resourcesSetup'), href: '/help/resources' }, + { label: t('helpComprehensive.toc.branding'), href: '/help/settings/appearance' }, + { label: t('helpComprehensive.toc.bookingUrl'), href: '/help/settings/booking' }, + { label: t('helpComprehensive.toc.scheduler'), href: '/help/scheduler' }, ], }, - { id: 'dashboard', label: 'Dashboard', icon: }, - { id: 'scheduler', label: 'Scheduler', icon: }, - { id: 'services', label: 'Services', icon: }, - { id: 'resources', label: 'Resources', icon: }, - { id: 'customers', label: 'Customers', icon: }, - { id: 'staff', label: 'Staff', icon: }, - { id: 'time-blocks', label: 'Time Blocks', icon: }, - { id: 'plugins', label: 'Plugins', icon: }, - { id: 'contracts', label: 'Contracts', icon: }, + { id: 'dashboard', label: t('helpComprehensive.toc.dashboard'), icon: }, + { id: 'scheduler', label: t('helpComprehensive.toc.scheduler'), icon: }, + { id: 'services', label: t('helpComprehensive.toc.services'), icon: }, + { id: 'resources', label: t('helpComprehensive.toc.resources'), icon: }, + { id: 'customers', label: t('helpComprehensive.toc.customers'), icon: }, + { id: 'staff', label: t('helpComprehensive.toc.staff'), icon: }, + { id: 'time-blocks', label: t('helpComprehensive.toc.timeBlocks'), icon: }, + { id: 'plugins', label: t('helpComprehensive.toc.plugins'), icon: }, + { id: 'contracts', label: t('helpComprehensive.toc.contracts'), icon: }, { id: 'settings', - label: 'Settings', + label: t('helpComprehensive.toc.settings'), icon: , subItems: [ - { label: 'Resource Types', href: '/help/settings/resource-types' }, - { label: 'Email Settings', href: '/help/settings/email' }, - { label: 'Custom Domains', href: '/help/settings/domains' }, - { label: 'Billing', href: '/help/settings/billing' }, - { label: 'API Settings', href: '/help/settings/api' }, - { label: 'Authentication', href: '/help/settings/auth' }, - { label: 'Usage & Quota', href: '/help/settings/quota' }, + { label: t('helpComprehensive.toc.resourceTypes'), href: '/help/settings/resource-types' }, + { label: t('helpComprehensive.toc.emailSettings'), href: '/help/settings/email' }, + { label: t('helpComprehensive.toc.customDomains'), href: '/help/settings/domains' }, + { label: t('helpComprehensive.toc.billing'), href: '/help/settings/billing' }, + { label: t('helpComprehensive.toc.apiSettings'), href: '/help/settings/api' }, + { label: t('helpComprehensive.toc.authentication'), href: '/help/settings/auth' }, + { label: t('helpComprehensive.toc.usageQuota'), href: '/help/settings/quota' }, ], }, ]; @@ -95,15 +97,15 @@ const HelpComprehensive: React.FC = () => {
-

SmoothSchedule Complete Guide

+

{t('helpComprehensive.header.title')}

- Contact Support + {t('helpComprehensive.header.contactSupport')}
@@ -112,7 +114,7 @@ const HelpComprehensive: React.FC = () => { {/* Sidebar Table of Contents */}