// src/pages/NotFound.jsx import React from 'react'; import { Link } from 'react-router-dom'; import SEO from '../components/SEO'; import { useTranslation } from '../js/i18n'; const NotFound = () => { const { t } = useTranslation(); // 使用 useTranslation 钩子 return ( <> {t('notFound.title')} {t('notFound.description')} {t('notFound.back_home')} > ); }; export default NotFound;
{t('notFound.description')}