Files
mintel.me/apps/web/src/content/site.ts
T
mmintelandClaude Opus 5.5 75993100fa feat: German as the main language, English under /en, with a language switch
The site now exists in German (at the root, with /impressum and /datenschutz)
and English (/en). A request without a language follows the visitor's choice
from the language switch, then the browser language, then German; the old
English legal addresses move to /en for good.

All visible texts are data in src/content/de.ts and en.ts, so components hold
none of their own. The header carries a DE/EN switch whose bit curtain covers
the page while it is swapped and reopens at the same reading position. Title,
description, canonical, hreflang, Open Graph, the share image, the sitemap and
the structured data are per language. The privacy notice now describes the
cookie that remembers the chosen language.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 13:07:22 +02:00

42 lines
1.4 KiB
TypeScript

import { parseEmailParts, type EmailParts } from "@/src/domain/email";
import { indexingFor } from "@/src/domain/indexing";
// What is the same in every language. Titles, descriptions and all other texts
// live in en.ts and de.ts.
export const SITE_NAME = "Marc Mintel";
export const SITE_URL = "https://mintel.me";
/**
* Public profiles of the owner (LinkedIn, GitHub, ...). Search engines use them to
* connect this site with the same person elsewhere. Only add profiles the owner confirmed.
*/
export const PROFILES: readonly string[] = [];
/** Only the production deployment may appear in search results. Set by the build. */
export const INDEXING = indexingFor(process.env.NEXT_PUBLIC_TARGET);
// The contact address, kept in parts on purpose: the complete address must never
// appear as one string in the page source (see src/components/EmailLink.tsx).
const parsedEmail = parseEmailParts({
user: "hello",
domain: "mintel",
tld: "me",
});
if (parsedEmail.ok === false) {
throw new Error(
`Invalid contact address in src/content/site.ts: ${parsedEmail.error}`,
);
}
export const CONTACT_EMAIL_PARTS: EmailParts = parsedEmail.value;
/** Details required for the imprint (section 5 DDG). */
export const OWNER = {
name: "Marc Mintel",
street: "Georg-Meistermann-Straße 7",
postalCode: "54586",
locality: "Schüller",
countryCode: "DE",
vatId: "DE367588065",
} as const;