85 lines
6.6 KiB
TypeScript
85 lines
6.6 KiB
TypeScript
import type { Lang } from '@/lib/i18n'
|
|
|
|
const schemaCopy: Record<Lang, {
|
|
howToName: string
|
|
steps: Array<{ name: string; text: string }>
|
|
faqs: Array<{ question: string; answer: string }>
|
|
}> = {
|
|
de: {
|
|
howToName: 'So erkennst du eine Pflanze mit GreenLens',
|
|
steps: [
|
|
{ name: 'Pflanze fotografieren', text: 'Öffne die App, richte die Kamera auf deine Pflanze und tippe auf Scan. Das war\'s schon.' },
|
|
{ name: 'KI analysiert das Foto', text: 'Du erhältst zügig einen Artvorschlag und die wichtigsten Eckdaten zur Pflanze.' },
|
|
{ name: 'Pflegeplan erhalten', text: 'GreenLens erstellt automatisch einen personalisierten Pflegeplan passend zu deiner Pflanze und deinem Standort.' },
|
|
{ name: 'Wachstum verfolgen', text: 'Dokumentiere Fotos, tracke das Gießen und lass dich an wichtige Pflegetermine erinnern.' },
|
|
],
|
|
faqs: [
|
|
{ question: 'Wie erkennt GreenLens eine Pflanze?', answer: 'GreenLens analysiert das Pflanzenfoto und verbindet das Ergebnis mit Pflegehinweisen in der App, damit du schneller zu klaren nächsten Schritten kommst.' },
|
|
{ question: 'Ist GreenLens kostenlos?', answer: 'Ein Scan ist gratis, ganz ohne Anmeldung. Nach der Anmeldung bekommst du drei weitere. Danach brauchst du GreenLens Pro — Monats- oder Jahresabo mit den aktuellen Preisen im App Store, jederzeit über die iPhone-Einstellungen kündbar. Optionale Credit-Pakete gibt es für intensive Nutzung; zum Start brauchst du sie nicht.' },
|
|
{ question: 'Kann ich GreenLens offline nutzen?', answer: 'Pflanzenidentifikation und Gesundheitscheck benötigen eine Internetverbindung. Deine gespeicherte Sammlung, Pflegenotizen und Gieß-Erinnerungen sind offline verfügbar.' },
|
|
{ question: 'Für welche Pflanzen kann ich GreenLens nutzen?', answer: 'GreenLens umfasst über 450 Pflanzenarten, darunter Zimmerpflanzen, Gartenpflanzen und Sukkulenten. Die App richtet sich an Pflanzenbesitzer, die Identifikation und Pflege an einem Ort wollen.' },
|
|
{ question: 'Wie starte ich meine Pflanzensammlung?', answer: 'Starte mit einem Scan, prüfe das Ergebnis und speichere die Pflanze in deiner Sammlung, damit Notizen, Erinnerungen und Pflege an einem Ort bleiben.' },
|
|
],
|
|
},
|
|
en: {
|
|
howToName: 'How to identify a plant with GreenLens',
|
|
steps: [
|
|
{ name: 'Photograph your plant', text: 'Open the app, point the camera at your plant and tap Scan. That\'s it.' },
|
|
{ name: 'AI analyzes the photo', text: 'You quickly receive a suggested match and the key details about the plant.' },
|
|
{ name: 'Receive care plan', text: 'GreenLens automatically creates a personalized care plan for your plant and location.' },
|
|
{ name: 'Track growth', text: 'Document photos, track watering, and get reminded of important care dates.' },
|
|
],
|
|
faqs: [
|
|
{ question: 'How does GreenLens identify a plant?', answer: 'GreenLens analyzes the plant photo and combines that with app-side care guidance so you can move from scan to next steps faster.' },
|
|
{ question: 'Is GreenLens free to use?', answer: 'One scan is free without an account, and you get three more after signing up. Beyond that GreenLens Pro is required — monthly or yearly, with current pricing shown in the App Store and cancellation any time in your iPhone settings. Optional credit packs exist for heavy use; you do not need them to start.' },
|
|
{ question: 'Can I use GreenLens offline?', answer: 'Plant identification and health checks require an internet connection. Your saved collection, care notes, and watering reminders are available offline.' },
|
|
{ question: 'What kind of plants can I use GreenLens for?', answer: 'GreenLens covers 450+ plant species including houseplants, garden plants, and succulents. It is built for everyday plant owners who want identification and care guidance in one place.' },
|
|
{ question: 'How do I start my plant collection?', answer: 'Start with a scan, review the result, and save the plant to your collection to keep notes, reminders, and follow-up care in one place.' },
|
|
],
|
|
},
|
|
es: {
|
|
howToName: 'Cómo identificar una planta con GreenLens',
|
|
steps: [
|
|
{ name: 'Fotografía tu planta', text: 'Abre la app, apunta la cámara a tu planta y toca Escanear. Eso es todo.' },
|
|
{ name: 'La IA analiza la foto', text: 'Recibes rápidamente una coincidencia sugerida y los datos principales de la planta.' },
|
|
{ name: 'Recibe el plan de cuidado', text: 'GreenLens crea automáticamente un plan de cuidado personalizado para tu planta y ubicación.' },
|
|
{ name: 'Seguimiento del crecimiento', text: 'Documenta fotos, registra el riego y recibe recordatorios de citas de cuidado importantes.' },
|
|
],
|
|
faqs: [
|
|
{ question: '¿Cómo identifica GreenLens una planta?', answer: 'GreenLens analiza la foto de la planta y combina el resultado con indicaciones de cuidado dentro de la app para que avances más rápido.' },
|
|
{ question: '¿Es GreenLens gratuito?', answer: 'Un escaneo es gratis, sin crear cuenta. Tras registrarte recibes tres más. A partir de ahí necesitas GreenLens Pro: suscripción mensual o anual, con los precios actuales en la App Store y cancelación en cualquier momento desde los ajustes del iPhone. Hay paquetes de créditos opcionales para uso intensivo; no los necesitas para empezar.' },
|
|
{ question: '¿Puedo usar GreenLens sin conexión?', answer: 'La identificación de plantas y el control de salud requieren conexión a internet. Tu colección guardada, notas de cuidado y recordatorios de riego están disponibles sin conexión.' },
|
|
{ question: '¿Para qué tipo de plantas puedo usar GreenLens?', answer: 'GreenLens cubre más de 450 especies de plantas, incluyendo plantas de interior, de jardín y suculentas. Está pensada para quienes quieren identificación y cuidado en un solo lugar.' },
|
|
{ question: '¿Cómo empiezo mi colección de plantas?', answer: 'Empieza con un escaneo, revisa el resultado y guarda la planta en tu colección para mantener notas, recordatorios y cuidado en un solo lugar.' },
|
|
],
|
|
},
|
|
}
|
|
|
|
export function getHomeSchemas(locale: Lang) {
|
|
const copy = schemaCopy[locale]
|
|
|
|
return {
|
|
howTo: {
|
|
'@context': 'https://schema.org',
|
|
'@type': 'HowTo',
|
|
name: copy.howToName,
|
|
inLanguage: locale,
|
|
step: copy.steps.map((step, index) => ({
|
|
'@type': 'HowToStep',
|
|
position: index + 1,
|
|
...step,
|
|
})),
|
|
},
|
|
faq: {
|
|
'@context': 'https://schema.org',
|
|
'@type': 'FAQPage',
|
|
inLanguage: locale,
|
|
mainEntity: copy.faqs.map(({ question, answer }) => ({
|
|
'@type': 'Question',
|
|
name: question,
|
|
acceptedAnswer: { '@type': 'Answer', text: answer },
|
|
})),
|
|
},
|
|
}
|
|
}
|