// src/components/SEO.jsx import React from 'react'; import { Helmet } from 'react-helmet'; import { useTranslation } from '../js/i18n'; function SEO({ title, description, lang = 'en', meta = [] }) { const { t } = useTranslation(); const defaultTitle = t('title'); const defaultDescription = t('description'); const defaultKeywords = t('keywords'); const languages = ['en', 'zh', 'ja', 'ko']; const hostname = 'https://fishersama.com'; // 替换为您的网站域名 const links = languages.map((language) => ({ rel: 'alternate', hrefLang: language, href: `${hostname}/${language === 'en' ? '' : language}`, })); const structuredData = { "@context": "https://schema.org", "@type": "WebApplication", "name": defaultTitle, "url": "https://fishersama.com/", "description": defaultDescription, "applicationCategory": "AI Tools", "operatingSystem": "Web Browser", "offers": { "@type": "Offer", "price": "0", "priceCurrency": "USD" }, "author": { "@type": "Person", "name": "Fisher" }, "datePublished": "2024-01-01", "dateModified": new Date().toISOString().split('T')[0] }; return ( ); } export default SEO;