import type { MetadataRoute } from "next"; import { getCompanyInfo } from "@/lib/company-info"; import { getLocale } from "@/i18n/locale"; import { getDictionary } from "@/i18n/get-dictionary"; /** * Web-App-Manifest fuer "Zum Startbildschirm hinzufuegen" auf Mobilgeraeten. * Icon ist das im Admin austauschbare Favicon (app/icon.tsx, 512 px PNG). * Sprachabhaengig wie der Rest der Seite. */ export default async function manifest(): Promise { const locale = await getLocale(); const t = getDictionary(locale); const company = await getCompanyInfo(); return { name: `${company.name} — ${t.footer.tagline}`, short_name: company.name, description: t.common.siteDescription, start_url: "/", display: "standalone", background_color: "#FAF8F3", theme_color: "#24352B", icons: [ { src: "/icon", sizes: "512x512", type: "image/png", purpose: "any", }, ], }; }