diff --git a/admin/inertia/app/app.tsx b/admin/inertia/app/app.tsx index b71ab64..13a1d37 100644 --- a/admin/inertia/app/app.tsx +++ b/admin/inertia/app/app.tsx @@ -1,6 +1,7 @@ /// /// +import '~/lib/i18n' import '../css/app.css' import { createRoot } from 'react-dom/client' import { createInertiaApp } from '@inertiajs/react' diff --git a/admin/inertia/components/Footer.tsx b/admin/inertia/components/Footer.tsx index e74c3a2..41b3426 100644 --- a/admin/inertia/components/Footer.tsx +++ b/admin/inertia/components/Footer.tsx @@ -1,4 +1,5 @@ import { useState } from 'react' +import { useTranslation } from 'react-i18next' import { usePage } from '@inertiajs/react' import { UsePageProps } from '../../types/system' import ThemeToggle from '~/components/ThemeToggle' @@ -6,6 +7,7 @@ import { IconBug } from '@tabler/icons-react' import DebugInfoModal from './DebugInfoModal' export default function Footer() { + const { t } = useTranslation('layout') const { appVersion } = usePage().props as unknown as UsePageProps const [debugModalOpen, setDebugModalOpen] = useState(false) @@ -13,7 +15,7 @@ export default function Footer() {